wpf - Is it Possible to add Hide the one property based on other property? -
in custom control have 3 properties(state,value,count), state property enum(dock,float,tab), if enum value(float) means want hide(browsable false) value property in wpf. there possibility propertychanged of state.
in setter state, check value is. if it's float hide, else unhide.
private stateenum _state; public stateenum state { { return _state; } set { if (value == stateenum.float) { // hide stuff } else { // show stuff } name = value; } }
Comments
Post a Comment