RecipeEditorView.xaml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <UserControl x:Class="Aitex.Triton160.UI.Views.RecipeEditorView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:core="clr-namespace:Aitex.UI.RecipeEditor;assembly=RecipeEditorControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. mc:Ignorable="d"
  8. Height="800" Width="1920" >
  9. <UserControl.Resources>
  10. <Style TargetType="Button" x:Key="MiddleButton" BasedOn="{StaticResource {x:Type Button}}" />
  11. <Style TargetType="Button"></Style>
  12. </UserControl.Resources>
  13. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="200" />
  16. <ColumnDefinition Width="6" />
  17. <ColumnDefinition Width="800*" />
  18. </Grid.ColumnDefinitions>
  19. <Grid x:Name="gridSelect" Grid.Column="0">
  20. <Label Height="32.5" Name="label1" VerticalAlignment="Top" Content="{DynamicResource GlobalLableRecipeList}" FontSize="15" Margin="4,3,0,0" HorizontalAlignment="Left" HorizontalContentAlignment="Center" FontWeight="Normal"></Label>
  21. <TreeView Name="treeViewRcpList" Margin="0,30,0,6" SelectedItemChanged="treeViewRcpList_SelectedItemChanged" MouseRightButtonDown="treeViewRcpList_MouseRightButtonDown" MouseMove="TreeViewRcpList_MouseMove"
  22. FontSize="14" BorderThickness="1" BorderBrush="Black" Canvas.Top="140" Canvas.Left="4" Opacity="1" Background="Transparent" PreviewMouseDown="TreeViewRcpList_MouseDown" AllowDrop="True"
  23. DragEnter="TreeViewRcpList_DragEnter" DragOver="TreeViewRcpList_DragEnter" DragLeave="TreeViewRcpList_DragEnter" Drop="TreeViewRcpList_Drop" >
  24. <TreeView.ItemContainerStyle>
  25. <Style TargetType="{x:Type TreeViewItem}">
  26. <EventSetter Event="TreeViewItem.PreviewMouseRightButtonDown" Handler="TreeViewItem_MouseRightButtonDown"/>
  27. </Style>
  28. </TreeView.ItemContainerStyle>
  29. </TreeView>
  30. </Grid>
  31. <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="Transparent"/>
  32. <Grid x:Name="gridDisplay" Grid.Column="2">
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="40" />
  35. <RowDefinition Height="706*" />
  36. </Grid.RowDefinitions>
  37. <StackPanel Grid.Row="0" Orientation="Horizontal">
  38. <Label Content="{DynamicResource GlobalLableCurrentRecipe}" FontSize="15" Height="31" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="5,3,0,0" Name="label2" VerticalAlignment="Top" FontWeight="Normal" />
  39. <Label Height="31" Margin="22,3,0,0" Name="labelSelectedRecipe" VerticalAlignment="Top" Content="{Binding Path=CurrentRecipeName}" FontSize="15" HorizontalContentAlignment="Left" HorizontalAlignment="Left" FontWeight="Normal" />
  40. <Button Style="{StaticResource MiddleButton}" Height="25" Click="buttonCodeReload_Click" Name="buttonReloadTableRecipe" VerticalAlignment="Top" FontSize="16" Width="80" VerticalContentAlignment="Center" Margin="50,4,0,0" HorizontalAlignment="Right" Content="{DynamicResource GlobalLableButtonReload}" FontWeight="Normal"></Button>
  41. <Button Style="{StaticResource MiddleButton}" Height="25" Name="buttonSaveTableRecipe" FontSize="16" Width="80" Click="buttonCodeSave_Click" VerticalContentAlignment="Center" Margin="30,4,22,0" HorizontalAlignment="Right" VerticalAlignment="Top" Content="{DynamicResource GlobalLableButtonSave}" FontWeight="Normal"></Button>
  42. </StackPanel>
  43. <Grid Grid.Row="1">
  44. <core:RecipeEditorControl x:Name="tableRecipeGrid" FontSize="12" BorderThickness="1" BorderBrush="Black" Margin="0,0,0,6" />
  45. </Grid>
  46. </Grid>
  47. </Grid>
  48. </UserControl>