添加项目文件。
This commit is contained in:
122
Sai.RvKits/RvMEP/ClashResolveView.xaml
Normal file
122
Sai.RvKits/RvMEP/ClashResolveView.xaml
Normal file
@@ -0,0 +1,122 @@
|
||||
<ex:FluentWindowEx
|
||||
x:Class="Sai.RvKits.RvMEP.ClashResolveView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
|
||||
xmlns:local="clr-namespace:Sai.RvKits.RvMEP"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||
Title="避让处理"
|
||||
Width="320"
|
||||
Height="450"
|
||||
MinWidth="320"
|
||||
MinHeight="480"
|
||||
d:DataContext="{d:DesignInstance Type=local:ClashResolveViewModel}"
|
||||
mc:Ignorable="d">
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="Closing">
|
||||
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
|
||||
</b:EventTrigger>
|
||||
</b:Interaction.Triggers>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/Sai.RvKits;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
<ex:StackPanelEx Margin="5" Spacing="5">
|
||||
<GroupBox Header="角度">
|
||||
<UniformGrid Columns="3">
|
||||
<!--<ui:CardColor />-->
|
||||
<RadioButton Content="15°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
<sys:Double>15</sys:Double>
|
||||
</Binding.ConverterParameter>
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="22.5°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
<sys:Double>22.5</sys:Double>
|
||||
</Binding.ConverterParameter>
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="30°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
<sys:Double>30</sys:Double>
|
||||
</Binding.ConverterParameter>
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="45°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
<sys:Double>45</sys:Double>
|
||||
</Binding.ConverterParameter>
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="60°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
<sys:Double>60</sys:Double>
|
||||
</Binding.ConverterParameter>
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton Content="90°">
|
||||
<RadioButton.IsChecked>
|
||||
<Binding Converter="{StaticResource ComparisonConverter}" Path="Angle">
|
||||
<Binding.ConverterParameter>
|
||||
<sys:Double>90</sys:Double>
|
||||
</Binding.ConverterParameter>
|
||||
</Binding>
|
||||
</RadioButton.IsChecked>
|
||||
</RadioButton>
|
||||
<RadioButton x:Name="LbCustom" Content="自定义" />
|
||||
<TextBox IsEnabled="{Binding IsChecked, ElementName=LbCustom}" Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<ex:StackPanelEx Orientation="Horizontal" Spacing="5">
|
||||
<GroupBox ex:StackPanelEx.Fill="Fill" Header="参考方式">
|
||||
<UniformGrid Rows="1">
|
||||
<RadioButton Content="手动" IsChecked="{Binding LocationType, ConverterParameter={x:Static local:LocationType.Manual}, Converter={StaticResource ComparisonConverter}}" />
|
||||
<RadioButton Content="参考" IsChecked="{Binding LocationType, ConverterParameter={x:Static local:LocationType.Reference}, Converter={StaticResource ComparisonConverter}}" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<GroupBox ex:StackPanelEx.Fill="Fill" Header="调整方式">
|
||||
<UniformGrid Rows="1">
|
||||
<RadioButton Content="单侧" IsChecked="{Binding AdjustType, ConverterParameter={x:Static local:AdjustType.OneSide}, Converter={StaticResource ComparisonConverter}}" />
|
||||
<RadioButton Content="双侧" IsChecked="{Binding AdjustType, ConverterParameter={x:Static local:AdjustType.TwoSide}, Converter={StaticResource ComparisonConverter}}" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
</ex:StackPanelEx>
|
||||
<GroupBox Grid.Row="2" Header="调整方向">
|
||||
<UniformGrid Rows="1">
|
||||
<RadioButton Content="上" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Up}, Converter={StaticResource ComparisonConverter}}" />
|
||||
<RadioButton Content="下" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Down}, Converter={StaticResource ComparisonConverter}}" />
|
||||
<RadioButton Content="左" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Left}, Converter={StaticResource ComparisonConverter}}" />
|
||||
<RadioButton Content="右" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Right}, Converter={StaticResource ComparisonConverter}}" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<ex:TextBoxEx
|
||||
ex:StackPanelEx.Fill="Fill"
|
||||
Prefix="偏移量:"
|
||||
Suffix="mm"
|
||||
Text="{Binding Offset, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Button
|
||||
HorizontalAlignment="Stretch"
|
||||
ex:StackPanelEx.Fill="Fill"
|
||||
Command="{Binding ResolveCommand}"
|
||||
Content="调整" />
|
||||
</ex:StackPanelEx>
|
||||
</ex:FluentWindowEx>
|
||||
Reference in New Issue
Block a user