31 lines
2.1 KiB
Plaintext
31 lines
2.1 KiB
Plaintext
|
|
<controls:MaterialWindow
|
||
|
|
x:Class="Szmedi.RvKits.InfoManager.ReplaceParamValueWin"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:local="clr-namespace:Szmedi.RvKits.InfoManager"
|
||
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
Title="查找替换属性"
|
||
|
|
Width="400"
|
||
|
|
Height="300"
|
||
|
|
d:DataContext="{d:DesignInstance Type=local:ReplaceParamValueViewModel}"
|
||
|
|
SizeToContent="Height"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<controls:MaterialWindow.Resources>
|
||
|
|
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
||
|
|
</controls:MaterialWindow.Resources>
|
||
|
|
<StackPanel>
|
||
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" ToolTip="选中元素修改,否则全部可见元素(临时隐藏也算不可见)修改参数值">
|
||
|
|
<TextBlock Text="全部" ToolTip="可见元素全部修改" />
|
||
|
|
<ToggleButton IsChecked="{Binding IsSelectedItems}" Style="{StaticResource MaterialDesignSwitchToggleButton}" />
|
||
|
|
<TextBlock Text="仅选中" ToolTip="选中元素修改" />
|
||
|
|
</StackPanel>
|
||
|
|
<TextBox materialDesign:HintAssist.Hint="替换的构件属性名称" Text="{Binding PropertyName, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
<TextBox materialDesign:HintAssist.Hint="查找的值内容" Text="{Binding SourceStr, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
<TextBox materialDesign:HintAssist.Hint="替换的值内容" Text="{Binding TargetStr, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
<Button Command="{Binding ReplaceCommand}" Content="查找替换" ToolTip="查找替换文字或显示为文字的属性条目 未填写的属性值或空值,不能修改。 若值中存在多个相同的查找值,会全部被替换" />
|
||
|
|
</StackPanel>
|
||
|
|
</controls:MaterialWindow>
|