Skip to content

Instantly share code, notes, and snippets.

@atzimler
Created May 31, 2017 09:51
Show Gist options
  • Select an option

  • Save atzimler/fd07486c16485cf8f765fbe54bd3b79c to your computer and use it in GitHub Desktop.

Select an option

Save atzimler/fd07486c16485cf8f765fbe54bd3b79c to your computer and use it in GitHub Desktop.
<Window x:Class="Z12_Commands.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:Z12_Commands"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<DockPanel LastChildFill="True">
<Menu IsMainMenu="True" DockPanel.Dock="Top">
<MenuItem Header="XXX" Command="{x:Static local:Commands.TestCommand}" />
</Menu>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Row="1" Grid.Column="1" Click="Button_Click">Flip CanExecute</Button>
</Grid>
</DockPanel>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment