| 12345678910111213141516171819202122232425262728293031323334353637 |
- <Window x:Class="GameEditor.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="MainWindow" Height="800" Width="1280">
-
- <Window.CommandBindings>
- <CommandBinding Command="ApplicationCommands.New" CanExecute="NewCanExecute" Executed="OnNewNode" />
- <CommandBinding Command="ApplicationCommands.Delete" CanExecute="DeleteCanExecute" Executed="OnDeleteNode" />
- </Window.CommandBindings>
-
- <Window.Resources>
- <ContextMenu x:Key="NodeMenu" Name="behaviorNodeMenu">
- <MenuItem Header="New" Command="ApplicationCommands.New" />
- <MenuItem Header="Delete" Command="ApplicationCommands.Delete" />
- </ContextMenu>
- </Window.Resources>
-
- <StackPanel>
- <Menu Height="23" >
- <MenuItem Header="_File">
- <MenuItem Header="New" Command="ApplicationCommands.New" />
- <MenuItem Header="Delete" Command="ApplicationCommands.Delete" />
- </MenuItem>
- </Menu>
- <Grid Height="738" Width="Auto">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="132*" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="1092*" />
- </Grid.ColumnDefinitions>
- <GridSplitter Grid.Column="1" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Stretch" Width="5" />
- <TreeView HorizontalAlignment="Stretch" Margin="0" Name="behaviorTreeView"
- VerticalAlignment="Stretch" MouseRightButtonUp="behaviorTreeView_MouseRightButtonUp"
- Padding="0" BorderThickness="0" ContextMenu="{StaticResource NodeMenu}"/>
- </Grid>
- </StackPanel>
- </Window>
|