|
7 | 7 | xmlns:mvux="using:Uno.Extensions.Reactive.UI"> |
8 | 8 |
|
9 | 9 | <!--#region Card Template --> |
10 | | - <DataTemplate x:Key="StyledCardTemplate" x:DataType="gi:GalleryImageModel"> |
| 10 | + <DataTemplate x:Key="StyledCardTemplate" x:DataType="gi:GalleryImage"> |
11 | 11 | <utu:Card CornerRadius="20" |
12 | 12 | HorizontalContentAlignment="Stretch" |
13 | 13 | HeaderContent="{Binding Title}" |
|
21 | 21 | MediaContentTemplate="{StaticResource CardMediaContentTemplate}"/> |
22 | 22 | </DataTemplate> |
23 | 23 | <!--#region Card HeaderContent Template--> |
24 | | - <DataTemplate x:Key="CardHeaderContentTemplate" x:DataType="gi:GalleryImageModel"> |
| 24 | + <DataTemplate x:Key="CardHeaderContentTemplate" x:DataType="gi:GalleryImage"> |
25 | 25 | <Border Background="{ThemeResource SurfaceInverseBrush}" Opacity=".7"> |
26 | 26 | <TextBlock Text="{Binding }" |
27 | 27 | Style="{ThemeResource TitleLarge}" |
|
33 | 33 | <!--#endregion--> |
34 | 34 |
|
35 | 35 | <!--#region Card SubHeaderContent Template--> |
36 | | - <DataTemplate x:DataType="gi:GalleryImageModel" x:Key="CardSubHeaderContentTemplate"> |
| 36 | + <DataTemplate x:DataType="gi:GalleryImage" x:Key="CardSubHeaderContentTemplate"> |
37 | 37 | <Border Background="{ThemeResource SurfaceInverseBrush}" Opacity=".7"> |
38 | 38 | <TextBlock Text="{Binding }" |
39 | 39 | Style="{ThemeResource BodySmall}" |
|
45 | 45 | <!--#endregion--> |
46 | 46 |
|
47 | 47 | <!--#region Card MediaContentTemplate--> |
48 | | - <DataTemplate x:DataType="gi:GalleryImageModel" x:Key="CardMediaContentTemplate"> |
| 48 | + <DataTemplate x:DataType="gi:GalleryImage" x:Key="CardMediaContentTemplate"> |
49 | 49 | <Image Source="{Binding }" |
50 | 50 | Stretch="Uniform" |
51 | 51 | Width="{utu:AncestorBinding AncestorType=utu:Card, Path=Width}" /> |
|
92 | 92 | <!-- This Sample is a simplifyed Template using a regular Grid with a unified Layout--> |
93 | 93 | <!-- Reference used: WinUi 3 Gallery GridView "ItemOverlayTemplate" winui3gallery://item/GridView --> |
94 | 94 |
|
95 | | - <DataTemplate x:Key="GalleryImageOverlayTemplate" x:DataType="gi:GalleryImageModel"> |
| 95 | + <DataTemplate x:Key="GalleryImageOverlayTemplate" x:DataType="gi:GalleryImage"> |
96 | 96 | <Grid HorizontalAlignment="Stretch" |
97 | 97 | VerticalAlignment="Stretch" |
98 | 98 | CornerRadius="20" |
|
137 | 137 | <!--#endregion--> |
138 | 138 |
|
139 | 139 | <!--#region TabBarItem Template--> |
140 | | - <DataTemplate x:Key="BottomTabBarItemTemplate"> |
141 | | - <utu:TabBarItem Content="{Binding }" |
142 | | - HorizontalAlignment="Center" |
143 | | - HorizontalContentAlignment="Center" |
144 | | - Style="{StaticResource BottomTabBarItemStyle}"> |
145 | | - <utu:TabBarItem.Icon> |
146 | | - <FontIcon Glyph="" /> |
147 | | - </utu:TabBarItem.Icon> |
| 140 | + |
| 141 | + <DataTemplate x:Key="SelectorDropDown"> |
| 142 | + <ComboBox ItemsSource="{Binding }" |
| 143 | + HorizontalContentAlignment="Center" |
| 144 | + HorizontalAlignment="Stretch" /> |
| 145 | + |
| 146 | + </DataTemplate> |
| 147 | + <DataTemplate x:Key="BottomTabBarItemTemplate"> |
| 148 | + |
| 149 | + <utu:TabBarItem Content="{Binding }" |
| 150 | + HorizontalAlignment="Center" |
| 151 | + HorizontalContentAlignment="Center" |
| 152 | + Style="{StaticResource BottomTabBarItemStyle}"> |
| 153 | + <utu:TabBarItem.Icon> |
| 154 | + <FontIcon Glyph="" /> |
| 155 | + </utu:TabBarItem.Icon> |
148 | 156 | </utu:TabBarItem> |
149 | 157 | </DataTemplate> |
150 | 158 | <!--#endregion--> |
|
0 commit comments