Last active
December 23, 2015 13:59
-
-
Save ChadSki/6645661 to your computer and use it in GitHub Desktop.
WPF Snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <DockPanel Grid.Row="1"> | |
| <Menu DockPanel.Dock="Top" | |
| IsMainMenu="True" | |
| SnapsToDevicePixels="True" | |
| Margin="2,0,0,0"> | |
| <MenuItem Header="_File" > | |
| <MenuItem Header="_Open Map" Click="Open_Click" /> | |
| <MenuItem Header="_Open From Memory" Click="OpenFromMemory_Click" /> | |
| <MenuItem Header="_Exit" Click="Exit_Click"/> | |
| </MenuItem> | |
| <MenuItem Header="_Help" > | |
| <MenuItem Header="_About" Click="About_Click" /> | |
| </MenuItem> | |
| </Menu> | |
| <StatusBar Height="23" DockPanel.Dock="Bottom" Background="{Binding SelectedItem.Tag, ElementName=cmbAlarm}"> | |
| <StatusBarItem> | |
| <StackPanel Orientation="Horizontal"> | |
| <TextBlock Foreground="{StaticResource Foreground}">Status:</TextBlock> | |
| <TextBlock Margin="5,0,0,0" Foreground="{StaticResource Foreground}" Text="{Binding SelectedItem.Content, ElementName=cmbAlarm}"/> | |
| </StackPanel> | |
| </StatusBarItem> | |
| </StatusBar> | |
| <Grid Name="ContentArea" Margin="6"> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="*" /> | |
| <RowDefinition Height="Auto" /> | |
| </Grid.RowDefinitions> | |
| <WindowsFormsHost Grid.Row="0" > | |
| <lethargy:LethargyControl /> | |
| </WindowsFormsHost> | |
| <ComboBox Name="cmbAlarm" FontSize="16" | |
| Grid.Row="1" | |
| Height="30" Width="100" | |
| HorizontalAlignment="Left" | |
| SelectedIndex="0" > | |
| <ComboBoxItem Tag="{StaticResource BackgroundSelected}"> | |
| Blue | |
| </ComboBoxItem> | |
| <ComboBoxItem> | |
| <ComboBoxItem.Tag> | |
| <SolidColorBrush Color="OrangeRed"/> | |
| </ComboBoxItem.Tag> | |
| Orange | |
| </ComboBoxItem> | |
| </ComboBox> | |
| </Grid> | |
| </DockPanel> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment