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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -