2025-02-10 20:53:40 +08:00
|
|
|
<ui:FluentWindowEx
|
|
|
|
|
x:Class="ShrlAlgo.RvKits.RvMEP.RotateMEPView"
|
2024-09-22 11:05:41 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2025-02-10 20:53:40 +08:00
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
|
|
|
|
|
|
|
|
|
xmlns:local="clr-namespace:ShrlAlgo.RvKits.RvMEP"
|
2024-09-22 11:05:41 +08:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
Title="旋转模型"
|
|
|
|
|
Width="250"
|
|
|
|
|
Height="280"
|
|
|
|
|
MinWidth="250"
|
|
|
|
|
MinHeight="280"
|
|
|
|
|
d:DataContext="{d:DesignInstance Type={x:Type local:RotateMEPViewModel}}"
|
2024-10-08 16:21:39 +08:00
|
|
|
SizeToContent="Height"
|
2024-09-22 11:05:41 +08:00
|
|
|
mc:Ignorable="d">
|
|
|
|
|
<Window.Resources>
|
2025-02-10 20:53:40 +08:00
|
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgo.RvKits;component/WPFUI.xaml" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</Window.Resources>
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:StackPanelEx Margin="5" Spacing="5">
|
2024-09-22 11:05:41 +08:00
|
|
|
<GroupBox
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Header="角度(°)">
|
|
|
|
|
<UniformGrid Columns="3" Rows="3">
|
|
|
|
|
<RadioButton Content="15°">
|
|
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<System:Double>15</System:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton Content="22.5°">
|
|
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<System:Double>22.5</System:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton Content="30°">
|
|
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<System:Double>30</System:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton Content="45°">
|
|
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<System:Double>45</System:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton Content="60°">
|
|
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<System:Double>60</System:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton Content="90°">
|
|
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<System:Double>90</System:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton x:Name="LbCustom" Content="自定义" />
|
|
|
|
|
<TextBox Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=LbCustom}" />
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
<CheckBox
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Content="是否单选"
|
|
|
|
|
IsChecked="{Binding IsSingleSelect}"
|
|
|
|
|
ToolTip="单选构件,取消则可以多选构件" />
|
|
|
|
|
<Button
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
Command="{Binding RotateInstanceCommand}"
|
|
|
|
|
Content="旋转"
|
|
|
|
|
ToolTip="当选中构件时,则直接旋转,未选中时,则根据选项决定是多选还是单选" />
|
2025-02-10 20:53:40 +08:00
|
|
|
</ui:StackPanelEx>
|
|
|
|
|
</ui:FluentWindowEx>
|