c# - How to propagate changes done outside my View in a WPF app -
i have property called isvisible
:
public new bool isvisible { { return base.isvisible; } set { base.isvisible = value; this.raisepropertychanged ( "isvisible" ); } }
so property set true
when left mouse button down selected item in thetreeview
. works fine, have checkbox
trying bind same property, 2 way. whenever change property via left mouse button down, checkbox
shows isvisible state if it's true. works partially.
but problem is, each time when set property true instance, other layers' isvisible
property set false, checkbox
es don't show changes. still checked.
so whenever say:
layer.isvisible = true;
all other layers set false base class don't have access source code (shown above).
how can make app recognize change?
so hiding isvisible property of base class, doesn't implement inotifypropertychanged? checkboxes binding class (not base)?
can mimic behavior of base class iterating through necessary layers , making same changes own properties (which notify)?
Comments
Post a Comment