|
53 | 53 |
|
54 | 54 | <!--#endregion--> |
55 | 55 | <!--#endregion Card Template --> |
56 | | - |
| 56 | + |
57 | 57 | <!--#region ListView and GridView Header Template binding to a FeedView to Refresh--> |
58 | 58 | <DataTemplate x:Key="ViewHeaderTemplate" x:DataType="models:HeaderContent"> |
59 | 59 | <Grid Background="{ThemeResource SurfaceInverseBrush}" |
60 | 60 | CornerRadius="10,10,0,0" |
61 | 61 | Padding="10"> |
62 | 62 | <Grid.ColumnDefinitions> |
63 | | - <ColumnDefinition Width="Auto"/> |
64 | | - <ColumnDefinition Width="*" MinWidth="100"/> |
65 | | - <ColumnDefinition Width="Auto"/> |
| 63 | + <ColumnDefinition Width="Auto" /> |
| 64 | + <ColumnDefinition Width="*" |
| 65 | + MinWidth="100" /> |
| 66 | + <ColumnDefinition Width="Auto" /> |
66 | 67 | </Grid.ColumnDefinitions> |
67 | 68 | <PersonPicture ProfilePicture="{Binding ImageLocation}" |
68 | | - Width="60" |
69 | | - Style="{StaticResource DefaultPersonPictureStyle}" |
70 | | - Grid.Column="0"/> |
| 69 | + Width="60" |
| 70 | + Style="{StaticResource DefaultPersonPictureStyle}" |
| 71 | + Grid.Column="0" /> |
71 | 72 | <TextBlock Text="{Binding Caption}" |
72 | | - Style="{ThemeResource TitleMedium}" |
73 | | - Foreground="{ThemeResource OnSurfaceInverseBrush}" |
74 | | - VerticalAlignment="Center" |
75 | | - HorizontalAlignment="Center" |
76 | | - TextAlignment="Center" |
77 | | - Grid.Column="1" |
78 | | - TextWrapping="WrapWholeWords"/> |
| 73 | + Style="{ThemeResource TitleMedium}" |
| 74 | + Foreground="{ThemeResource OnSurfaceInverseBrush}" |
| 75 | + VerticalAlignment="Center" |
| 76 | + HorizontalAlignment="Center" |
| 77 | + TextAlignment="Center" |
| 78 | + Grid.Column="1" |
| 79 | + TextWrapping="WrapWholeWords" /> |
79 | 80 | <AppBarButton Style="{StaticResource FilledButtonStyle}" |
80 | 81 | Command="{utu:AncestorBinding AncestorType=mvux:FeedView, Path=Refresh}" |
81 | 82 | HorizontalAlignment="Center" |
|
85 | 86 | </AppBarButton> |
86 | 87 | </Grid> |
87 | 88 | </DataTemplate> |
88 | | - |
89 | 89 | <!--#endregion ListView and GridView Header Template--> |
90 | | - |
| 90 | + |
91 | 91 | <!--#region Grid Template aka GalleryImageOverlay --> |
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 --> |
|
126 | 126 | </DataTemplate> |
127 | 127 | <!--#endregion Grid Template aka GalleryImageOverlay--> |
128 | 128 |
|
| 129 | + <!--#region Code Sample Expander Content--> |
| 130 | + <DataTemplate x:Key="CodeSampleWrappedTextblock"> |
| 131 | + <ScrollViewer> |
| 132 | + <TextBlock Text="{Binding }" |
| 133 | + TextWrapping="WrapWholeWords" |
| 134 | + HorizontalAlignment="Center" /> |
| 135 | + </ScrollViewer> |
| 136 | + </DataTemplate> |
| 137 | + <!--#endregion--> |
| 138 | + |
| 139 | + <!--#region TabBarItem Template--> |
| 140 | + <DataTemplate x:Key="BottomTabBarItemTemplate"> |
| 141 | + <utu:TabBarItem Content="{Binding }" |
| 142 | + Style="{StaticResource BottomTabBarItemStyle}" /> |
| 143 | + </DataTemplate> |
| 144 | + <!--#endregion--> |
129 | 145 | </ResourceDictionary> |
0 commit comments