Reputation: 393
I need to apply dynamic style to my button in ViewModel on the basis of if else condition. I have created 2 styles for the button in separata user controls using ResourceDictionary with the same Key. This button is in one usercontrol i.e. xaml. How to dynamically apply the styles using style tag and DynamicResource. How to do this with properties?
Kindly Suggest?
Thanks
Upvotes: 1
Views: 686