更新整理
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
<ui:FluentWindowEx
|
||||
x:Class="ShrlAlgo.RvKits.RvFamily.FamilyProcessorView"
|
||||
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:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:local="clr-namespace:ShrlAlgo.RvKits.RvFamily"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
||||
Height="600"
|
||||
MinHeight="400"
|
||||
MinWidth="380"
|
||||
Title="族复用"
|
||||
Width="380"
|
||||
Height="600"
|
||||
MinWidth="380"
|
||||
MinHeight="400"
|
||||
d:DataContext="{d:DesignInstance Type=local:FamilyProcessorViewModel}"
|
||||
mc:Ignorable="d">
|
||||
mc:Ignorable="d"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.RvFamily.FamilyProcessorView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvFamily"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
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>
|
||||
@@ -25,14 +24,14 @@
|
||||
Columns="*,*"
|
||||
Rows="*,Auto,Auto,Auto">
|
||||
<DataGrid
|
||||
x:Name="FamilySaveDg"
|
||||
Grid.ColumnSpan="2"
|
||||
d:ItemsSource="{d:SampleData}"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
Grid.ColumnSpan="2"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding FamilyCollection}"
|
||||
SelectionMode="Extended">
|
||||
SelectionMode="Extended"
|
||||
d:ItemsSource="{d:SampleData}"
|
||||
x:Name="FamilySaveDg">
|
||||
<!--<ui:DataGrid.RowHeaderTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Width="35">
|
||||
@@ -42,17 +41,17 @@
|
||||
</ui:DataGrid.RowHeaderTemplate>-->
|
||||
<DataGrid.Columns>
|
||||
<DataGridCheckBoxColumn
|
||||
Width="60"
|
||||
Binding="{Binding IsSelected, Mode=OneWayToSource, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}"
|
||||
ElementStyle="{StaticResource DataGridCheckBoxElementDefaultStyle}"
|
||||
Header="选择" />
|
||||
Header="选择"
|
||||
Width="60" />
|
||||
<DataGridTextColumn Binding="{Binding FamilyCategory.Name}" Header="族类别" />
|
||||
<DataGridTextColumn Binding="{Binding Name}" Header="族名称" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<GroupBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Grid.Row="1"
|
||||
Header="保存选项">
|
||||
<StackPanel>
|
||||
<RadioButton Content="覆盖存在文件" IsChecked="{Binding IsOverride, UpdateSourceTrigger=PropertyChanged}" />
|
||||
@@ -60,8 +59,8 @@
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Grid.Row="1"
|
||||
VerticalAlignment="Center">
|
||||
<CheckBox Content="添加族类别文件夹" IsChecked="{Binding CreateCategoryFolder}" />
|
||||
<CheckBox Content="文件名添加族类别" IsChecked="{Binding AddCategoryPrefix}" />
|
||||
@@ -72,10 +71,10 @@
|
||||
Text="{Binding PathToSaveFamily}"
|
||||
TextOptions.TextFormattingMode="Display" />
|
||||
<ui:Button
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding SelectDirectoryCommand}"
|
||||
Content="路径选择"
|
||||
Cursor="Hand"
|
||||
HorizontalAlignment="Stretch"
|
||||
Icon="{ui:FontIcon '',
|
||||
FontFamily={StaticResource BoxIcons}}" />
|
||||
<ComboBox
|
||||
@@ -90,10 +89,10 @@
|
||||
</i:Interaction.Triggers>-->
|
||||
</ComboBox>
|
||||
<ui:Button
|
||||
HorizontalAlignment="Stretch"
|
||||
Command="{Binding SaveFamiliesCommand}"
|
||||
CommandParameter="{Binding SelectedItems, ElementName=FamilySaveDg}"
|
||||
Content="导出保存"
|
||||
HorizontalAlignment="Stretch"
|
||||
Icon="{ui:FontIcon Glyph=,
|
||||
FontFamily={StaticResource BoxIcons}}" />
|
||||
</ui:AutoGrid>
|
||||
@@ -104,14 +103,14 @@
|
||||
Columns="*,Auto"
|
||||
Rows="*,Auto,Auto">
|
||||
<DataGrid
|
||||
x:Name="familyTransmitDg"
|
||||
Grid.ColumnSpan="2"
|
||||
d:ItemsSource="{d:SampleData}"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
Grid.ColumnSpan="2"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding FamilyCollection}"
|
||||
SelectionMode="Extended">
|
||||
SelectionMode="Extended"
|
||||
d:ItemsSource="{d:SampleData}"
|
||||
x:Name="familyTransmitDg">
|
||||
<!--<ui:DataGrid.RowHeaderTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Width="35">
|
||||
@@ -121,18 +120,18 @@
|
||||
</ui:DataGrid.RowHeaderTemplate>-->
|
||||
<DataGrid.Columns>
|
||||
<DataGridCheckBoxColumn
|
||||
Width="60"
|
||||
Binding="{Binding IsSelected, Mode=OneWayToSource, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}}}"
|
||||
ElementStyle="{StaticResource DataGridCheckBoxElementDefaultStyle}"
|
||||
Header="选择" />
|
||||
Header="选择"
|
||||
Width="60" />
|
||||
<DataGridTextColumn Binding="{Binding FamilyCategory.Name}" Header="族类别" />
|
||||
<DataGridTextColumn Binding="{Binding Name}" Header="族名称" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<ComboBox
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
DisplayMemberPath="Title"
|
||||
Grid.Column="0"
|
||||
Grid.Row="1"
|
||||
ItemsSource="{Binding SourceDocsList, Mode=TwoWay}"
|
||||
SelectedItem="{Binding SourceDoc, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Text="源文档">
|
||||
@@ -143,28 +142,28 @@
|
||||
</i:Interaction.Triggers>-->
|
||||
</ComboBox>
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Command="{Binding TransmitFamilyCommand}"
|
||||
CommandParameter="{Binding SelectedItems, ElementName=familyTransmitDg}"
|
||||
Content=""
|
||||
FontFamily="{StaticResource BoxIcons}"
|
||||
Grid.Column="1"
|
||||
Grid.Row="1"
|
||||
ToolTip="传递" />
|
||||
<ComboBox
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
DisplayMemberPath="Title"
|
||||
Grid.Column="0"
|
||||
Grid.Row="2"
|
||||
ItemsSource="{Binding TargetDocsList, Mode=TwoWay}"
|
||||
SelectedItem="{Binding TargetDoc, UpdateSourceTrigger=PropertyChanged}"
|
||||
Text="目标文档" />
|
||||
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
Command="{Binding CancelCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}"
|
||||
Content=""
|
||||
FontFamily="{StaticResource BoxIcons}"
|
||||
Grid.Column="1"
|
||||
Grid.Row="2"
|
||||
ToolTip="关闭" />
|
||||
</ui:AutoGrid>
|
||||
</TabItem>
|
||||
|
||||
Reference in New Issue
Block a user