You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
<Window x:Class="DependencyPropertySample.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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"
|
|
xmlns:local="clr-namespace:DependencyPropertySample"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="300" Width="400">
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ComboBox x:Name="cboMain" Grid.Column="0" VerticalAlignment="Center" Margin="10"
|
|
SelectionChanged="cboMain_SelectionChanged">
|
|
<ComboBoxItem Content="Apple"/>
|
|
<ComboBoxItem Content="Watermelon"/>
|
|
<ComboBoxItem Content="Tangerine"/>
|
|
<ComboBoxItem Content="Orange"/>
|
|
<ComboBoxItem Content="Strawberry"/>
|
|
</ComboBox>
|
|
|
|
<TextBlock x:Name="txtFruit" Grid.Column="1" VerticalAlignment="Center" Margin="10" TextAlignment="Center" Text="What Fruit?"/>
|
|
|
|
</Grid>
|
|
</Window>
|
|
|