| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 | <UserControl x:Class="Venus_MainPages.Views.RecipeView"             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"              mc:Ignorable="d"              xmlns:prism="http://prismlibrary.com/"              prism:ViewModelLocator.AutoWireViewModel="True"             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"             xmlns:customeControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"             d:DesignHeight="450" d:DesignWidth="1200" Name="recipeView">    <UserControl.Resources>        <Style TargetType="{x:Type CheckBox}">            <Setter Property="Background" Value="White" />            <Setter Property="BorderBrush" Value="#FF262E34"/>            <Setter Property="Foreground" Value="#FF262E34"/>            <Setter Property="BorderThickness" Value="1"/>            <Setter Property="Template">                <Setter.Value>                    <ControlTemplate TargetType="{x:Type CheckBox}">                        <Border BorderThickness="0.8" BorderBrush="Gray" Background="White">                            <StackPanel Orientation="Horizontal" Name="mainStackPanel" HorizontalAlignment="Center" Background="White" VerticalAlignment="Center">                                <Border  BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" Width="15" Height="15"  HorizontalAlignment="Center">                                    <!--                                   your color here -->                                    <Path Width="15" Height="10"  Stroke="HotPink" StrokeThickness="3" Name="eliCheck" Data="M 2,4 C 2,4 3,5 5,13 C 5,13 5,3 12,0" Visibility="Collapsed"/>                                </Border>                                <TextBlock Margin="5,0,0,0"  VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}"></TextBlock>                            </StackPanel>                        </Border>                                               <ControlTemplate.Triggers>                            <Trigger Property="IsMouseOver" Value="True">                                <Setter Property="Background" Value="LightGray" />                            </Trigger>                            <Trigger Property="IsPressed" Value="True">                                <Setter Property="Background" Value="#FF9C9E9F" />                            </Trigger>                            <Trigger Property="IsEnabled" Value="False">                                <Setter Property="Background" Value="LightGray" />                                <Setter Property="Foreground" Value="Gray" />                                <Setter Property="BorderBrush" Value="Gray"/>                                <Setter TargetName="eliCheck" Property="Opacity" Value="0.5" />                                <Setter TargetName="mainStackPanel" Property="Background" Value="#DDEBF9"/>                            </Trigger>                            <Trigger Property="IsChecked" Value="True">                                <Setter TargetName="eliCheck" Property="Visibility" Value="Visible"></Setter>                            </Trigger>                        </ControlTemplate.Triggers>                    </ControlTemplate>                </Setter.Value>            </Setter>        </Style>    </UserControl.Resources>    <i:Interaction.Triggers>        <i:EventTrigger EventName="Loaded">            <i:InvokeCommandAction Command="{Binding LoadedCommand}" CommandParameter="{Binding ElementName=recipeView}"/>        </i:EventTrigger>    </i:Interaction.Triggers>    <Grid>        <Grid.ColumnDefinitions>            <ColumnDefinition Width="Auto" />            <ColumnDefinition Width="6" />            <ColumnDefinition Width="800*" />        </Grid.ColumnDefinitions>        <Grid Grid.Column="0">            <Grid.RowDefinitions>                <RowDefinition Height="40"/>                <RowDefinition Height="*"/>            </Grid.RowDefinitions>            <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">                <TextBlock Text="Recipe List" Margin="5" FontFamily="Arial" FontSize="20" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center"  VerticalAlignment="Center"/>            </Border>            <Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">                <TreeView Name="treeViewRcpList" Margin="0,6"                      FontSize="18" BorderThickness="1" BorderBrush="Black" Canvas.Top="140" Canvas.Left="4" Opacity="1" Background="LightSteelBlue"  AllowDrop="True"                       >                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="MouseRightButtonDown">                            <i:InvokeCommandAction Command="{Binding MouseRightButtonDownCommand}" CommandParameter="{Binding ElementName=treeViewRcpList}"/>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </TreeView>            </Border>        </Grid>        <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="Transparent" />        <Grid x:Name="gridDisplay" Grid.Column="2">            <Grid.RowDefinitions>                <RowDefinition Height="40" />                <RowDefinition Height="706*"/>            </Grid.RowDefinitions>            <StackPanel Grid.Row="0" Orientation="Horizontal">                <!--<customeControls:PathButton PathData="{StaticResource Icon_Save}"    Content="Save"           DefaultFillBrush="White"     Command="{Binding SaveRecipeCommand}"    Margin="30,4,22,0"        FontSize="16" Height="30"   Width="130"   VerticalContentAlignment="Center"  HorizontalAlignment="Right" VerticalAlignment="Top"/>-->                <customeControls:SplitButton  Content="Save"    Style="{StaticResource SplitButtonStyle}" Command="{Binding SaveRecipeCommand}" Cursor="Hand"  Foreground="White" Margin="30,0,22,0"        FontSize="16" Height="30"   Width="130" Background="#009ad6">                    <MenuItem Header="Save To PMA" Cursor="Hand"   Command="{Binding SaveToRecipeCommand}" CommandParameter="0" Visibility="{Binding PMAIsInstalled,Converter={StaticResource bool2VisibilityConverter}}"/>                    <MenuItem Header="Save To PMB" Cursor="Hand"   Command="{Binding SaveToRecipeCommand}" CommandParameter="1" Visibility="{Binding PMBIsInstalled,Converter={StaticResource bool2VisibilityConverter}}"/>                    <MenuItem Header="Save To PMC" Cursor="Hand"   Command="{Binding SaveToRecipeCommand}" CommandParameter="2" Visibility="{Binding PMCIsInstalled,Converter={StaticResource bool2VisibilityConverter}}"/>                    <MenuItem Header="Save To PMD" Cursor="Hand"   Command="{Binding SaveToRecipeCommand}" CommandParameter="3" Visibility="{Binding PMDIsInstalled,Converter={StaticResource bool2VisibilityConverter}}"/>                    <MenuItem Header="Save To All" Cursor="Hand"   Command="{Binding SaveToRecipeCommand}" CommandParameter="4"/>                </customeControls:SplitButton>                                <customeControls:PathButton PathData="{StaticResource Icon_Add}"       Content="Add Step"       DefaultFillBrush="White"     Command="{Binding AddStepCommand}"       Margin="30,4,22,0"        FontSize="16" Height="30"   Width="130"   VerticalContentAlignment="Center"  HorizontalAlignment="Right" VerticalAlignment="Top"/>                <customeControls:PathButton PathData="{StaticResource Icon_Delete}"    Content="Del Step"       DefaultFillBrush="White"     Command="{Binding DeleteStepCommand}"    Margin="30,4,22,0"        FontSize="16" Height="30"   Width="130"   VerticalContentAlignment="Center"  HorizontalAlignment="Right" VerticalAlignment="Top"/>                <customeControls:PathButton PathData="{StaticResource Icon_Refresh}"   Content="Refresh"        DefaultFillBrush="White"     Command="{Binding RefreshCommand}"       Margin="30,4,22,0"        FontSize="16" Height="30"   Width="130"   VerticalContentAlignment="Center"  HorizontalAlignment="Right" VerticalAlignment="Top"/>                <!--<customeControls:PathButton PathData="{StaticResource Icon_Tolerance}" Content="Tolerance"      DefaultFillBrush="White"     Command="{Binding ToleranceCommand}"       Margin="30,4,22,0"        FontSize="16" Height="30"   Width="130"   VerticalContentAlignment="Center"  HorizontalAlignment="Right" VerticalAlignment="Top"/>-->                <RadioButton Content="Unfrozen"   FontSize="15"   Width="120" Height="30" Margin="30,0,10,0"  Style="{StaticResource Button_RadioButton}" IsChecked="{Binding IsFrozen,Converter={StaticResource BoolToBool},Mode=TwoWay}"/>                <RadioButton Content="Frozen"     FontSize="15"   Width="120" Height="30" Margin="0,0,30,0" Style="{StaticResource Button_RadioButton}" IsChecked="{Binding IsFrozen,Mode=TwoWay}"/>            </StackPanel>            <Grid x:Name="grid1" Grid.Row="1" IsEnabled="{Binding IsFrozen,Converter={StaticResource BoolToBool}}">                <Grid.RowDefinitions>                    <RowDefinition  Height="Auto"/>                    <RowDefinition  />                </Grid.RowDefinitions>                <Grid Grid.Row="0">                    <Expander  Header="RecipeHead" FontSize="15" Margin="10,0,0,0">                        <WrapPanel  x:Name="headWrapPanel" Orientation="Horizontal"/>                    </Expander>                </Grid>                <ScrollViewer Grid.Row="1"  HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">                    <StackPanel   x:Name="bodyStackPanel" Orientation="Horizontal" Grid.Row="1" ScrollViewer.VerticalScrollBarVisibility="Visible"/>                </ScrollViewer>            </Grid>        </Grid>    </Grid></UserControl>
 |