Files

113 lines
5.0 KiB
Plaintext
Raw Permalink Normal View History

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