修复错误
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
Width="900"
|
||||
d:DataContext="{d:DesignInstance local:RenameTypeViewModel}"
|
||||
mc:Ignorable="d"
|
||||
xmlns:conv="clr-namespace:ShrlAlgoToolkit.RevitAddins.Converters"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.RvFamily.RenameTypeView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:attach="clr-namespace:ShrlAlgoToolkit.Mvvm.Attach;assembly=ShrlAlgoToolkit.Mvvm"
|
||||
@@ -27,6 +28,7 @@
|
||||
Rows="*,Auto,Auto">
|
||||
<GroupBox Header="族类别">
|
||||
<ListBox
|
||||
Style="{StaticResource ChipListBoxStyle}"
|
||||
DisplayMemberPath="Key"
|
||||
ItemsSource="{Binding Collection, Mode=OneWay}"
|
||||
SelectionMode="Multiple"
|
||||
@@ -86,10 +88,10 @@
|
||||
SelectionUnit="Cell"
|
||||
attach:TextSearchAssist.SearchValue="{Binding Text, ElementName=TbFound, UpdateSourceTrigger=PropertyChanged}">
|
||||
<DataGrid.Resources>
|
||||
<Style BasedOn="{StaticResource DefaultDataGridCellStyle}" TargetType="{x:Type DataGridCell}">
|
||||
<Style BasedOn="{StaticResource DataGridCellDefault}" TargetType="{x:Type DataGridCell}">
|
||||
<Setter Property="attach:TextSearchAssist.IsTextMatch">
|
||||
<Setter.Value>
|
||||
<MultiBinding Converter="{StaticResource SearchTypeValueConverter}">
|
||||
<MultiBinding Converter="{x:Static conv:SearchTypeValueConverter.Instance}">
|
||||
<Binding Path="Content.Text" RelativeSource="{RelativeSource Mode=Self}" />
|
||||
<Binding Path="(attach:TextSearchAssist.SearchValue)" RelativeSource="{RelativeSource Mode=Self}" />
|
||||
<Binding RelativeSource="{RelativeSource Mode=Self}" />
|
||||
@@ -104,7 +106,7 @@
|
||||
</Style>
|
||||
</DataGrid.Resources>
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style BasedOn="{StaticResource DefaultDataGridColumnHeaderStyle}" TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Style BasedOn="{StaticResource DataGridColumnHeaderDefault}" TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
@@ -112,8 +114,8 @@
|
||||
<DataGrid.Columns>
|
||||
<DataGridCheckBoxColumn
|
||||
Binding="{Binding IsSelected, UpdateSourceTrigger=PropertyChanged}"
|
||||
EditingElementStyle="{StaticResource DataGridCheckBoxEditingElementDefaultStyle}"
|
||||
ElementStyle="{StaticResource DataGridCheckBoxElementDefaultStyle}">
|
||||
EditingElementStyle="{StaticResource DataGridCheckBox}"
|
||||
ElementStyle="{StaticResource DataGridCheckBox}">
|
||||
<DataGridCheckBoxColumn.Header>
|
||||
<CheckBox
|
||||
Content="全选"
|
||||
@@ -159,7 +161,7 @@
|
||||
</DataGridTextColumn>
|
||||
<DataGridTextColumn
|
||||
Binding="{Binding NewTypeName, UpdateSourceTrigger=PropertyChanged}"
|
||||
EditingElementStyle="{StaticResource DefaultTextBoxStyle}"
|
||||
EditingElementStyle="{StaticResource DefaultTextBox}"
|
||||
Header="新族类型名称"
|
||||
MinWidth="80">
|
||||
<DataGridTextColumn.ElementStyle>
|
||||
@@ -177,7 +179,7 @@
|
||||
IsEnabled="{Binding CanInput}"
|
||||
Margin="5"
|
||||
ui:InputAssist.Placeholder="前缀">
|
||||
<Binding Path="ui:InputAssist.PrefixText" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding Path="PrefixText" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<validationRules:UndefinedCharRules ValidatesOnTargetUpdated="True" />
|
||||
</Binding.ValidationRules>
|
||||
@@ -187,7 +189,7 @@
|
||||
IsEnabled="{Binding CanInput}"
|
||||
Margin="5"
|
||||
ui:InputAssist.Placeholder="后缀">
|
||||
<Binding Path="ui:InputAssist.SuffixText" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding Path="SuffixText" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<validationRules:UndefinedCharRules ValidatesOnTargetUpdated="True" />
|
||||
</Binding.ValidationRules>
|
||||
|
||||
Reference in New Issue
Block a user