Skip to content

Commit 3092ddf

Browse files
committed
Allow Quick De-selection of All Items
1 parent 5a5c21b commit 3092ddf

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

GenericFileBrowser.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
xmlns:local2="using:ItemListPresenter"
1212
xmlns:local3="using:Interacts"
1313
Name="GenericItemView"
14-
mc:Ignorable="d">
14+
mc:Ignorable="d" PointerReleased="GenericItemView_PointerReleased">
1515

1616
<Grid>
1717
<Grid Tag="{x:Bind Tag, Mode=OneWay}" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Padding="0,0,0,0" VerticalAlignment="Stretch">
@@ -112,7 +112,7 @@
112112

113113
<MenuFlyout x:Name="RightClickContextMenu" x:Key="RightClickFlyout">
114114
<MenuFlyout.Items>
115-
<MenuFlyoutItem Text="Open" Name="OpenItem">
115+
<MenuFlyoutItem Text="Open With..." Name="OpenItem">
116116
<MenuFlyoutItem.Icon>
117117
<FontIcon Glyph="&#xE7AC;"/>
118118
</MenuFlyoutItem.Icon>
@@ -180,7 +180,7 @@
180180
</DataTemplate>
181181
</controls:DataGridTemplateColumn.CellTemplate>
182182
</controls:DataGridTemplateColumn>
183-
<controls:DataGridTextColumn Header="Name" Width="385" Binding="{Binding FileName}" Tag="Name"/>
183+
<controls:DataGridTextColumn Header="Name" IsReadOnly="False" Width="385" Binding="{Binding FileName}" Tag="Name"/>
184184
<controls:DataGridTextColumn IsReadOnly="True" Header="Date modified" Width="Auto" Binding="{Binding FileDate}" Tag="Date"/>
185185
<controls:DataGridTextColumn IsReadOnly="True" Header="Type" Width="150" Binding="{Binding FileExtension}" Tag="Type"/>
186186
<controls:DataGridTextColumn IsReadOnly="True" Header="Size" Binding="{Binding FileSize}" Tag="Size"/>

GenericFileBrowser.xaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using ItemListPresenter;
1+
using Interacts;
2+
using ItemListPresenter;
23
using Microsoft.Toolkit.Uwp.UI.Controls;
34
using Navigation;
45
using System;
@@ -216,6 +217,11 @@ private void ContentDialog_Loaded(object sender, RoutedEventArgs e)
216217
{
217218
AddDialogFrame.Navigate(typeof(AddItem), new SuppressNavigationTransitionInfo());
218219
}
220+
221+
private void GenericItemView_PointerReleased(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
222+
{
223+
data.SelectedItems.Clear();
224+
}
219225
}
220226

221227
public class EmptyFolderTextState : INotifyPropertyChanged

LocationsList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class LocationItem
77
public string ImageSource { get; set; }
88
public string Icon { get; set; }
99
public string Text { get; set; }
10-
public string DominantImageColor { get; set; }
10+
//public string DominantImageColor { get; set; }
1111
}
1212

1313
public class ItemLoader

0 commit comments

Comments
 (0)