File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 15
15
using System . Collections . Generic ;
16
16
using System . Collections . ObjectModel ;
17
17
using System . IO ;
18
+ using System . Text ;
18
19
using System . Threading ;
19
20
using System . Threading . Tasks ;
20
21
using Windows . Storage ;
@@ -46,12 +47,16 @@ public string ItemTooltipText
46
47
{
47
48
get
48
49
{
49
- return $ "{ "ToolTipDescriptionName" . GetLocalizedResource ( ) } { Name } { Environment . NewLine } " +
50
- $ "{ "ToolTipDescriptionType" . GetLocalizedResource ( ) } { itemType } { Environment . NewLine } " +
51
- $ "{ "ToolTipDescriptionDate" . GetLocalizedResource ( ) } { ItemDateModified } " +
52
- ( SyncStatusUI . LoadSyncStatus
53
- ? $ "{ Environment . NewLine } { "syncStatusColumn/Header" . GetLocalizedResource ( ) } : { syncStatusUI . SyncStatusString } "
54
- : string . Empty ) ;
50
+ var tooltipBuilder = new StringBuilder ( ) ;
51
+ tooltipBuilder . AppendLine ( $ "{ "ToolTipDescriptionName" . GetLocalizedResource ( ) } { Name } ") ;
52
+ tooltipBuilder . AppendLine ( $ "{ "ToolTipDescriptionType" . GetLocalizedResource ( ) } { itemType } ") ;
53
+ tooltipBuilder . Append ( $ "{ "ToolTipDescriptionDate" . GetLocalizedResource ( ) } { ItemDateModified } ") ;
54
+ if ( ! string . IsNullOrWhiteSpace ( FileSize ) )
55
+ tooltipBuilder . Append ( $ "{ Environment . NewLine } { "ToolTipDescriptionSize" . GetLocalizedResource ( ) } { FileSize } ") ;
56
+ if ( SyncStatusUI . LoadSyncStatus )
57
+ tooltipBuilder . Append ( $ "{ Environment . NewLine } { "syncStatusColumn/Header" . GetLocalizedResource ( ) } : { syncStatusUI . SyncStatusString } ") ;
58
+
59
+ return tooltipBuilder . ToString ( ) ;
55
60
}
56
61
}
57
62
Original file line number Diff line number Diff line change 2886
2886
<data name =" DoubleClickBlankSpaceToGoUp" xml : space =" preserve" >
2887
2887
<value >Double click on a blank space to go up one directory</value >
2888
2888
</data >
2889
+ <data name =" ToolTipDescriptionSize" xml : space =" preserve" >
2890
+ <value >Size:</value >
2891
+ </data >
2889
2892
</root >
Original file line number Diff line number Diff line change 187
187
CornerRadius=" {StaticResource ControlCornerRadius}"
188
188
IsRightTapEnabled=" True"
189
189
Loaded=" Grid_Loaded"
190
- ToolTipService.ToolTip=" {x:Bind Name , Mode=OneWay}" >
190
+ ToolTipService.ToolTip=" {x:Bind ItemTooltipText , Mode=OneWay}" >
191
191
<Grid .ColumnDefinitions>
192
192
<ColumnDefinition Width =" 24" />
193
193
<ColumnDefinition Width =" *" />
You can’t perform that action at this time.
0 commit comments