8 changed files with 78 additions and 79 deletions
@ -0,0 +1,41 @@ |
|||
<UserControl xmlns="https://github.com/avaloniaui" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
x:Class="ControlCatalog.Pages.ComboBoxPage"> |
|||
<StackPanel Orientation="Vertical" Spacing="4"> |
|||
<TextBlock Classes="h1">ComboBox</TextBlock> |
|||
<TextBlock Classes="h2">A drop-down list.</TextBlock> |
|||
|
|||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 16 0 0" Spacing="8"> |
|||
<ComboBox SelectedIndex="0"> |
|||
<ComboBoxItem>Inline Items</ComboBoxItem> |
|||
<ComboBoxItem>Inline Item 2</ComboBoxItem> |
|||
<ComboBoxItem>Inline Item 3</ComboBoxItem> |
|||
<ComboBoxItem>Inline Item 4</ComboBoxItem> |
|||
</ComboBox> |
|||
|
|||
<ComboBox SelectedIndex="0"> |
|||
<ComboBoxItem> |
|||
<Panel> |
|||
<Rectangle Fill="{DynamicResource ThemeAccentBrush}"/> |
|||
<TextBlock Margin="8">Control Items</TextBlock> |
|||
</Panel> |
|||
</ComboBoxItem> |
|||
<ComboBoxItem> |
|||
<Ellipse Width="50" Height="50" Fill="Yellow"/> |
|||
</ComboBoxItem> |
|||
<ComboBoxItem> |
|||
<TextBox Text="TextBox"/> |
|||
</ComboBoxItem> |
|||
</ComboBox> |
|||
|
|||
<ComboBox x:Name="fontComboBox" SelectedIndex="0"> |
|||
<ComboBox.ItemTemplate> |
|||
<DataTemplate> |
|||
<TextBlock Text="{Binding Name}" FontFamily="{Binding}" /> |
|||
</DataTemplate> |
|||
</ComboBox.ItemTemplate> |
|||
</ComboBox> |
|||
</StackPanel> |
|||
|
|||
</StackPanel> |
|||
</UserControl> |
|||
@ -1,42 +0,0 @@ |
|||
<UserControl xmlns="https://github.com/avaloniaui" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
x:Class="ControlCatalog.Pages.DropDownPage"> |
|||
<StackPanel Orientation="Vertical" Spacing="4"> |
|||
<TextBlock Classes="h1">DropDown</TextBlock> |
|||
<TextBlock Classes="h2">A drop-down list.</TextBlock> |
|||
|
|||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 16 0 0" Spacing="8"> |
|||
<DropDown SelectedIndex="0"> |
|||
<DropDownItem>Inline Items</DropDownItem> |
|||
<DropDownItem>Inline Item 2</DropDownItem> |
|||
<DropDownItem>Inline Item 3</DropDownItem> |
|||
<DropDownItem>Inline Item 4</DropDownItem> |
|||
</DropDown> |
|||
|
|||
<DropDown SelectedIndex="0"> |
|||
<DropDownItem> |
|||
<Panel> |
|||
<Rectangle Fill="{DynamicResource ThemeAccentBrush}"/> |
|||
<TextBlock Margin="8">Control Items</TextBlock> |
|||
</Panel> |
|||
</DropDownItem> |
|||
<DropDownItem> |
|||
<Ellipse Width="50" Height="50" Fill="Yellow"/> |
|||
</DropDownItem> |
|||
<DropDownItem> |
|||
<TextBox Text="TextBox"/> |
|||
</DropDownItem> |
|||
</DropDown> |
|||
|
|||
|
|||
<DropDown x:Name="fontDropDown" SelectedIndex="0"> |
|||
<DropDown.ItemTemplate> |
|||
<DataTemplate> |
|||
<TextBlock Text="{Binding Name}" FontFamily="{Binding}" /> |
|||
</DataTemplate> |
|||
</DropDown.ItemTemplate> |
|||
</DropDown> |
|||
</StackPanel> |
|||
|
|||
</StackPanel> |
|||
</UserControl> |
|||
Loading…
Reference in new issue