|
14 | 14 | See the License for the specific language governing permissions and |
15 | 15 | limitations under the License. |
16 | 16 | --> |
| 17 | + |
17 | 18 | <!-- TODO: Insert MenuItemsSource --> |
18 | 19 | <!-- TODO: IsPaneToggleButtonVisible = True -> PaneToggle-Style and overlap --> |
19 | 20 | <!-- TODO: <NavigationMode />--> |
| 21 | + |
20 | 22 | <Page x:Class="electrifier.Views.ShellPage" |
21 | 23 | xmlns:behaviors="using:electrifier.Behaviors" |
22 | 24 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
28 | 30 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
29 | 31 | Loaded="OnLoaded"> |
30 | 32 | <Grid> |
31 | | - <!-- #region MainWindow -> AppTitleBar --> |
32 | 33 | <Grid x:Name="AppTitleBar" |
33 | 34 | Height="{Binding ElementName=NavigationViewControl, Path=CompactPaneLength}" |
34 | 35 | HorizontalAlignment="Stretch" |
|
59 | 60 | </StackPanel> |
60 | 61 | </StackPanel> |
61 | 62 | </Grid> |
62 | | - <!-- #endregion MainWindow -> AppTitleBar --> |
63 | | - |
64 | | - <!--#region NavigationViewControl--> |
65 | 63 | <NavigationView x:Name="NavigationViewControl" |
66 | 64 | AlwaysShowHeader="True" |
67 | 65 | CompactPaneLength="72" |
| 66 | + DisplayModeChanged="NavigationViewControl_DisplayModeChanged" |
68 | 67 | IsBackButtonVisible="Visible" |
69 | | - IsBackEnabled="True" |
| 68 | + IsBackEnabled="False" |
70 | 69 | IsPaneOpen="True" |
71 | 70 | IsPaneToggleButtonVisible="True" |
72 | 71 | IsSettingsVisible="True" |
73 | | - DisplayModeChanged="NavigationViewControl_DisplayModeChanged"> |
| 72 | + IsTitleBarAutoPaddingEnabled="True"> |
74 | 73 | <!--<NavigationView.IsTitleBarAutoPaddingEnabled />--> |
75 | 74 | <!-- |
76 | 75 | TODO: Update item titles by updating <x:Uid>.Content entries in Strings/en-us/Resources.resw. |
|
96 | 95 | <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
97 | 96 | Glyph="" /> |
98 | 97 | </NavigationViewItem.Icon> |
| 98 | + <NavigationViewItem.MenuItems> |
| 99 | + <NavigationViewItem Content="Home" |
| 100 | + Icon="Home" |
| 101 | + ToolTipService.ToolTip="Go to Editor Home" |
| 102 | + Tag="Editor Home" /> |
| 103 | + <NavigationViewItemSeparator /> |
| 104 | + <NavigationViewItem x:Uid="NavigationView_Footer_BucketList" |
| 105 | + helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
| 106 | + IsEnabled="False"> |
| 107 | + Bucket List |
| 108 | + <NavigationViewItem.Icon> |
| 109 | + <!-- Glyph="&" --> |
| 110 | + <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
| 111 | + Glyph="" /> |
| 112 | + </NavigationViewItem.Icon> |
| 113 | + </NavigationViewItem> |
| 114 | + </NavigationViewItem.MenuItems> |
99 | 115 | </NavigationViewItem> |
100 | | - |
101 | 116 | <NavigationViewItemSeparator /> |
102 | | - |
103 | | - <NavigationViewItem x:Uid="NavigationView_FileManager" |
104 | | - Visibility="Collapsed" |
105 | | - helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.FileManagerViewModel"> |
106 | | - File Manager |
| 117 | + <NavigationViewItem x:Uid="NavigationView_Editors"> |
| 118 | + Editors |
107 | 119 | <NavigationViewItem.Icon> |
108 | | - <!-- Glyph "" => "FileExplorer" --> |
109 | | - <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
110 | | - Glyph="" /> |
111 | | - </NavigationViewItem.Icon> |
112 | | - <!-- TODO: Create SubItems --> |
113 | | - <!--<NavigationViewItem.MenuItems> |
114 | | - <NavigationViewItem Content="Create new" |
115 | | - Icon="NewFolder" |
116 | | - ToolTipService.ToolTip="Create new" |
117 | | - Tag="SamplePage5" /> |
118 | | - <NavigationViewItem Content="Upload file" |
119 | | - Icon="OpenLocal" |
120 | | - ToolTipService.ToolTip="Upload file" |
121 | | - Tag="SamplePage6" /> |
122 | | - </NavigationViewItem.MenuItems>--> |
123 | | - </NavigationViewItem> |
124 | | - <NavigationViewItem x:Uid="NavigationView_WebView" |
125 | | - Visibility="Collapsed" |
126 | | - helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel"> |
127 | | - Web Browser |
128 | | - <NavigationViewItem.Icon> |
129 | | - <!-- Glyph "" => Website --> |
| 120 | + <!-- Glyph="&" --> |
130 | 121 | <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
131 | | - Glyph="" /> |
| 122 | + Glyph="" /> |
132 | 123 | </NavigationViewItem.Icon> |
| 124 | + <NavigationViewItem.MenuItems> |
| 125 | + <NavigationViewItem Content="Home" |
| 126 | + Icon="Home" |
| 127 | + ToolTipService.ToolTip="Go to Editor Home" |
| 128 | + Tag="Editor Home" /> |
| 129 | + <NavigationViewItemSeparator /> |
| 130 | + <NavigationViewItem x:Uid="NavigationView_Footer_ClipboardEditor" |
| 131 | + helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
| 132 | + IsEnabled="False"> |
| 133 | + Clipboard History |
| 134 | + <NavigationViewItem.Icon> |
| 135 | + <!-- Glyph="&" --> |
| 136 | + <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
| 137 | + Glyph="" /> |
| 138 | + </NavigationViewItem.Icon> |
| 139 | + </NavigationViewItem> |
| 140 | + <NavigationViewItem x:Uid="NavigationView_Footer_ResourcesEditor" |
| 141 | + helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
| 142 | + IsEnabled="False"> |
| 143 | + Resources |
| 144 | + <NavigationViewItem.Icon> |
| 145 | + <!-- Glyph="&" --> |
| 146 | + <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
| 147 | + Glyph="" /> |
| 148 | + </NavigationViewItem.Icon> |
| 149 | + </NavigationViewItem> |
| 150 | + <NavigationViewItem x:Uid="NavigationView_Footer_TextEditor" |
| 151 | + helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
| 152 | + IsEnabled="False"> |
| 153 | + Text |
| 154 | + <NavigationViewItem.Icon> |
| 155 | + <!-- Glyph="&" --> |
| 156 | + <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
| 157 | + Glyph="" /> |
| 158 | + |
| 159 | + </NavigationViewItem.Icon> |
| 160 | + <!--<MenuFlyout> |
| 161 | +
|
| 162 | +</MenuFlyout> |
| 163 | +<MenuFlyoutSubItem> |
| 164 | + |
| 165 | +</MenuFlyoutSubItem>--> |
| 166 | + |
| 167 | + </NavigationViewItem> |
| 168 | + </NavigationViewItem.MenuItems> |
133 | 169 | </NavigationViewItem> |
134 | 170 | </NavigationView.MenuItems> |
135 | | - <!-- #region FooterMenuItems --> |
136 | 171 | <NavigationView.FooterMenuItems> |
137 | | - <NavigationViewItem x:Uid="NavigationView_Footer_TextEditor" |
138 | | - helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
139 | | - IsEnabled="False"> |
140 | | - Text Editor |
141 | | - <NavigationViewItem.Icon> |
142 | | - <!-- Glyph="&" --> |
143 | | - <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
144 | | - Glyph="" /> |
145 | | - </NavigationViewItem.Icon> |
146 | | - </NavigationViewItem> |
147 | | - <NavigationViewItem x:Uid="NavigationView_Footer_ResourceExtractor" |
148 | | - helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
149 | | - IsEnabled="False"> |
150 | | - Calculator |
151 | | - <NavigationViewItem.Icon> |
152 | | - <!-- Glyph="&" --> |
153 | | - <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
154 | | - Glyph="" /> |
155 | | - </NavigationViewItem.Icon> |
156 | | - </NavigationViewItem> |
157 | 172 | <NavigationViewItem x:Uid="NavigationView_Footer_ContactList" |
158 | 173 | helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
159 | 174 | IsEnabled="False"> |
160 | | - Contact List |
| 175 | + Contacts |
161 | 176 | <NavigationViewItem.Icon> |
162 | 177 | <!-- Glyph="&" --> |
163 | 178 | <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
|
174 | 189 | Glyph="" /> |
175 | 190 | </NavigationViewItem.Icon> |
176 | 191 | </NavigationViewItem> |
177 | | - <NavigationViewItem x:Uid="NavigationView_Footer_BucketList" |
178 | | - helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
179 | | - IsEnabled="False"> |
180 | | - Bucket List |
181 | | - <NavigationViewItem.Icon> |
182 | | - <!-- Glyph="&" --> |
183 | | - <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" |
184 | | - Glyph="" /> |
185 | | - </NavigationViewItem.Icon> |
186 | | - </NavigationViewItem> |
187 | 192 | <NavigationViewItem x:Uid="NavigationView_Footer_Favorites" |
188 | 193 | helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WebViewViewModel" |
189 | 194 | IsEnabled="False"> |
|
212 | 217 | Glyph="" /> |
213 | 218 | </NavigationViewItem.Icon> |
214 | 219 | <NavigationViewItem.MenuItems> |
215 | | - <NavigationViewItem Content="Desktop" |
216 | | - Icon="Folder" |
| 220 | + <NavigationViewItem Content="Home" |
| 221 | + Icon="Home" |
217 | 222 | ToolTipService.ToolTip="Go to Desktop folder" |
218 | 223 | Tag="FileExplorer Desktop Folder" /> |
219 | | - <NavigationViewItemSeparator /> |
220 | | - <NavigationViewItem Content="My Pictures" |
221 | | - Icon="Pictures" |
222 | | - ToolTipService.ToolTip="Pictures" |
223 | | - Tag="FileExplorer Pictures Folder" /> |
224 | | - <NavigationViewItem Content="My Documents" |
| 224 | + <NavigationViewItem Content="Documents" |
225 | 225 | Icon="Document" |
226 | 226 | ToolTipService.ToolTip="Documents" |
227 | 227 | Tag="FileExplorer Documents Folder" /> |
| 228 | + <NavigationViewItem Content="Downloads" |
| 229 | + Icon="Download" |
| 230 | + ToolTipService.ToolTip="Downloads" |
| 231 | + Tag="FileExplorer Downloads Folder" /> |
| 232 | + <NavigationViewItem Content="Music" |
| 233 | + Icon="MusicInfo" |
| 234 | + ToolTipService.ToolTip="Music" |
| 235 | + Tag="FileExplorer Music Folder" /> |
| 236 | + <NavigationViewItem Content="Pictures" |
| 237 | + Icon="Pictures" |
| 238 | + ToolTipService.ToolTip="Pictures" |
| 239 | + Tag="FileExplorer Pictures Folder" /> |
| 240 | + <NavigationViewItem Content="Videos" |
| 241 | + Icon="Video" |
| 242 | + ToolTipService.ToolTip="Videos" |
| 243 | + Tag="FileExplorer Videos Folder" /> |
228 | 244 | <NavigationViewItemSeparator /> |
| 245 | + <NavigationViewItem Content="Settings" |
| 246 | + Icon="Setting" |
| 247 | + ToolTipService.ToolTip="Settings" |
| 248 | + Tag="FileExplorer Settings" /> |
229 | 249 | </NavigationViewItem.MenuItems> |
230 | 250 | </NavigationViewItem> |
231 | | - <NavigationViewItemSeparator /> |
232 | 251 | <NavigationViewItem x:Uid="NavigationView_Footer_Workbench" |
233 | 252 | helpers:NavigationHelper.NavigateTo="electrifier.ViewModels.WorkbenchViewModel"> |
234 | 253 | Workbench |
|
239 | 258 | </NavigationViewItem.Icon> |
240 | 259 | </NavigationViewItem> |
241 | 260 | </NavigationView.FooterMenuItems> |
242 | | - <!-- #endregion FooterMenuItems --> |
243 | 261 | <NavigationView.HeaderTemplate> |
244 | 262 | <DataTemplate> |
245 | 263 | <Grid> |
|
265 | 283 | <Frame x:Name="NavigationFrame" /> |
266 | 284 | </Grid> |
267 | 285 | </NavigationView> |
268 | | - <!--#endregion NavigationViewControl--> |
269 | 286 | </Grid> |
270 | 287 | </Page> |
0 commit comments