整理代码
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<StackPanel
|
||||
Background="#FFE5F0D7"
|
||||
Height="26"
|
||||
Orientation="Horizontal"
|
||||
d:DataContext="{d:DesignInstance Type=local:AnyConnectViewModel}"
|
||||
mc:Ignorable="d"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.RvMEP.AutoConnectOptionsView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:converters="clr-namespace:ShrlAlgoToolkit.Mvvm.Converters;assembly=ShrlAlgoToolkit.Mvvm"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvMEP"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:system="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
Height="26"
|
||||
d:DataContext="{d:DesignInstance Type=local:AnyConnectViewModel}"
|
||||
Background="#FFE5F0D7"
|
||||
Orientation="Horizontal"
|
||||
mc:Ignorable="d">
|
||||
<StackPanel.Resources>
|
||||
<converters:ComparisonConverter x:Key="ComparisonConverter" />
|
||||
<converters:InvertBooleanConverter x:Key="InvertBooleanConverter" />
|
||||
@@ -19,23 +19,23 @@
|
||||
</StackPanel.Resources>
|
||||
<TextBlock
|
||||
Padding="10,0,10,0"
|
||||
Text="任意管线 | 选项"
|
||||
VerticalAlignment="Center" />
|
||||
VerticalAlignment="Center"
|
||||
Text="任意管线 | 选项" />
|
||||
<Border
|
||||
Width="3"
|
||||
Background="Gray"
|
||||
BorderBrush="Azure"
|
||||
BorderThickness="1,0"
|
||||
Width="3" />
|
||||
BorderThickness="1,0" />
|
||||
<TextBlock
|
||||
Margin="10,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
Text="连接角度:"
|
||||
ToolTip="平行或垂直连接时生效"
|
||||
VerticalAlignment="Center" />
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
ToolTip="平行或垂直连接时生效" />
|
||||
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
|
||||
<RadioButton
|
||||
VerticalAlignment="Center"
|
||||
Content="默认"
|
||||
ToolTip="根据当前位置自动连接"
|
||||
VerticalAlignment="Center">
|
||||
ToolTip="根据当前位置自动连接">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -44,7 +44,7 @@
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="15°" VerticalAlignment="Center">
|
||||
<RadioButton VerticalAlignment="Center" Content="15°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -53,7 +53,7 @@
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="22.5°" VerticalAlignment="Center">
|
||||
<RadioButton VerticalAlignment="Center" Content="22.5°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -62,7 +62,7 @@
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="30°" VerticalAlignment="Center">
|
||||
<RadioButton VerticalAlignment="Center" Content="30°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -71,7 +71,7 @@
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="45°" VerticalAlignment="Center">
|
||||
<RadioButton VerticalAlignment="Center" Content="45°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -80,7 +80,7 @@
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="60°" VerticalAlignment="Center">
|
||||
<RadioButton VerticalAlignment="Center" Content="60°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -89,7 +89,7 @@
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="90°" VerticalAlignment="Center">
|
||||
<RadioButton VerticalAlignment="Center" Content="90°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
@@ -99,13 +99,13 @@
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton
|
||||
Content="自定义:"
|
||||
x:Name="LbCustom"
|
||||
VerticalAlignment="Center"
|
||||
x:Name="LbCustom" />
|
||||
Content="自定义:" />
|
||||
<TextBox
|
||||
Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0}°}"
|
||||
Width="80"
|
||||
VerticalAlignment="Center"
|
||||
Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=LbCustom}"
|
||||
Width="80" />
|
||||
Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0}°}"
|
||||
Visibility="{Binding IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=LbCustom}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user