Files
EgtWPFLib5/StringParamV.xaml
T
2025-03-21 23:42:17 +01:00

87 lines
6.2 KiB
XML

<UserControl x:Class="StringParamV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="EgtWPFLib5Resources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid Style="{DynamicResource Param_GpBxHeaderAlignment}">
<Grid.Resources>
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ParamTxBl,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Style="{DynamicResource MachiningsToolTextBlock}"/>
<EgtWPFLib5:EgtTextBox x:Name="TextValue" Grid.Column="1"
BorderBrushIsMouseOver="{Binding BorderBrushIsMouseOver,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBorderBrush="{Binding GeneralBorderBrush,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BorderBrushIsFocused="{Binding BorderBrushIsFocused,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdEnable="{Binding BackgroundBrdEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundBrdDisable="{Binding BackgroundBrdDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
BackgroundTxBlDisable="{Binding BackgroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlEnable="{Binding ForegroundTxBlEnable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
ForegroundTxBlDisable="{Binding ForegroundTxBlDisable,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralForeground="{Binding GeneralForeground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
GeneralBackground="{Binding GeneralBackground,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Text="{Binding ParamTxBx,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" Margin="0,3,3,3"
IsReadOnly="{Binding IsParamReadOnly,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}}}"/>
<TextBlock Grid.Row="1" Grid.ColumnSpan="2" Style="{DynamicResource ValidationErrorTextBlock}"
Text="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}}}"
Visibility="{Binding ParamErrorMsg,
RelativeSource={RelativeSource AncestorType={x:Type EgtWPFLib5:StringParamV}},
Converter={StaticResource ErrorVisibilityConverter}}"
Margin="0,0,0,3"/>
</Grid>
</UserControl>