DataTemplate / ContentTemplate - exchange controls

Posted by Scott Olson on Stack Overflow See other posts from Stack Overflow or by Scott Olson
Published on 2010-04-15T15:11:08Z Indexed on 2010/04/15 15:13 UTC
Read the original article Hit count: 179

Filed under:
|
|

How can i solve the following (simplified) problem? M-V-VM context. I want to show text at the UI. In case the user has the rights to change the text, i want to use a textbox to manipulate the text. In case the user has no rights, i want to use a label to only show the text. My main problem: how to exchange textbox and label and bind Text resp. Content to the same property in viewmodel.

Thanks for your answers Toni

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml