Skip to content

Commit 3e8407d

Browse files
committed
Add drive capacity info tooltip
1 parent a6c25b0 commit 3e8407d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Files UWP/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void PopulateDrivesListWithLocalDisks()
135135
if (!(await KnownFolders.RemovableDevices.GetFoldersAsync()).Select(x => x.Path).ToList().Contains(roots.Name))
136136
{
137137
// TODO: Display Custom Names for Local Disks as well
138-
content = $"Local Disk ({roots.Name})";
138+
content = $"Local Disk ({roots.Name.TrimEnd('\\')})";
139139
icon = "\uEDA2";
140140

141141
await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Low,

Files UWP/ProHome.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -866,15 +866,15 @@
866866
</Grid>
867867
<SplitView DisplayMode="Inline" OpenPaneLength="225" IsPaneOpen="True" HorizontalAlignment="Stretch" Grid.RowSpan="1" Grid.Row="1" VerticalAlignment="Stretch" PaneBackground="{ThemeResource ApplicationPageBackgroundThemeBrush}">
868868
<SplitView.Pane>
869-
<ScrollViewer VerticalScrollBarVisibility="Auto">
870-
<Grid>
869+
<ScrollViewer Margin="0,14,0,0" VerticalScrollBarVisibility="Auto">
870+
<Grid >
871871
<StackPanel>
872872
<StackPanel.Resources>
873873
<SolidColorBrush x:Key="ListViewItemBackgroundSelected" Color="{ThemeResource SystemRevealListMediumColor}"/>
874874
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPointerOver" Color="{ThemeResource SystemRevealListMediumColor}"/>
875875
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPressed" Color="{ThemeResource SystemRevealListMediumColor}"/>
876876
</StackPanel.Resources>
877-
<TextBlock Margin="10" Text="Locations" FontSize="14" FontWeight="Bold" Padding="0" VerticalAlignment="Stretch"/>
877+
<TextBlock Visibility="Collapsed" Margin="10" Text="Locations" FontSize="14" FontWeight="Bold" Padding="0" VerticalAlignment="Stretch"/>
878878
<ListView SelectionChanged="LocationsList_SelectionChanged" SelectionMode="Single" IsItemClickEnabled="True" ItemClick="LocationsList_ItemClick" Name="LocationsList">
879879
<ListView.Resources>
880880
<ResourceDictionary Source="ms-appx:///Microsoft.UI.Xaml/DensityStyles/Compact.xaml" />
@@ -936,14 +936,14 @@
936936
</ListViewItem.Content>
937937
</ListViewItem>
938938
</ListView>
939-
<TextBlock Margin="10" Text="Drives" FontSize="14" FontWeight="Bold" Padding="0" VerticalAlignment="Stretch"/>
940-
<ListView ItemsSource="{x:Bind local:App.foundDrives}" SelectionChanged="DrivesList_SelectionChanged" SelectionMode="Single" IsItemClickEnabled="True" ItemClick="DrivesList_ItemClick" Name="DrivesList">
939+
<TextBlock Margin="10,10,10,5" Text="Drives" FontSize="14" FontWeight="Bold" Padding="0" VerticalAlignment="Stretch"/>
940+
<ListView AllowDrop="True" CanReorderItems="True" ItemsSource="{x:Bind local:App.foundDrives}" SelectionChanged="DrivesList_SelectionChanged" SelectionMode="Single" IsItemClickEnabled="True" ItemClick="DrivesList_ItemClick" Name="DrivesList">
941941
<ListView.Resources>
942942
<ResourceDictionary Source="ms-appx:///Microsoft.UI.Xaml/DensityStyles/Compact.xaml" />
943943
</ListView.Resources>
944944
<ListView.ItemTemplate>
945945
<DataTemplate>
946-
<StackPanel Spacing="15" Orientation="Horizontal">
946+
<StackPanel ToolTipService.ToolTip="{Binding spaceText}" Spacing="15" Orientation="Horizontal">
947947
<Grid>
948948
<FontIcon Visibility="{Binding driveGlyphVisibility}" FontSize="16" Glyph="{Binding glyph}" FontFamily="Segoe MDL2 Assets"/>
949949
<FontIcon Visibility="{Binding cloudGlyphVisibility}" FontSize="16" Glyph="&#xE753;" FontFamily="Segoe MDL2 Assets"/>

0 commit comments

Comments
 (0)