2024-09-22 11:05:41 +08:00
|
|
|
<StackPanel
|
2025-04-24 20:56:10 +08:00
|
|
|
Background="#FFE5F0D7"
|
|
|
|
|
Height="26"
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
d:DataContext="{d:DesignInstance Type=local:AnyConnectViewModel}"
|
|
|
|
|
mc:Ignorable="d"
|
2025-02-10 20:53:40 +08:00
|
|
|
x:Class="ShrlAlgo.RvKits.RvMEP.AutoConnectOptionsView"
|
2024-09-22 11:05:41 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2025-02-10 20:53:40 +08:00
|
|
|
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:system="clr-namespace:System;assembly=mscorlib"
|
2025-04-24 20:56:10 +08:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:converters="clr-namespace:ShrlAlgoToolkit.Mvvm.Converters;assembly=ShrlAlgoToolkit.Mvvm">
|
2024-09-22 11:05:41 +08:00
|
|
|
<StackPanel.Resources>
|
|
|
|
|
<converters:ComparisonConverter x:Key="ComparisonConverter" />
|
|
|
|
|
<converters:InvertBooleanConverter x:Key="InvertBooleanConverter" />
|
|
|
|
|
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
|
|
|
|
|
</StackPanel.Resources>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Padding="10,0,10,0"
|
2025-04-24 20:56:10 +08:00
|
|
|
Text="任意管线 | 选项"
|
|
|
|
|
VerticalAlignment="Center" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<Border
|
|
|
|
|
Background="Gray"
|
|
|
|
|
BorderBrush="Azure"
|
2025-04-24 20:56:10 +08:00
|
|
|
BorderThickness="1,0"
|
|
|
|
|
Width="3" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<TextBlock
|
|
|
|
|
Margin="10,0,10,0"
|
|
|
|
|
Text="连接角度:"
|
2025-04-24 20:56:10 +08:00
|
|
|
ToolTip="平行或垂直连接时生效"
|
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton
|
|
|
|
|
Content="默认"
|
2025-04-24 20:56:10 +08:00
|
|
|
ToolTip="根据当前位置自动连接"
|
|
|
|
|
VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>0</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
2025-04-24 20:56:10 +08:00
|
|
|
<RadioButton Content="15°" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>15</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
2025-04-24 20:56:10 +08:00
|
|
|
<RadioButton Content="22.5°" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>22.5</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
2025-04-24 20:56:10 +08:00
|
|
|
<RadioButton Content="30°" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>30</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
2025-04-24 20:56:10 +08:00
|
|
|
<RadioButton Content="45°" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>45</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
2025-04-24 20:56:10 +08:00
|
|
|
<RadioButton Content="60°" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>60</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
2025-04-24 20:56:10 +08:00
|
|
|
<RadioButton Content="90°" VerticalAlignment="Center">
|
2024-09-22 11:05:41 +08:00
|
|
|
<RadioButton.IsChecked>
|
|
|
|
|
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
|
|
|
|
<Binding.ConverterParameter>
|
|
|
|
|
<system:Double>90</system:Double>
|
|
|
|
|
</Binding.ConverterParameter>
|
|
|
|
|
</Binding>
|
|
|
|
|
</RadioButton.IsChecked>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton
|
2025-04-24 20:56:10 +08:00
|
|
|
Content="自定义:"
|
2024-09-22 11:05:41 +08:00
|
|
|
VerticalAlignment="Center"
|
2025-04-24 20:56:10 +08:00
|
|
|
x:Name="LbCustom" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<TextBox
|
|
|
|
|
Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0}°}"
|
2025-04-24 20:56:10 +08:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=LbCustom}"
|
|
|
|
|
Width="80" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|