|
7 | 7 | xmlns:local="using:WinUI3Localizer.SampleApp" |
8 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | 9 | mc:Ignorable="d"> |
10 | | - <Grid> |
11 | | - <local:ExamplePresenter HeaderText="ItemsRepeater"> |
12 | | - <ScrollViewer Grid.Row="1"> |
13 | | - <ItemsRepeater ItemsSource="{x:Bind People}"> |
14 | | - <ItemsRepeater.ItemTemplate> |
15 | | - <DataTemplate x:DataType="local:Person"> |
16 | | - <Grid |
17 | | - ColumnDefinitions="*,*,*" |
18 | | - RowDefinitions="Auto,Auto"> |
19 | | - <TextBlock |
20 | | - Grid.Row="0" |
21 | | - Grid.Column="0" |
22 | | - l:Uids.Uid="ItemTemplatesPage_ID" |
23 | | - FontSize="10" |
24 | | - Foreground="DimGray" |
25 | | - PointerEntered="LocalizedItem_PointerEntered" /> |
26 | | - <TextBlock |
27 | | - Grid.Row="0" |
28 | | - Grid.Column="1" |
29 | | - l:Uids.Uid="ItemTemplatesPage_FirstName" |
30 | | - FontSize="10" |
31 | | - Foreground="DimGray" |
32 | | - PointerEntered="LocalizedItem_PointerEntered" /> |
33 | | - <TextBlock |
34 | | - Grid.Row="0" |
35 | | - Grid.Column="2" |
36 | | - l:Uids.Uid="ItemTemplatesPage_LastName" |
37 | | - FontSize="10" |
38 | | - Foreground="DimGray" |
39 | | - PointerEntered="LocalizedItem_PointerEntered" /> |
40 | | - <TextBlock |
41 | | - Grid.Row="1" |
42 | | - Grid.Column="0" |
43 | | - Text="{x:Bind ID}" /> |
44 | | - <TextBlock |
45 | | - Grid.Row="1" |
46 | | - Grid.Column="1" |
47 | | - Text="{x:Bind FirstName}" /> |
48 | | - <TextBlock |
49 | | - Grid.Row="1" |
50 | | - Grid.Column="2" |
51 | | - Text="{x:Bind LastName}" /> |
52 | | - </Grid> |
53 | | - </DataTemplate> |
54 | | - </ItemsRepeater.ItemTemplate> |
55 | | - </ItemsRepeater> |
56 | | - </ScrollViewer> |
57 | | - <local:ExamplePresenter.XamlSampleCode> |
58 | | - <x:String xml:space="preserve"><ItemsRepeater ItemsSource="{x:Bind People}"> |
| 10 | + <ScrollViewer> |
| 11 | + <StackPanel Style="{StaticResource PageStackPanelStyle}"> |
| 12 | + <local:ExamplePresenter HeaderText="ItemsRepeater"> |
| 13 | + <ScrollViewer Grid.Row="1"> |
| 14 | + <ItemsRepeater ItemsSource="{x:Bind People}"> |
| 15 | + <ItemsRepeater.ItemTemplate> |
| 16 | + <DataTemplate x:DataType="local:Person"> |
| 17 | + <Grid |
| 18 | + ColumnDefinitions="*,*,*" |
| 19 | + RowDefinitions="Auto,Auto"> |
| 20 | + <TextBlock |
| 21 | + Grid.Row="0" |
| 22 | + Grid.Column="0" |
| 23 | + l:Uids.Uid="ItemTemplatesPage_ID" |
| 24 | + FontSize="10" |
| 25 | + Foreground="DimGray" |
| 26 | + PointerEntered="LocalizedItem_PointerEntered" /> |
| 27 | + <TextBlock |
| 28 | + Grid.Row="0" |
| 29 | + Grid.Column="1" |
| 30 | + l:Uids.Uid="ItemTemplatesPage_FirstName" |
| 31 | + FontSize="10" |
| 32 | + Foreground="DimGray" |
| 33 | + PointerEntered="LocalizedItem_PointerEntered" /> |
| 34 | + <TextBlock |
| 35 | + Grid.Row="0" |
| 36 | + Grid.Column="2" |
| 37 | + l:Uids.Uid="ItemTemplatesPage_LastName" |
| 38 | + FontSize="10" |
| 39 | + Foreground="DimGray" |
| 40 | + PointerEntered="LocalizedItem_PointerEntered" /> |
| 41 | + <TextBlock |
| 42 | + Grid.Row="1" |
| 43 | + Grid.Column="0" |
| 44 | + Text="{x:Bind ID}" /> |
| 45 | + <TextBlock |
| 46 | + Grid.Row="1" |
| 47 | + Grid.Column="1" |
| 48 | + Text="{x:Bind FirstName}" /> |
| 49 | + <TextBlock |
| 50 | + Grid.Row="1" |
| 51 | + Grid.Column="2" |
| 52 | + Text="{x:Bind LastName}" /> |
| 53 | + </Grid> |
| 54 | + </DataTemplate> |
| 55 | + </ItemsRepeater.ItemTemplate> |
| 56 | + </ItemsRepeater> |
| 57 | + </ScrollViewer> |
| 58 | + <local:ExamplePresenter.XamlSampleCode> |
| 59 | + <x:String xml:space="preserve"><ItemsRepeater ItemsSource="{x:Bind People}"> |
59 | 60 | <ItemsRepeater.ItemTemplate> |
60 | 61 | <DataTemplate x:DataTipe="local:Person"> |
61 | 62 | <Grid ColumnDefinitions="*,*,*" RowDefinitions="Auto,Auto"> |
|
73 | 74 | </ItemsRepeater.ItemTemplate> |
74 | 75 | </ItemsRepeater> |
75 | 76 | </x:String> |
76 | | - </local:ExamplePresenter.XamlSampleCode> |
77 | | - </local:ExamplePresenter> |
78 | | - </Grid> |
| 77 | + </local:ExamplePresenter.XamlSampleCode> |
| 78 | + </local:ExamplePresenter> |
| 79 | + </StackPanel> |
| 80 | + </ScrollViewer> |
79 | 81 | </Page> |
0 commit comments