File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 15
15
using System . Runtime . InteropServices ;
16
16
using System . IO ;
17
17
using Windows . UI . Popups ;
18
+ using Windows . UI . Text ;
18
19
19
20
namespace Files
20
21
{
@@ -53,6 +54,8 @@ public YourHome()
53
54
VideosPath = localSettings . Values [ "VideosLocation" ] . ToString ( ) ;
54
55
}
55
56
}
57
+
58
+
56
59
}
57
60
58
61
public T GetCurrentSelectedTabInstance < T > ( )
@@ -86,6 +89,25 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
86
89
GetCurrentSelectedTabInstance < ProHome > ( ) . accessiblePasteButton . IsEnabled = false ;
87
90
GetCurrentSelectedTabInstance < ProHome > ( ) . AlwaysPresentCommands . isEnabled = false ;
88
91
GetCurrentSelectedTabInstance < ProHome > ( ) . LayoutItems . isEnabled = false ;
92
+
93
+ // Clear the path UI and replace with Favorites
94
+ GetCurrentSelectedTabInstance < ProHome > ( ) . accessiblePathTabView . Items . Clear ( ) ;
95
+ Style tabStyleFixed = GetCurrentSelectedTabInstance < ProHome > ( ) . accessiblePathTabView . Resources [ "PathSectionTabStyle" ] as Style ;
96
+ FontWeight weight = new FontWeight ( )
97
+ {
98
+ Weight = FontWeights . SemiBold . Weight
99
+ } ;
100
+ string componentLabel = "Favorites" ;
101
+ string tag = "Favorites" ;
102
+ GetCurrentSelectedTabInstance < ProHome > ( ) . accessiblePathTabView . Items . Add ( new Microsoft . UI . Xaml . Controls . TabViewItem ( )
103
+ {
104
+ Header = componentLabel + " >" ,
105
+ Tag = tag ,
106
+ CornerRadius = new CornerRadius ( 0 ) ,
107
+ Style = tabStyleFixed ,
108
+ FontWeight = weight
109
+ } ) ;
110
+
89
111
}
90
112
91
113
private void CardPressed ( object sender , ItemClickEventArgs e )
You can’t perform that action at this time.
0 commit comments