Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Tooltips in WPF touch applications

$
0
0

Hi

We develop a big WPF application for touch. We need to choose and implement some tooltip infrastructure, but we are not sure what the best implementation approach is. Our application is “touch” application, so we don’t have mouse, don’t have “mouse enter” and “mouse leave” events. As I know, in touch applications we can’t just simply use the “ToolTip” property of some FrameworkElement. What we need to achieve three goals with tooltips:

Goal 1: Implement “tooltip mode” in the application. It means that there is some toggle button (always visible) on the main screen top corner, this toggle button indicates whether the application is now in tooltip mode or not. When this toggle button is toggled, the application is in “tooltip mode”, and this toggle button is untoggled, the application is in “regular mode” (not tooltip mode). When the application is in “tooltip mode” (the tooltip mode toggle button is toggled), touching (like pressing) some uielement (for example some button) will not do anything (will not act the button) but only show some tooltip near this uielement. When some tooltip is shown, touching (like pressing) in any place in the application will hide the tooltip.

Goal 2: The second think we need to implement is tooltips on disabled uielements, for example on disabled buttons, textboxes, and other uielements. When some uielement is disabled, and the user touches (like press) this uielement, the tooltip should be shown near this uielement. When some tooltip is shown, touching (like pressing) in any place in the application will hide the tooltip.

Goal 3: When on 1 and 2 the tooltip is seen, some border should be seen around the uielement that the tooltip is related to.

Question 1: What is the best approach of Microsoft to implement it tooltips in touch?

Question 2: What is the best approach to implement the described goals 1, 2, 3?

Question 3: Can the standard “Tooltip” property of some FrameworkElement be configured to act the described in goals 1, 2, 3 ways?

Thanks a lot for the answers.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>