Skip to content

Conversation

@SamBent
Copy link
Contributor

@SamBent SamBent commented Mar 4, 2021

No description provided.

@SamBent SamBent requested a review from a team as a code owner March 4, 2021 00:08
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Mar 4, 2021
@ghost ghost requested review from fabiant3 and ryalanms March 4, 2021 00:08
Unless mentioned otherwise below, the tooltip is shown immediately and its size and position are governed by the placement properties described in [TO].

### Hover
A hover occurs when the mouse enters the parent element and stays there for a certain time, without any other activity.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or touch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Xaml, tooltips show with touch while the parent item is pressed. As soon as the user lifts up their finger, the tooltip closes. Similar behavior to mouse hover but requires more effort by the user :) Feels like the correct touch behavior for WPF to use as well.

The tooltip is opened after the hover time, whose value is a function of the `InitialShowDelay` and `BetweenShowDelay` properties, and whether another tooltip is already showing [TO].

### Keyboard focus
When you use keyboard navigation to move focus to the parent element, the tooltip opens.
Copy link

@MikeHillberg MikeHillberg Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only if the new ShowsToolTipOnKeyboardFocus property is set? But the other behaviors listed above are with/without that property?

(Just looking for clarifying text)

You can override this behavior using the `ShowsToolTipOnKeyboardFocus` properties.

### Keyboard shortcut
When the parent has keyboard focus, typing Ctrl+Shift+F10 opens the tooltip.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the app or the system has registered this key combo? Does the notification still reaches the app or this will be filtered out by the WPF framework? Is the app or the framework handling it first?
Also I assume we want this key combo to work for any app, written in whatever framework and language, so this hot key need to be identical across Microsoft products. Let's make sure we mention this to CELA.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CELA defined this key combo, based on the implementation already in Office apps. So Office suggested this combo, CELA approved the suggestion. This key combination is coming from the overall platform-agnostic guidance doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It comes from [FD], the spec that's driving "identical across MS products". CELA is probably the source.

Base automatically changed from master to main March 17, 2021 17:38
@SamBent SamBent merged commit bcfb0f3 into dotnet:main May 12, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants