|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:hc="https://handyorg.github.io/handycontrol" |
| 4 | + xmlns:vm="clr-namespace:HandyControlDemo.ViewModel" |
| 5 | + x:Class="HandyControlDemo.UserControl.ComboBoxDemo" |
| 6 | + DataContext="{Binding InputElementDemo, Source={x:Static vm:ViewModelLocator.Instance}}"> |
| 7 | + <ScrollViewer> |
| 8 | + <hc:UniformSpacingPanel Spacing="32" |
| 9 | + Margin="32" |
| 10 | + ChildWrapping="Wrap"> |
| 11 | + <StackPanel> |
| 12 | + <ComboBox ItemsSource="{Binding DataList}" /> |
| 13 | + <ComboBox ItemsSource="{Binding DataList}" |
| 14 | + Margin="0,16,0,0" |
| 15 | + IsEnabled="False" /> |
| 16 | + |
| 17 | + <ComboBox hc:TitleElement.Title="This is the title" |
| 18 | + Theme="{StaticResource ComboBoxExtend}" |
| 19 | + Margin="0,32,0,0" |
| 20 | + ItemsSource="{Binding DataList}" /> |
| 21 | + <ComboBox hc:TitleElement.Title="This is the title" |
| 22 | + hc:InfoElement.ShowClearButton="True" |
| 23 | + Theme="{StaticResource ComboBoxExtend}" |
| 24 | + Margin="0,32,0,0" |
| 25 | + ItemsSource="{Binding DataList}" /> |
| 26 | + <ComboBox hc:TitleElement.Title="This is the title" |
| 27 | + Theme="{StaticResource ComboBoxExtend}" |
| 28 | + Margin="0,16,0,0" |
| 29 | + ItemsSource="{Binding DataList}" |
| 30 | + IsEnabled="False" /> |
| 31 | + <ComboBox PlaceholderText="Please enter content" |
| 32 | + ItemsSource="{Binding DataList}" |
| 33 | + hc:TitleElement.Title="This item must be filled in" |
| 34 | + Theme="{StaticResource ComboBoxExtend}" |
| 35 | + hc:InfoElement.Necessary="True" |
| 36 | + Margin="0,16,0,0" /> |
| 37 | + <ComboBox Width="380" |
| 38 | + hc:TitleElement.TitleWidth="120" |
| 39 | + hc:TitleElement.TitlePlacement="Left" |
| 40 | + hc:TitleElement.Title="The title is on the left" |
| 41 | + Theme="{StaticResource ComboBoxExtend}" |
| 42 | + Margin="0,32,0,0" |
| 43 | + ItemsSource="{Binding DataList}" /> |
| 44 | + <ComboBox Width="380" |
| 45 | + ItemsSource="{Binding DataList}" |
| 46 | + hc:TitleElement.TitleWidth="120" |
| 47 | + PlaceholderText="Please enter content" |
| 48 | + hc:TitleElement.TitlePlacement="Left" |
| 49 | + hc:TitleElement.Title="The title is on the left" |
| 50 | + hc:InfoElement.Necessary="True" |
| 51 | + Theme="{StaticResource ComboBoxExtend}" |
| 52 | + Margin="0,16,0,0" /> |
| 53 | + </StackPanel> |
| 54 | + <StackPanel> |
| 55 | + <ComboBox ItemsSource="{Binding DataList}" |
| 56 | + Theme="{StaticResource ComboBox.Small}" /> |
| 57 | + <ComboBox ItemsSource="{Binding DataList}" |
| 58 | + Margin="0,16,0,0" |
| 59 | + IsEnabled="False" |
| 60 | + Theme="{StaticResource ComboBox.Small}" /> |
| 61 | + |
| 62 | + <ComboBox hc:TitleElement.Title="This is the title" |
| 63 | + Theme="{StaticResource ComboBoxExtend.Small}" |
| 64 | + Margin="0,32,0,0" |
| 65 | + ItemsSource="{Binding DataList}" /> |
| 66 | + <ComboBox hc:TitleElement.Title="This is the title" |
| 67 | + hc:InfoElement.ShowClearButton="True" |
| 68 | + Theme="{StaticResource ComboBoxExtend.Small}" |
| 69 | + Margin="0,32,0,0" |
| 70 | + ItemsSource="{Binding DataList}" /> |
| 71 | + <ComboBox hc:TitleElement.Title="This is the title" |
| 72 | + Theme="{StaticResource ComboBoxExtend.Small}" |
| 73 | + Margin="0,16,0,0" |
| 74 | + ItemsSource="{Binding DataList}" |
| 75 | + IsEnabled="False" /> |
| 76 | + <ComboBox PlaceholderText="Please enter content" |
| 77 | + ItemsSource="{Binding DataList}" |
| 78 | + hc:TitleElement.Title="This item must be filled in" |
| 79 | + Theme="{StaticResource ComboBoxExtend.Small}" |
| 80 | + hc:InfoElement.Necessary="True" |
| 81 | + Margin="0,16,0,0" /> |
| 82 | + <ComboBox Width="380" |
| 83 | + hc:TitleElement.TitleWidth="120" |
| 84 | + hc:TitleElement.TitlePlacement="Left" |
| 85 | + hc:TitleElement.Title="The title is on the left" |
| 86 | + Theme="{StaticResource ComboBoxExtend.Small}" |
| 87 | + Margin="0,32,0,0" |
| 88 | + ItemsSource="{Binding DataList}" /> |
| 89 | + <ComboBox Width="380" |
| 90 | + ItemsSource="{Binding DataList}" |
| 91 | + hc:TitleElement.TitleWidth="120" |
| 92 | + PlaceholderText="Please enter content" |
| 93 | + hc:TitleElement.TitlePlacement="Left" |
| 94 | + hc:TitleElement.Title="The title is on the left" |
| 95 | + hc:InfoElement.Necessary="True" |
| 96 | + Theme="{StaticResource ComboBoxExtend.Small}" |
| 97 | + Margin="0,16,0,0" /> |
| 98 | + </StackPanel> |
| 99 | + </hc:UniformSpacingPanel> |
| 100 | + </ScrollViewer> |
| 101 | +</UserControl> |
0 commit comments