Skip to content

Instantly share code, notes, and snippets.

@erikdietrich
Created November 14, 2012 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikdietrich/4070727 to your computer and use it in GitHub Desktop.
Save erikdietrich/4070727 to your computer and use it in GitHub Desktop.
XAML for the window with a combo box.
<Window x:Class="WpfScratchpad.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<StackPanel>
<ComboBox Width="150" ItemsSource="{Binding Options}" DropDownOpened="HandleDropDownOpened" SelectedIndex="0" IsEditable="False" />
<Button Content="Exit" Click="HandleButtonClick" HorizontalAlignment="Left" Margin="334,256,0,0" VerticalAlignment="Top" Width="75"/>
</StackPanel>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment