Skip to content

Commit e5010b9

Browse files
committed
Started Work on LayoutMode Selection Dialog
1 parent 5626ac1 commit e5010b9

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Files UWP/ProHome.xaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,5 +1118,19 @@
11181118
<Frame Width="400" Height="450" Name="propertiesFrame" />
11191119
</ContentDialog>
11201120

1121+
<ContentDialog Title="Pick an Item Layout" Name="LayoutDialog" Grid.RowSpan="4" CloseButtonText="Cancel" PrimaryButtonText="OK" DefaultButton="Primary">
1122+
<Windows10version1903:ContentDialog.Shadow>
1123+
<Windows10version1903:ThemeShadow/>
1124+
</Windows10version1903:ContentDialog.Shadow>
1125+
<Grid Width="450">
1126+
<StackPanel Spacing="25" Orientation="Vertical">
1127+
<StackPanel>
1128+
<RadioButton Content="Details - Displays a sortable DataGrid containing item details"/>
1129+
<RadioButton Content="Icons - Displays all items as larger icons with less information"/>
1130+
</StackPanel>
1131+
<CheckBox Content="Always use this layout for the current directory"/>
1132+
</StackPanel>
1133+
</Grid>
1134+
</ContentDialog>
11211135
</Grid>
11221136
</Page>

Files UWP/ProHome.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,9 @@ private void ShareButton_Click(object sender, RoutedEventArgs e)
672672
Interaction.ShareItem_Click(null, null);
673673
}
674674

675-
private void LayoutButton_Click(object sender, RoutedEventArgs e)
675+
private async void LayoutButton_Click(object sender, RoutedEventArgs e)
676676
{
677-
677+
await LayoutDialog.ShowAsync();
678678
}
679679

680680
private void SelectAllButton_Click(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)