RecipeLoad.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. <UserControl x:Class="CyberX8_Themes.UserControls.RecipeLoad"
  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:converters="clr-namespace:CyberX8_Themes.Converters"
  7. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  8. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  9. mc:Ignorable="d" x:Name="recipeLoad"
  10. d:DesignHeight="350" d:DesignWidth="450">
  11. <UserControl.Resources>
  12. <converters:RecipeIconConverter x:Key="recipeIconConverter"/>
  13. </UserControl.Resources>
  14. <GroupBox
  15. Header="{Binding ElementName=recipeLoad,Path=HeadName}"
  16. BorderBrush="DarkGray">
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="10"></RowDefinition>
  20. <RowDefinition Height="50"></RowDefinition>
  21. <RowDefinition/>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="300"></ColumnDefinition>
  25. <ColumnDefinition Width="120"></ColumnDefinition>
  26. </Grid.ColumnDefinitions>
  27. <Button IsEnabled="{Binding ElementName=recipeLoad,Path=LoadEnabled}" Grid.Row="1" Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="Load" Height="35" Click="LoadRecipe_Click" Margin="0,8,-8,8"/>
  28. <local:RecipeLoadControl Grid.Row="1" Grid.RowSpan="2" RecipeType="{Binding ElementName=recipeLoad,Path=RecipeType}" SelectedRecipeNode="{Binding ElementName=recipeLoad,Path=SelectedRecipeNode,Mode=TwoWay}"></local:RecipeLoadControl>
  29. </Grid>
  30. </GroupBox>
  31. </UserControl>