|
@@ -177,15 +177,64 @@
|
|
|
</StackPanel>
|
|
|
<RadioButton.ContextMenu>
|
|
|
<ContextMenu Name="MenuAlignment" Placement="Bottom">
|
|
|
- <cus:MenuItemWithPath Header="Left Alignment" Path="M2.01361 15V1H3.51361V15H2.01361ZM4.99994 4H10.9999V7H4.99994V4ZM13.9999 9H4.99994V12H13.9999V9Z" />
|
|
|
- <cus:MenuItemWithPath Header="Vertical Alignment" Path="M8.75006 7L8.75006 9L12.0001 9L12.0001 12L8.75006 12L8.75006 15L7.25006 15L7.25006 12L4.00006 12L4.00006 9L7.25006 9L7.25006 7L2.00006 7L2.00006 4L7.25006 4L7.25006 0.999999L8.75006 1L8.75006 4L14.0001 4L14.0001 7L8.75006 7Z" />
|
|
|
- <cus:MenuItemWithPath Header="Right Alignment" Path="M14.0001 1L14.0001 15L12.5001 15L12.5001 1L14.0001 1ZM11.0001 12L2.00006 12L2.00006 9L11.0001 9L11.0001 12ZM4.00006 7L11.0001 7L11.0001 4L4.00006 4L4.00006 7Z" />
|
|
|
- <cus:MenuItemWithPath Header="Top Alignment" Path="M15 2L1 2L1 3.5L15 3.5L15 2ZM12 5L12 11L9 11L9 5L12 5ZM7 5L7 14L4 14L4 5L7 5Z" />
|
|
|
- <cus:MenuItemWithPath Header="Horizontal Alignment" Path="M7 7.25L9 7.25L9 4L12 4L12 7.25L15 7.25L15 8.75L12 8.75L12 12L9 12L9 8.75L7 8.75L7 14L4 14L4 8.75L1 8.75L1 7.25L4 7.25L4 2L7 2L7 7.25Z" />
|
|
|
- <cus:MenuItemWithPath Header="Lower Alignment" Path="M9 2H12V11H9V2ZM4 5H7V11H4V5ZM1 14H15V12.5H1V14Z" />
|
|
|
- <cus:MenuItemWithPath Header="Distribute Vertical" Path="M15 12.5L1 12.5L1 14L15 14L15 12.5ZM12 9.5L4 9.5L4 6.5L12 6.5L12 9.5ZM1 2L15 2L15 3.5L1 3.5L1 2Z" />
|
|
|
- <cus:MenuItemWithPath Header="Distribute Horizontal" Path="M2 15V1H3.5V15H2ZM6.5 4H9.5V12H6.5V4ZM12.5 1V15H14V1H12.5Z" />
|
|
|
+ <cus:MenuItemWithPath x:Name="LeftBtn" IsEnabled="{Binding IsLayoutAlign}" Header="Left Alignment" Tag="Left" Path="M2.01361 15V1H3.51361V15H2.01361ZM4.99994 4H10.9999V7H4.99994V4ZM13.9999 9H4.99994V12H13.9999V9Z">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Left"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Vertical Alignment" Tag="Vertical" Path="M8.75006 7L8.75006 9L12.0001 9L12.0001 12L8.75006 12L8.75006 15L7.25006 15L7.25006 12L4.00006 12L4.00006 9L7.25006 9L7.25006 7L2.00006 7L2.00006 4L7.25006 4L7.25006 0.999999L8.75006 1L8.75006 4L14.0001 4L14.0001 7L8.75006 7Z" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Left"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Right Alignment" Tag="Right" Path="M14.0001 1L14.0001 15L12.5001 15L12.5001 1L14.0001 1ZM11.0001 12L2.00006 12L2.00006 9L11.0001 9L11.0001 12ZM4.00006 7L11.0001 7L11.0001 4L4.00006 4L4.00006 7Z" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Left"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Top Alignment" Tag="Top" Path="M15 2L1 2L1 3.5L15 3.5L15 2ZM12 5L12 11L9 11L9 5L12 5ZM7 5L7 14L4 14L4 5L7 5Z" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Top"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Horizontal Alignment" Tag="Horizontal" Path="M7 7.25L9 7.25L9 4L12 4L12 7.25L15 7.25L15 8.75L12 8.75L12 12L9 12L9 8.75L7 8.75L7 14L4 14L4 8.75L1 8.75L1 7.25L4 7.25L4 2L7 2L7 7.25Z" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Horizontal"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Lower Alignment" Tag="Lower" Path="M9 2H12V11H9V2ZM4 5H7V11H4V5ZM1 14H15V12.5H1V14Z" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Lower"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAvgAlign}" Header="Distribute Vertical" Tag="Distribute Vertical" Path="M15 12.5L1 12.5L1 14L15 14L15 12.5ZM12 9.5L4 9.5L4 6.5L12 6.5L12 9.5ZM1 2L15 2L15 3.5L1 3.5L1 2Z">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Distribute Vertical"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
+ <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAvgAlign}" Header="Distribute Horizontal" Tag="Distribute Horizontal" Path="M2 15V1H3.5V15H2ZM6.5 4H9.5V12H6.5V4ZM12.5 1V15H14V1H12.5Z" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Distribute Horizontal"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </cus:MenuItemWithPath>
|
|
|
</ContextMenu>
|
|
|
+
|
|
|
</RadioButton.ContextMenu>
|
|
|
</RadioButton>
|
|
|
<RadioButton Name="BtnMore" Width="44" Click="BtnMore_Click" Initialized="BtnMore_Initialized">
|