Cancel Selcted Event but invoke the Command

10 בNovember 2015

The challenge  here is relevant for several scenarios, like validation , hooking, etc. when pressing on a button we can invoke the bind command but ignore the selection event, while doing it in a attach property like this one we can keep the MVVM pattern clean . the command is actually get fired ,but the button stays calm. It is also usable in every other control who let us fire the command on mouse enter like in interactions-trigger but block the other items in the chain. public static class CancelClickAction { public static readonly DependencyProperty OnClickProperty =...
אין תגובות