|
29 | 29 | </Setter.Value>
|
30 | 30 | </Setter>
|
31 | 31 | </Style>
|
| 32 | + |
| 33 | + <Style x:Key="MaterialDesignHelperTextBlock" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}"> |
| 34 | + <Setter Property="FontSize" Value="{Binding Path=(wpf:HintAssist.HelperTextFontSize), RelativeSource={RelativeSource Mode=TemplatedParent}}" /> |
| 35 | + <Setter Property="Opacity" Value="{Binding Path=(wpf:HintAssist.HintOpacity), RelativeSource={RelativeSource Mode=TemplatedParent}}" /> |
| 36 | + <Setter Property="Text" Value="{Binding Path=(wpf:HintAssist.HelperText), RelativeSource={RelativeSource Mode=TemplatedParent}}" /> |
| 37 | + </Style> |
32 | 38 |
|
33 | 39 | <Style x:Key="MaterialDesignTextBoxBase" TargetType="{x:Type TextBoxBase}">
|
34 | 40 | <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/>
|
|
53 | 59 | <Setter Property="wpf:TextFieldAssist.IncludeSpellingSuggestions" Value="{Binding RelativeSource={RelativeSource Self}, Path=(SpellCheck.IsEnabled)}" />
|
54 | 60 | <Setter Property="wpf:TextFieldAssist.CharacterCounterStyle" Value="{StaticResource MaterialDesignCharacterCounterTextBlock}" />
|
55 | 61 | <Setter Property="wpf:TextFieldAssist.CharacterCounterVisibility" Value="Visible" />
|
| 62 | + <Setter Property="wpf:HintAssist.HelperTextStyle" Value="{StaticResource MaterialDesignHelperTextBlock}" /> |
56 | 63 | <Setter Property="Template">
|
57 | 64 | <Setter.Value>
|
58 | 65 | <ControlTemplate TargetType="{x:Type TextBoxBase}">
|
|
249 | 256 | </Grid.ColumnDefinitions>
|
250 | 257 | <TextBlock
|
251 | 258 | x:Name="HelperTextTextBlock"
|
252 |
| - FontSize="{TemplateBinding wpf:HintAssist.HelperTextFontSize}" |
253 |
| - Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
254 |
| - Text="{TemplateBinding wpf:HintAssist.HelperText}" /> |
| 259 | + Style="{Binding Path=(wpf:HintAssist.HelperTextStyle), RelativeSource={RelativeSource TemplatedParent}}" /> |
255 | 260 | <Border Grid.Column="1" x:Name="CharacterCounterContainer">
|
256 | 261 | <TextBlock
|
257 | 262 | x:Name="CharacterCounterTextBlock"
|
|
0 commit comments