-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathShell.xaml
More file actions
49 lines (49 loc) · 2.7 KB
/
Shell.xaml
File metadata and controls
49 lines (49 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="CommunityToolkit.App.Shared.Pages.Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.App.Shared.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<controls:TitleBar x:Name="appTitleBar"
Title="Windows Community Toolkit Gallery"
BackButtonClick="TitleBar_BackButtonClick"
DisplayMode="Tall"
IsBackButtonVisible="True"
IsPaneButtonVisible="True"
PaneButtonClick="TitleBar_PaneButtonClick">
<controls:TitleBar.Icon>
<BitmapIcon ShowAsMonochrome="False"
UriSource="ms-appx:///Assets/AppTitleBar.png" />
</controls:TitleBar.Icon>
<controls:TitleBar.Content>
<AutoSuggestBox x:Name="searchBox"
win:AutomationProperties.Name="Search"
ItemTemplate="{StaticResource ControlItemAutoSuggestBoxTemplate}"
PlaceholderText="Search the Toolkit.."
QueryIcon="Find"
QuerySubmitted="searchBox_QuerySubmitted"
TextChanged="searchBox_TextChanged"
UpdateTextOnSelect="False" />
</controls:TitleBar.Content>
</controls:TitleBar>
<muxc:NavigationView x:Name="NavView"
Grid.Row="1"
IsBackButtonVisible="Collapsed"
IsPaneToggleButtonVisible="False"
ItemInvoked="NavView_ItemInvoked"
PaneDisplayMode="Top">
<Frame x:Name="NavigationFrame"
Navigated="NavigationFrameOnNavigated" />
</muxc:NavigationView>
<!-- See AutoSuggestBox issue for WASM https://github.com/unoplatform/uno/issues/7778 -->
</Grid>
</Page>