Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed DropDown -> ComboBox in samples.
- Loading branch information
Showing
8 changed files
with
78 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters