RecipeCommandCallRecipeView.xaml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <UserControl x:Class="FurnaceUI.Views.Editors.RecipeCommandCallRecipeView"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:FurnaceUI.Views.Editors" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburn.org"
  7. mc:Ignorable="d"
  8. Height="400" Width="900" FontFamily="Segoe" >
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"/>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="60"/>
  18. </Grid.RowDefinitions>
  19. <DockPanel Grid.Column="0">
  20. <Canvas>
  21. <Button Content="Maintenance Job" Style="{StaticResource PageTitleButton}" Visibility="Hidden" />
  22. <Grid Canvas.Left="100" Canvas.Top="150">
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="*"/>
  25. </Grid.RowDefinitions>
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="*"/>
  28. <ColumnDefinition Width="*"/>
  29. <ColumnDefinition Width="*"/>
  30. </Grid.ColumnDefinitions>
  31. <Border Grid.Row="1" Grid.Column="0" Height="60" Margin="10">
  32. <Button Content="{Binding SelectButtonContent}">
  33. <i:Interaction.Triggers>
  34. <i:EventTrigger EventName="Click">
  35. <cal:ActionMessage MethodName="SelectProcessRecipe">
  36. </cal:ActionMessage>
  37. </i:EventTrigger>
  38. </i:Interaction.Triggers>
  39. </Button>
  40. </Border>
  41. <TextBox Grid.Row="0" Grid.Column="1" Height="60" Width="350" IsEnabled="False" FontSize="20" Text="{Binding SelectedProcessRecipe}" ></TextBox>
  42. </Grid>
  43. </Canvas>
  44. </DockPanel>
  45. <Border Grid.Row="2" Grid.Column="2" HorizontalAlignment="Right">
  46. <Button Content="Close" Style="{StaticResource CommandButton}" Margin="0,0,20,0" Width="130" Height="45">
  47. <i:Interaction.Triggers>
  48. <i:EventTrigger EventName="Click">
  49. <cal:ActionMessage MethodName="ClosedCmd">
  50. <cal:Parameter Value="Close"/>
  51. </cal:ActionMessage>
  52. </i:EventTrigger>
  53. </i:Interaction.Triggers>
  54. </Button>
  55. </Border>
  56. </Grid>
  57. </UserControl>