Skip to content

Commit

Permalink
Remove maxWidth on contentFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed Dec 22, 2024
1 parent cbd5505 commit f2c9ca9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
20 changes: 10 additions & 10 deletions source/iNKORE.UI.WPF.Modern.Gallery/ItemPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,16 @@ protected override void OnNavigatedFrom(NavigationEventArgs e)

private void OnContentRootSizeChanged(object sender, SizeChangedEventArgs e)
{
if (contentColumn.ActualWidth >= 1000)
{
contentFrame.Width = 1028;
contentFrame.HorizontalAlignment = HorizontalAlignment.Left;
}
else
{
contentFrame.Width = double.NaN;
contentFrame.HorizontalAlignment = HorizontalAlignment.Stretch;
}
//if (contentColumn.ActualWidth >= 1000)
//{
// contentFrame.Width = 1028;
// contentFrame.HorizontalAlignment = HorizontalAlignment.Left;
//}
//else
//{
// contentFrame.Width = double.NaN;
// contentFrame.HorizontalAlignment = HorizontalAlignment.Stretch;
//}

if (Application.Current.MainWindow.ActualWidth >= 1372)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,20 @@

<local:ControlExample.Options>
<StackPanel>
<ui:ToggleSwitch x:Name="EnableToggle1" Header="Is Enabled" IsOn="False"/>
<ui:ToggleSwitch x:Name="EnableToggle1" Header="Is Enabled" IsOn="True"/>
</StackPanel>
</local:ControlExample.Options>
</local:ControlExample>

<TextBlock Margin="0,15" TextWrapping="Wrap">
SettingsCard can also be turned into a button, by setting the
<Run FontWeight="Bold">IsClickEnabled</Run>
property. This can be useful whenever you want your settings component to navigate to a detail page or open an external link. You can set a custom icon by setting the
<Run FontWeight="Bold">ActionIcon</Run>,
or hiding it completely by setting the
<Run FontWeight="Bold">IsActionIconVisible</Run>
to
<Run FontWeight="Bold">false</Run>.
</TextBlock>
</StackPanel>
</ui:Page>

0 comments on commit f2c9ca9

Please sign in to comment.