Skip to content

TextBox HelperText Collapsed #3191

Closed Answered by nicolaihenriksen
Frillaut asked this question in Q&A
Discussion options

You must be logged in to vote

@Frillaut Interesting find! And your assumption is spot on. This is the helper text "area" causing the IsMouseOver to become true.

One option could be to set IsHitTestVisible on the "FooterGrid" (see code). I'm not sure why anyone would ever want the "focus" to trigger when hovering a visible helper text; I'd only expect it when hovering the "standard content" of the TextBox control.

The above of course requires a change to the library. So as a temporary solution, you could try to override the HintAssist.HelperTextStyle and set that to IsHitTestVisible=false:

<StackPanel>
  <StackPanel.Resources>
    <Style x:Key="CustomHelperTextStyle" TargetType="TextBlock" BasedOn="{StaticResource {x:T…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Frillaut
Comment options

You must be logged in to vote
2 replies
@nicolaihenriksen
Comment options

@sabuncumurat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants