|
29 | 29 | AutoGenerateColumns="False" |
30 | 30 | ItemsSource="{x:Bind Users}"> |
31 | 31 | <controls:DataGrid.Columns> |
32 | | - <controls:DataGridTextColumn |
33 | | - Binding="{Binding Id}" |
34 | | - Header="ID" /> |
35 | | - <controls:DataGridTextColumn |
36 | | - Binding="{Binding FirstName}" |
37 | | - Header="First Name" /> |
38 | | - <controls:DataGridTextColumn |
39 | | - Binding="{Binding LastName}" |
40 | | - Header="Last Name" /> |
41 | | - <controls:DataGridTextColumn |
42 | | - Binding="{Binding Address}" |
43 | | - Header="Address" /> |
| 32 | + <controls:DataGridTextColumn Binding="{Binding Id}" Header="ID" /> |
| 33 | + <controls:DataGridTextColumn Binding="{Binding FirstName}" Header="First Name" /> |
| 34 | + <controls:DataGridTextColumn Binding="{Binding LastName}" Header="Last Name" /> |
| 35 | + <controls:DataGridTextColumn Binding="{Binding Address}" Header="Address" /> |
44 | 36 | </controls:DataGrid.Columns> |
45 | 37 | </controls:DataGrid> |
46 | 38 |
|
47 | 39 | <StackPanel |
48 | 40 | Grid.Row="1" |
49 | 41 | Grid.Column="1" |
50 | | - Spacing="20"> |
51 | | - <TextBox Text="{x:Bind RedAnnotationsText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> |
52 | | - <TextBox.Header> |
53 | | - <TextBlock |
54 | | - Margin="0" |
55 | | - Padding="0" |
56 | | - Foreground="HotPink" |
57 | | - Text="Red annotations" /> |
58 | | - </TextBox.Header> |
59 | | - </TextBox> |
60 | | - <TextBox Text="{x:Bind GreenAnnotationsText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> |
61 | | - <TextBox.Header> |
62 | | - <TextBlock |
63 | | - Foreground="LightGreen" |
64 | | - Text="Green annotations" /> |
65 | | - </TextBox.Header> |
66 | | - </TextBox> |
67 | | - <TextBox Text="{x:Bind BlueAnnotationsText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> |
68 | | - <TextBox.Header> |
69 | | - <TextBlock |
70 | | - Foreground="SkyBlue" |
71 | | - Text="Blue annotations" /> |
72 | | - </TextBox.Header> |
73 | | - </TextBox> |
74 | | - <toolkit:NumberBoxEx |
75 | | - Header="Annotations height" |
76 | | - Value="{x:Bind AnnotationsHeight, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
| 42 | + MinWidth="200" |
| 43 | + Spacing="8"> |
| 44 | + |
| 45 | + <TextBlock Text="Annotations" /> |
| 46 | + <ItemsControl ItemsSource="{x:Bind AnnotationSettingsList}"> |
| 47 | + <ItemsControl.ItemTemplate> |
| 48 | + <DataTemplate x:DataType="local:AnnotationSettings"> |
| 49 | + <TextBox TextChanged="AnnotationSettingsTextBox_TextChanged"> |
| 50 | + <TextBox.Header> |
| 51 | + <TextBlock Foreground="{x:Bind local:AnnotationsPage.ToBrush(Color)}" Text="{x:Bind Name}" /> |
| 52 | + </TextBox.Header> |
| 53 | + </TextBox> |
| 54 | + </DataTemplate> |
| 55 | + </ItemsControl.ItemTemplate> |
| 56 | + </ItemsControl> |
| 57 | + |
| 58 | + <StackPanel> |
| 59 | + <Grid ColumnDefinitions="*,Auto"> |
| 60 | + <TextBlock Grid.Column="0" Text="Height" /> |
| 61 | + <TextBlock Grid.Column="1" Text="{x:Bind local:AnnotationsPage.ToString(AnnotationHeightSlider.Value, 0), Mode=OneWay}" /> |
| 62 | + </Grid> |
| 63 | + <Slider |
| 64 | + x:Name="AnnotationHeightSlider" |
| 65 | + Maximum="16" |
| 66 | + Minimum="1" |
| 67 | + SnapsTo="StepValues" |
| 68 | + StepFrequency="1" |
| 69 | + ValueChanged="AnnotationHeightSlider_ValueChanged" /> |
| 70 | + </StackPanel> |
| 71 | + |
| 72 | + <StackPanel> |
| 73 | + <Grid ColumnDefinitions="*,Auto"> |
| 74 | + <TextBlock Grid.Column="0" Text="Opacity" /> |
| 75 | + <TextBlock Grid.Column="1" Text="{x:Bind local:AnnotationsPage.ToString(AnnotationOpacitySlider.Value, 1), Mode=OneWay}" /> |
| 76 | + </Grid> |
| 77 | + <Slider |
| 78 | + x:Name="AnnotationOpacitySlider" |
| 79 | + Maximum="1" |
| 80 | + Minimum="0.1" |
| 81 | + SnapsTo="StepValues" |
| 82 | + StepFrequency="0.1" |
| 83 | + ValueChanged="AnnotationOpacitySlider_ValueChanged" /> |
| 84 | + </StackPanel> |
| 85 | + |
77 | 86 | </StackPanel> |
78 | 87 | </Grid> |
79 | 88 |
|
|
0 commit comments