silverlight - How to bind stackpanel visibility property -


hi new silverlight 4. have 2 radio buttons in views name internal , external in stackpanel1,which binded view model. in stackpanel2 have textblock , button. need when select internal radio button stackpanel2 should visible , on external selection stackpanel2 should invisible. how bind stackpanel2 visibility property viewmodel. pls solve ma problem possible.

you have add new visibility property in data model , bind property stackpanel visibility property, further can bind boolean property have need of converter. converters in silverlight convert assigned value value of property type.

you can learn how build converter here. http://weblogs.asp.net/dwahlin/archive/2009/08/15/so-what-s-a-silverlight-value-converter-anyway.aspx


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -