XAML code to work with combobox

Abhisek
Posted by Abhisek under WPF category on | Views : 2259
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="284" Width="284">
<Grid>
<ComboBox Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" Name="comboBox1" VerticalAlignment="Top" Width="120">
<ComboBoxItem>India</ComboBoxItem>
<ComboBoxItem>SriLanka</ComboBoxItem>
<ComboBoxItem>Pakistan</ComboBoxItem>
<ComboBoxItem>Nepal</ComboBoxItem>
<ComboBoxItem>Bhutan</ComboBoxItem>
<ComboBoxItem>Bangladesh</ComboBoxItem>
</ComboBox>
</Grid>
</Window>

Comments or Responses

Login to post response