|
42 | 42 |
|
43 | 43 | <local:ExtensionPackageTemplateSelector x:Key="ExtensionPackageIdentifierTemplateSelector" |
44 | 44 | ComplexTemplate="{StaticResource ComplexExtensionIdentifierTemplate}" |
| 45 | + ComplexTemplateWithFontIcon="{StaticResource ComplexExtensionIdentifierTemplateWithFontIcon}" |
45 | 46 | DefaultTemplate="{StaticResource DefaultExtensionIdentifierTemplate}" /> |
46 | 47 |
|
47 | 48 | <DataTemplate x:Key="DefaultExtensionIdentifierTemplate" |
|
91 | 92 | </Grid> |
92 | 93 | </DataTemplate> |
93 | 94 |
|
| 95 | + <DataTemplate x:Key="ComplexExtensionIdentifierTemplateWithFontIcon" |
| 96 | + x:DataType="local:ExtensionPackageViewModel"> |
| 97 | + <Grid> |
| 98 | + <Grid.ColumnDefinitions> |
| 99 | + <ColumnDefinition Width="Auto" /> |
| 100 | + <ColumnDefinition Width="*" /> |
| 101 | + </Grid.ColumnDefinitions> |
| 102 | + <Grid.RowDefinitions> |
| 103 | + <RowDefinition Height="Auto" /> |
| 104 | + <RowDefinition Height="Auto" /> |
| 105 | + </Grid.RowDefinitions> |
| 106 | + |
| 107 | + <FontIcon Grid.Row="0" |
| 108 | + Grid.RowSpan="2" |
| 109 | + Grid.Column="0" |
| 110 | + Margin="0,0,8,0" |
| 111 | + FontSize="32" |
| 112 | + Glyph="{x:Bind Package.Icon}" /> |
| 113 | + <TextBlock Grid.Row="0" |
| 114 | + Grid.Column="1" |
| 115 | + Text="{x:Bind Package.DisplayName}" /> |
| 116 | + <TextBlock Grid.Row="1" |
| 117 | + Grid.Column="1" |
| 118 | + Style="{StaticResource SettingsPageItemDescriptionStyle}" |
| 119 | + Text="{x:Bind Package.Source}" /> |
| 120 | + </Grid> |
| 121 | + </DataTemplate> |
| 122 | + |
94 | 123 | <local:ExtensionPackageTemplateSelector x:Key="ExtensionPackageNavigatorTemplateSelector" |
95 | 124 | ComplexTemplate="{StaticResource ComplexExtensionNavigatorTemplate}" |
| 125 | + ComplexTemplateWithFontIcon="{StaticResource ComplexExtensionNavigatorTemplateWithFontIcon}" |
96 | 126 | DefaultTemplate="{StaticResource DefaultExtensionNavigatorTemplate}" /> |
97 | 127 |
|
98 | 128 | <DataTemplate x:Key="DefaultExtensionNavigatorTemplate" |
|
146 | 176 | </Button> |
147 | 177 | </DataTemplate> |
148 | 178 |
|
| 179 | + <DataTemplate x:Key="ComplexExtensionNavigatorTemplateWithFontIcon" |
| 180 | + x:DataType="local:ExtensionPackageViewModel"> |
| 181 | + <Button AutomationProperties.Name="{x:Bind AccessibleName}" |
| 182 | + Click="ExtensionNavigator_Click" |
| 183 | + Style="{StaticResource NavigatorButtonStyle}" |
| 184 | + Tag="{x:Bind}"> |
| 185 | + <Grid> |
| 186 | + <Grid.ColumnDefinitions> |
| 187 | + <ColumnDefinition Width="*" /> |
| 188 | + <ColumnDefinition Width="Auto" /> |
| 189 | + </Grid.ColumnDefinitions> |
| 190 | + |
| 191 | + <ContentPresenter Content="{x:Bind}" |
| 192 | + ContentTemplate="{StaticResource ComplexExtensionIdentifierTemplateWithFontIcon}" /> |
| 193 | + |
| 194 | + <ToggleSwitch Grid.Column="1" |
| 195 | + HorizontalAlignment="Right" |
| 196 | + VerticalAlignment="Center" |
| 197 | + AutomationProperties.Name="{x:Bind AccessibleName}" |
| 198 | + IsOn="{x:Bind Enabled, Mode=TwoWay}" |
| 199 | + Style="{StaticResource ToggleSwitchInExpanderStyle}" /> |
| 200 | + </Grid> |
| 201 | + </Button> |
| 202 | + </DataTemplate> |
| 203 | + |
149 | 204 | <DataTemplate x:Key="FragmentProfileViewModelTemplate" |
150 | 205 | x:DataType="local:FragmentProfileViewModel"> |
151 | 206 | <muxc:Expander AutomationProperties.Name="{x:Bind AccessibleName}" |
|
0 commit comments