c# - Binding two Dependency properties in WPF -
i declare 2 dependency properties: first, filtercolor of type color , second filterbrush of type brush. need update value of filtercolor when filterbrush.color property has changed, , need update value of filterbrush.color when filtercolor property has changed. how can realize it?
bind 2 properties twoway binding , if change 1 in ui change other in properties setter , vice versa, , use inotifypropertychanged notify ui property changed.
Comments
Post a Comment