c# - Accessing xaml elements in viewmodel and applying dynamic styles at runtime using wpf mvvm -
i need apply dynamic style button in viewmodel on basis of if else condition. have created 2 styles button in separata user controls using resourcedictionary same key. button in 1 usercontrol i.e. xaml. how dynamically apply styles using style tag , dynamicresource. how properties?
kindly suggest?
thanks
by sounds of things need use either multitriggers or multidatatriggers. can find out more multitriggers here , multidatatriggers here. triggers allow take different actions based on single or multiple condition(s).
hope helps.
Comments
Post a Comment