更新整理
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
<ui:FluentWindowEx
|
||||
x:Class="ShrlAlgo.RvKits.RvView.SectionBoxControllerView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:rvManager="clr-namespace:ShrlAlgo.RvKits.RvView"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
Height="360"
|
||||
MinHeight="360"
|
||||
MinWidth="340"
|
||||
Title="剖面框"
|
||||
Width="340"
|
||||
Height="360"
|
||||
MinWidth="340"
|
||||
MinHeight="360"
|
||||
d:DataContext="{d:DesignInstance Type=rvManager:SectionBoxControllerViewModel}"
|
||||
mc:Ignorable="d">
|
||||
mc:Ignorable="d"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.RvView.SectionBoxControllerView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:rvManager="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvView"
|
||||
xmlns:rvView="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvView"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
@@ -29,14 +29,14 @@
|
||||
</StackPanel>
|
||||
</GroupBox.Header>
|
||||
<ListBox
|
||||
x:Name="HistoryListBox"
|
||||
HorizontalContentAlignment="Center"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
DisplayMemberPath="Name"
|
||||
HorizontalContentAlignment="Center"
|
||||
ItemsSource="{Binding BoundingBoxes}"
|
||||
SelectedValuePath="Bounding" />
|
||||
SelectedValuePath="Bounding"
|
||||
d:ItemsSource="{d:SampleData ItemCount=5}"
|
||||
x:Name="HistoryListBox" />
|
||||
</GroupBox>
|
||||
<Grid Grid.Row="1" Grid.ColumnSpan="2">
|
||||
<Grid Grid.ColumnSpan="2" Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="auto" />
|
||||
@@ -45,58 +45,58 @@
|
||||
<UniformGrid Rows="1">
|
||||
<RadioButton
|
||||
Content="元素"
|
||||
IsChecked="{Binding SectionBoxType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static rvManager:SectionBoxType.Element}}"
|
||||
IsChecked="{Binding SectionBoxType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static rvView:SectionBoxType.Element}}"
|
||||
ToolTip="根据选择元素设置剖面框" />
|
||||
<RadioButton
|
||||
Content="框选"
|
||||
IsChecked="{Binding SectionBoxType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static rvManager:SectionBoxType.Rectangle}}"
|
||||
IsChecked="{Binding SectionBoxType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static rvView:SectionBoxType.Rectangle}}"
|
||||
ToolTip="根据框选范围设置剖面框" />
|
||||
<RadioButton
|
||||
Content="剖面"
|
||||
IsChecked="{Binding SectionBoxType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static rvManager:SectionBoxType.ViewSection}}"
|
||||
IsChecked="{Binding SectionBoxType, Converter={StaticResource ComparisonConverter}, ConverterParameter={x:Static rvView:SectionBoxType.ViewSection}}"
|
||||
ToolTip="根据剖面的范围设置剖面框" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<CheckBox
|
||||
Grid.Column="1"
|
||||
Margin="5"
|
||||
HorizontalAlignment="Center"
|
||||
Content="是否延展"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Center"
|
||||
IsChecked="{Binding NeedExtend}"
|
||||
Margin="5"
|
||||
ToolTip="是否延展剖面框边界" />
|
||||
</Grid>
|
||||
<ui:Button
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding RecordSectionBoxCommand}"
|
||||
Content="临时记录"
|
||||
Grid.Column="0"
|
||||
Grid.Row="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Icon="{ui:SymbolIcon Add32}"
|
||||
ToolTip="记录剖面框,以便复用" />
|
||||
<ui:Button
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding RemoveSectionBoxCommand}"
|
||||
CommandParameter="{Binding SelectedItem, ElementName=HistoryListBox}"
|
||||
Content="删除记录"
|
||||
Grid.Column="1"
|
||||
Grid.Row="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Icon="{ui:SymbolIcon Delete32}"
|
||||
ToolTip="删除已记录的剖面框" />
|
||||
<ui:Button
|
||||
Grid.Row="3"
|
||||
Grid.Column="0"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding UpdateSectionBoxCommand}"
|
||||
CommandParameter="{Binding SelectedValue, ElementName=HistoryListBox}"
|
||||
Content="恢复剖面框"
|
||||
Grid.Column="0"
|
||||
Grid.Row="3"
|
||||
HorizontalAlignment="Stretch"
|
||||
Icon="{ui:SymbolIcon Replay20}"
|
||||
ToolTip="返回历史记录的剖面框" />
|
||||
<ui:Button
|
||||
Grid.Row="3"
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding ResetSectionBoxCommand}"
|
||||
Content="设置剖面框"
|
||||
Grid.Column="1"
|
||||
Grid.Row="3"
|
||||
HorizontalAlignment="Stretch"
|
||||
Icon="{ui:SymbolIcon Box20}"
|
||||
ToolTip="重新设置新的剖面框" />
|
||||
</ui:AutoGrid>
|
||||
|
||||
Reference in New Issue
Block a user