|
1 |
| -<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> |
| 1 | +<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> |
2 | 2 | <UserControl x:Class="CommunityToolkit.App.Shared.Renderers.GeneratedSampleOptionsRenderer"
|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
17 | 17 | <local:GeneratedSampleOptionTemplateSelector.BoolOptionTemplate>
|
18 | 18 | <DataTemplate x:DataType="metadata:ToolkitSampleBoolOptionMetadataViewModel">
|
19 | 19 | <ToggleSwitch Header="{x:Bind Title, Mode=OneWay}"
|
20 |
| - IsOn="{x:Bind BoolValue, Mode=TwoWay}" /> |
| 20 | + IsOn="{x:Bind BoolValue, Mode=TwoWay}" /> |
21 | 21 | </DataTemplate>
|
22 | 22 | </local:GeneratedSampleOptionTemplateSelector.BoolOptionTemplate>
|
23 | 23 | <local:GeneratedSampleOptionTemplateSelector.MultiChoiceOptionTemplate>
|
24 | 24 | <DataTemplate x:DataType="metadata:ToolkitSampleMultiChoiceOptionMetadataViewModel">
|
25 | 25 | <ComboBox Header="{x:Bind Title, Mode=OneWay}"
|
26 |
| - ItemsSource="{x:Bind Options}" |
27 |
| - SelectedIndex="0" |
28 |
| - SelectedItem="{x:Bind Value, Mode=TwoWay}" /> |
| 26 | + ItemsSource="{x:Bind Options}" |
| 27 | + SelectedIndex="0" |
| 28 | + SelectedItem="{x:Bind Value, Mode=TwoWay}" /> |
29 | 29 | </DataTemplate>
|
30 | 30 | </local:GeneratedSampleOptionTemplateSelector.MultiChoiceOptionTemplate>
|
31 | 31 | <local:GeneratedSampleOptionTemplateSelector.SliderOptionTemplate>
|
32 | 32 | <DataTemplate x:DataType="metadata:ToolkitSampleNumericOptionMetadataViewModel">
|
33 | 33 | <Slider Header="{x:Bind Title, Mode=OneWay}"
|
34 |
| - Maximum="{x:Bind Max, Mode=OneWay}" |
35 |
| - Minimum="{x:Bind Min, Mode=OneWay}" |
36 |
| - StepFrequency="{x:Bind Step, Mode=OneWay}" |
37 |
| - Value="{x:Bind Initial, Mode=TwoWay}" /> |
| 34 | + Maximum="{x:Bind Max, Mode=OneWay}" |
| 35 | + Minimum="{x:Bind Min, Mode=OneWay}" |
| 36 | + StepFrequency="{x:Bind Step, Mode=OneWay}" |
| 37 | + Value="{x:Bind Initial, Mode=TwoWay}" /> |
38 | 38 | </DataTemplate>
|
39 | 39 | </local:GeneratedSampleOptionTemplateSelector.SliderOptionTemplate>
|
40 | 40 | <local:GeneratedSampleOptionTemplateSelector.NumberBoxOptionTemplate>
|
41 | 41 | <DataTemplate x:DataType="metadata:ToolkitSampleNumericOptionMetadataViewModel">
|
42 | 42 | <muxc:NumberBox Header="{x:Bind Title, Mode=OneWay}"
|
43 |
| - Maximum="{x:Bind Max, Mode=OneWay}" |
44 |
| - Minimum="{x:Bind Min, Mode=OneWay}" |
45 |
| - SmallChange="{x:Bind Step, Mode=OneWay}" |
46 |
| - SpinButtonPlacementMode="Compact" |
47 |
| - Value="{x:Bind Initial, Mode=TwoWay}" /> |
| 43 | + Maximum="{x:Bind Max, Mode=OneWay}" |
| 44 | + Minimum="{x:Bind Min, Mode=OneWay}" |
| 45 | + SmallChange="{x:Bind Step, Mode=OneWay}" |
| 46 | + SpinButtonPlacementMode="Compact" |
| 47 | + Value="{x:Bind Initial, Mode=TwoWay}" /> |
48 | 48 | </DataTemplate>
|
49 | 49 | </local:GeneratedSampleOptionTemplateSelector.NumberBoxOptionTemplate>
|
50 | 50 | <local:GeneratedSampleOptionTemplateSelector.TextOptionTemplate>
|
51 | 51 | <DataTemplate x:DataType="metadata:ToolkitSampleTextOptionMetadataViewModel">
|
52 | 52 | <TextBox HorizontalAlignment="Stretch"
|
53 |
| - Header="{x:Bind Title, Mode=OneWay}" |
54 |
| - Text="{x:Bind PlaceholderText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
| 53 | + Header="{x:Bind Title, Mode=OneWay}" |
| 54 | + Text="{x:Bind PlaceholderText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
55 | 55 | </DataTemplate>
|
56 | 56 | </local:GeneratedSampleOptionTemplateSelector.TextOptionTemplate>
|
57 | 57 | </local:GeneratedSampleOptionTemplateSelector>
|
58 | 58 | </UserControl.Resources>
|
59 | 59 |
|
60 | 60 | <ItemsControl ItemTemplateSelector="{StaticResource GeneratedSampleOptionTemplateSelector}"
|
61 |
| - ItemsSource="{x:Bind SampleOptions, Mode=OneWay}"> |
| 61 | + ItemsSource="{x:Bind SampleOptions, Mode=OneWay}"> |
62 | 62 | <ItemsControl.ItemsPanel>
|
63 | 63 | <ItemsPanelTemplate>
|
64 | 64 | <StackPanel Orientation="Vertical"
|
65 |
| - Spacing="12" /> |
| 65 | + Spacing="12" /> |
66 | 66 | </ItemsPanelTemplate>
|
67 | 67 | </ItemsControl.ItemsPanel>
|
68 | 68 | </ItemsControl>
|
|
0 commit comments