|
35 | 35 | />
|
36 | 36 | <TextBlock Text="{Binding Path=(wpf:TextFieldAssist.Hint), RelativeSource={RelativeSource TemplatedParent}}"
|
37 | 37 | Visibility="{TemplateBinding Text, Converter={StaticResource TextFieldHintVisibilityConverter}}"
|
| 38 | + IsHitTestVisible="False" |
38 | 39 | x:Name="Hint"
|
39 | 40 | Margin="1 0 1 0"
|
40 | 41 | Opacity="{Binding Path=(wpf:TextFieldAssist.HintOpacity), RelativeSource={RelativeSource TemplatedParent}}"/>
|
|
123 | 124 | <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"
|
124 | 125 | />
|
125 | 126 | <TextBlock Text="{Binding Path=(wpf:TextFieldAssist.Hint), RelativeSource={RelativeSource TemplatedParent}}"
|
| 127 | + IsHitTestVisible="False" |
126 | 128 | FontSize="{TemplateBinding FontSize}"
|
127 | 129 | HorizontalAlignment="Left"
|
128 | 130 | VerticalAlignment="Top"
|
|
140 | 142 | <BeginStoryboard x:Name="MoveHintBackStoryboard_BeginStoryboard" Storyboard="{StaticResource MoveHintBackStoryboard}"/>
|
141 | 143 | </Trigger.ExitActions>
|
142 | 144 | </Trigger>
|
| 145 | + |
143 | 146 | <MultiTrigger>
|
144 | 147 | <MultiTrigger.Conditions>
|
145 | 148 | <Condition Property="wpf:TextFieldAssist.IsNullOrEmpty" Value="False" />
|
146 | 149 | <Condition Property="IsKeyboardFocused" Value="True" />
|
147 | 150 | </MultiTrigger.Conditions>
|
148 | 151 | <Setter TargetName="Hint" Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" />
|
149 | 152 | </MultiTrigger>
|
| 153 | + |
150 | 154 | <Trigger Property="IsEnabled" Value="false">
|
151 | 155 | <Setter Property="Opacity" TargetName="border" Value="0.56"/>
|
152 | 156 | </Trigger>
|
| 157 | + |
153 | 158 | <Trigger Property="IsMouseOver" Value="true">
|
154 | 159 | <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
|
155 | 160 | </Trigger>
|
| 161 | + |
156 | 162 | <Trigger Property="IsKeyboardFocused" Value="true">
|
157 | 163 | <Setter TargetName="border" Property="Padding" Value="0 4 0 3"/>
|
158 | 164 | <Setter Property="BorderThickness" Value="0 0 0 2"/>
|
159 | 165 | <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
|
160 | 166 | </Trigger>
|
| 167 | + |
161 | 168 | <Trigger Property="Validation.HasError" Value="true">
|
162 | 169 | <Setter Property="BorderBrush" Value="{DynamicResource ValidationErrorBrush}"/>
|
163 | 170 | </Trigger>
|
|
0 commit comments