Skip to content

Commit

Permalink
Use MinWidth/MaxWidth to workaround inability to create a GridSpan fr…
Browse files Browse the repository at this point in the history
…om a double.
  • Loading branch information
UXP Controls Automated Porting System committed Jan 16, 2019
1 parent ef8bdb1 commit 46fd162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/NavigationView/NavigationView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@

<Grid Grid.Row="2" Height="{StaticResource PaneToggleButtonHeight}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/> <!-- TODO: How to best get from Double 'PaneToggleButtonWidth' to GridLength in markup? -->
<ColumnDefinition Width="{ThemeResource PaneToggleButtonWidth}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>

Expand Down
4 changes: 2 additions & 2 deletions dev/NavigationView/NavigationView_rs1_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@
Background="{TemplateBinding Background}"
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/> <!-- TODO: How to best get from Double 'PaneToggleButtonWidth' to GridLength in markup? -->
<ColumnDefinition MinWidth="{ThemeResource PaneToggleButtonWidth}" MaxWidth="{ThemeResource PaneToggleButtonWidth}"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40"/> <!-- TODO: How to best get from Double 'PaneToggleButtonHeight' to GridLength in markup? -->
<RowDefinition MinHeight="{ThemeResource PaneToggleButtonHeight}"/>
</Grid.RowDefinitions>

<VisualStateManager.VisualStateGroups>
Expand Down

0 comments on commit 46fd162

Please sign in to comment.