Skip to content

Instantly share code, notes, and snippets.

@julesx
Created September 17, 2013 15:51
Show Gist options
  • Save julesx/6596268 to your computer and use it in GitHub Desktop.
Save julesx/6596268 to your computer and use it in GitHub Desktop.
<ContextMenu Name="MainDropDownMenu" ItemsSource={Binding ServerList}>
<ContextMenu.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding ServerName}" />
</DataTemplate>
</ContextMenu.ItemTemplate>
<MenuItem Header="Settings" Click="OpenSettings">
<MenuItem.Icon>
<TextBlock Text="Hardcoded Value" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment