dotnet / dotnet/wpf

WPF FrameworkElement control - Add new DisabledTooltip and EnabledTooltip properties

Open
#9,410 3 comments 0 reactions 0 assignees View on GitHub
:mailbox_with_no_mail: waiting-author-feedback
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/WPF-FrameworkElement-control---Add-new-D/10120804)._

---
WPF has a FrameworkElement control. Button is one of the controls that inherits from it, but I think it would be better to have this change on the FrameworkElement parent.
**Requested New Properties** - Would love to have DisabledTooltip and EnabledTooltip properties added. If Tooltip is blank then use DisabledTooltip or EnabledTooltip depending on the current state. I would suggest protecting against showing hidden or collapsed buttons.
**Reason:** Often I need the ToolTip to show reasons why the button is disabled or tell the user how to get the data in a state for this to become enabled. Often I need ToolTip to tell the user what the enabled button does which is often a different message.
**Impact** - None, since we are adding 2 new properties and not changing the existing interface of the controls.

---
### Original Comments

#### Feedback Bot on 8/16/2022, 02:46 PM:

(private comment, text removed)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.