|
10 | 10 | mc:Ignorable="d"
|
11 | 11 | DataContext="{Binding MainPageInstance, Source={StaticResource Locator}}">
|
12 | 12 |
|
13 |
| - <SplitView Name="MainPanel" CompactPaneLength="0" OpenPaneLength="640"> |
| 13 | + <Page.Resources> |
| 14 | + <ResourceDictionary> |
| 15 | + <ResourceDictionary.ThemeDictionaries> |
| 16 | + <ResourceDictionary x:Key="Default"> |
| 17 | + <Color x:Key="SystemAltHighColor">#2190EA</Color> |
| 18 | + <SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource SystemAltHighColor}" /> |
| 19 | + </ResourceDictionary> |
| 20 | + <ResourceDictionary x:Key="Dark"> |
| 21 | + <Color x:Key="SystemAltHighColor">#2190EA</Color> |
| 22 | + <SolidColorBrush x:Key="ApplicationPageBackgroundThemeBrush" Color="{ThemeResource SystemAltHighColor}" /> |
| 23 | + </ResourceDictionary> |
| 24 | + </ResourceDictionary.ThemeDictionaries> |
| 25 | + </ResourceDictionary> |
| 26 | + </Page.Resources> |
| 27 | + <SplitView Name="MainPanel" CompactPaneLength="0" OpenPaneLength="480"> |
14 | 28 | <SplitView.Pane>
|
15 |
| - <ScrollViewer Name="ContactsPanelScrollViewer" HorizontalAlignment="Left" MaxWidth="640" Padding="0 0 15 0"> |
16 |
| - <StackPanel> |
17 |
| - <SymbolIcon Symbol="AddFriend" HorizontalAlignment="Right" Name="AddFriendSymbol" Tapped="AddFriendSymbol_Tapped" Margin="0 0 0 5" /> |
18 |
| - <ListView Name="ContactsList" ItemsSource="{x:Bind Vm.Threads}" SelectionMode="Single" SelectionChanged="ContactsList_SelectionChanged"> |
19 |
| - <ListView.ItemContainerStyle> |
20 |
| - <Style TargetType="ListViewItem"> |
21 |
| - <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
22 |
| - </Style> |
23 |
| - </ListView.ItemContainerStyle> |
24 |
| - <ListView.ItemTemplate> |
25 |
| - <DataTemplate> |
26 |
| - <controls:ConversationListElement /> |
27 |
| - </DataTemplate> |
28 |
| - </ListView.ItemTemplate> |
29 |
| - </ListView> |
30 |
| - </StackPanel> |
31 |
| - </ScrollViewer> |
| 29 | + <Grid x:Name="ContactsGrid"> |
| 30 | + <Grid.RowDefinitions> |
| 31 | + <RowDefinition Height="Auto"/> |
| 32 | + <RowDefinition Height="Auto"/> |
| 33 | + <RowDefinition Height="*"/> |
| 34 | + </Grid.RowDefinitions> |
| 35 | + <TextBlock Grid.Row="0" Text="Signal" FontSize="34" FontWeight="Light" Margin="0,16" HorizontalAlignment="Center" Foreground="{ThemeResource ApplicationPageBackgroundThemeBrush}"/> |
| 36 | + <Button x:Name="AddContactButton" Grid.Row="0" HorizontalAlignment="Right" Background="{x:Null}" Click="AddContactButton_Click"> |
| 37 | + <TextBlock Text="+" FontSize="34" FontWeight="Light" Foreground="{ThemeResource ApplicationPageBackgroundThemeBrush}"/> |
| 38 | + </Button> |
| 39 | + <AutoSuggestBox Grid.Row="1" Margin="16"/> |
| 40 | + <ListView Grid.Row="2" Name="ContactsList" ItemsSource="{x:Bind Vm.Threads}" SelectionMode="Single" SelectionChanged="ContactsList_SelectionChanged"> |
| 41 | + <ListView.ItemContainerStyle> |
| 42 | + <Style TargetType="ListViewItem"> |
| 43 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 44 | + </Style> |
| 45 | + </ListView.ItemContainerStyle> |
| 46 | + <ListView.ItemTemplate> |
| 47 | + <DataTemplate> |
| 48 | + <controls:ConversationListElement /> |
| 49 | + </DataTemplate> |
| 50 | + </ListView.ItemTemplate> |
| 51 | + </ListView> |
| 52 | + </Grid> |
32 | 53 | </SplitView.Pane>
|
33 |
| - <Grid> |
| 54 | + <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
34 | 55 | <controls:Welcome Grid.Row="0" Visibility="{x:Bind Vm.WelcomeVisibility, Mode=OneWay}" />
|
35 | 56 | <controls:Conversation Grid.Row="0" Visibility="{x:Bind Vm.ThreadVisibility, Mode=OneWay}" x:Name="ThreadView" />
|
36 | 57 | </Grid>
|
|
0 commit comments