|
151 | 151 | Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
152 | 152 | Visibility="{TemplateBinding wpf:TextFieldAssist.HasLeadingIcon, Converter={x:Static converters:BooleanToVisibilityConverter.CollapsedInstance}}" /> |
153 | 153 |
|
154 | | - <TextBlock x:Name="PrefixTextBlock" |
155 | | - Grid.Column="1" |
156 | | - Margin="0,0,2,0" |
157 | | - VerticalAlignment="Center" |
158 | | - FontSize="{TemplateBinding FontSize}" |
159 | | - Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
160 | | - Text="{TemplateBinding wpf:TextFieldAssist.PrefixText}"> |
161 | | - <TextBlock.Visibility> |
162 | | - <MultiBinding Converter="{StaticResource PrefixSuffixTextVisibilityConverter}"> |
163 | | - <Binding ElementName="Hint" Path="IsHintInFloatingPosition" /> |
164 | | - <Binding Path="(wpf:TextFieldAssist.PrefixText)" RelativeSource="{RelativeSource TemplatedParent}" /> |
165 | | - <Binding Path="(wpf:TextFieldAssist.PrefixTextVisibility)" RelativeSource="{RelativeSource TemplatedParent}" /> |
166 | | - <Binding Path="IsKeyboardFocusWithin" RelativeSource="{RelativeSource TemplatedParent}" /> |
167 | | - <Binding Path="IsReadOnly" RelativeSource="{RelativeSource TemplatedParent}" Converter="{x:Static converters:InvertBooleanConverter.Instance}" /> |
168 | | - </MultiBinding> |
169 | | - </TextBlock.Visibility> |
170 | | - </TextBlock> |
171 | | - |
172 | 154 | <ScrollViewer x:Name="PART_ContentHost" |
173 | 155 | Grid.Column="2" |
174 | 156 | HorizontalAlignment="Stretch" |
|
237 | 219 | </wpf:SmartHint.Hint> |
238 | 220 | </wpf:SmartHint> |
239 | 221 |
|
| 222 | + <TextBlock x:Name="PrefixTextBlock" |
| 223 | + Grid.Column="1" |
| 224 | + Margin="0,0,2,0" |
| 225 | + VerticalAlignment="Center" |
| 226 | + FontSize="{TemplateBinding FontSize}" |
| 227 | + Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
| 228 | + Text="{TemplateBinding wpf:TextFieldAssist.PrefixText}"> |
| 229 | + <TextBlock.Visibility> |
| 230 | + <MultiBinding Converter="{StaticResource PrefixSuffixTextVisibilityConverter}"> |
| 231 | + <Binding ElementName="Hint" Path="IsHintInFloatingPosition" /> |
| 232 | + <Binding Path="(wpf:TextFieldAssist.PrefixText)" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 233 | + <Binding Path="(wpf:TextFieldAssist.PrefixTextVisibility)" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 234 | + <Binding Path="IsKeyboardFocusWithin" RelativeSource="{RelativeSource TemplatedParent}" /> |
| 235 | + <Binding Path="IsReadOnly" RelativeSource="{RelativeSource TemplatedParent}" Converter="{x:Static converters:InvertBooleanConverter.Instance}" /> |
| 236 | + </MultiBinding> |
| 237 | + </TextBlock.Visibility> |
| 238 | + </TextBlock> |
| 239 | + |
240 | 240 | <TextBlock x:Name="SuffixTextBlock" |
241 | 241 | Grid.Column="3" |
242 | 242 | Margin="2,0,0,0" |
|
0 commit comments