wpf - How to implement Command with Tooltip in MVVM? -


Most MVVM frameworks implement basic command patterns (for example, Delicate Commands in Prism), which uses Execute and Can Exact methods from View model.

However, I often have to add tooltips to the command. For example, I want to describe the purpose of an order or explain why this has been disabled.

Currently my tooltips are free, but this result is in code duplication of style definitions.

Is there a way to integrate tooltips with MVVM command pattern?
Should I make my own command class, or is it considered bad behavior? ToolTip property?

public class delayed commmax: Delayed Commands {public string tooltip {get; Set; }}

I believe that the default WPF commands do not have that property because a ToolTip should not have a string in the WPF - this is the one Object, a control, a group of controls, etc.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -