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? I believe that the default WPF commands do not have that property because a
Should I make my own command class, or is it considered bad behavior?
public class delayed commmax: Delayed Commands {public string tooltip {get; Set; }}
ToolTip should not have a string in the WPF - this is the one Object, a control, a group of controls, etc.
Comments
Post a Comment