2023-01-04 17:24:39 +08:00
|
|
|
<UserControl
|
|
|
|
x:Class="Semi.Avalonia.Demo.Pages.ComboBoxDemo"
|
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
d:DesignHeight="450"
|
|
|
|
d:DesignWidth="800"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<StackPanel Margin="20" Spacing="20">
|
|
|
|
<ComboBox Width="150">
|
|
|
|
<TextBlock>AAA</TextBlock>
|
|
|
|
<TextBlock>BBB</TextBlock>
|
|
|
|
<TextBlock>CCC</TextBlock>
|
|
|
|
</ComboBox>
|
2023-01-04 17:29:50 +08:00
|
|
|
<ComboBox Width="150" PlaceholderText="Please Select">
|
|
|
|
<TextBlock>AAA</TextBlock>
|
|
|
|
<TextBlock>BBB</TextBlock>
|
|
|
|
<TextBlock>CCC</TextBlock>
|
|
|
|
</ComboBox>
|
|
|
|
<ComboBox Width="150" IsEnabled="False">
|
|
|
|
<TextBlock>AAA</TextBlock>
|
|
|
|
<TextBlock>BBB</TextBlock>
|
|
|
|
<TextBlock>CCC</TextBlock>
|
|
|
|
</ComboBox>
|
2023-01-04 17:24:39 +08:00
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|