-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathShell.xaml
70 lines (66 loc) · 3.49 KB
/
Shell.xaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Chat"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:Chat.Controls"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
x:Class="Chat.Shell"
mc:Ignorable="d"
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
d:DesignHeight="800"
d:DesignWidth="1500">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<controls:TitlebarControl x:Name="Titlebar"
HorizontalAlignment="Stretch"/>
<muxc:NavigationView IsBackButtonVisible="Collapsed"
Grid.Row="1"
x:Name="NavigationView"
IsSettingsVisible="False"
AlwaysShowHeader="True"
OpenPaneLength="392"
CompactPaneLength="62"
SelectionChanged="NavigationView_SelectionChanged"
SelectedItem="{x:Bind ViewModel.SelectedItem, Mode=TwoWay}"
MenuItemsSource="{x:Bind ViewModel.ChatConversations, Mode=OneWay}">
<muxc:NavigationView.AutoSuggestBox>
<AutoSuggestBox VerticalAlignment="Center"
QueryIcon="Find"
PlaceholderText="Find a conversation"
TextBoxStyle="{StaticResource TextBoxNoBackground}"/>
</muxc:NavigationView.AutoSuggestBox>
<muxc:NavigationView.PaneHeader>
<Grid Width="352">
<Grid Margin="36,-4,8,0" VerticalAlignment="Top">
<TextBlock Text="Conversations" VerticalAlignment="Center" Style="{ThemeResource FluentSubheaderTextStyle}"/>
<CommandBar Background="Transparent">
<CommandBar.PrimaryCommands>
<AppBarButton Icon="Add" x:Name="NewConvoButton" Command="{x:Bind NewConvoCommand}"/>
</CommandBar.PrimaryCommands>
<CommandBar.SecondaryCommands>
<AppBarButton x:Name="AboutButton" Label="About" Command="{x:Bind OpenAboutCommand}">
<AppBarButton.Icon>
<FontIcon Glyph=""/>
</AppBarButton.Icon>
</AppBarButton>
</CommandBar.SecondaryCommands>
</CommandBar>
</Grid>
</Grid>
</muxc:NavigationView.PaneHeader>
<Grid HorizontalAlignment="Stretch">
<Frame x:Name="MainFrame">
<Frame.ContentTransitions>
<TransitionCollection>
<EdgeUIThemeTransition Edge="Left"/>
</TransitionCollection>
</Frame.ContentTransitions>
</Frame>
</Grid>
</muxc:NavigationView>
</Grid>
</UserControl>