There is a TextBox on window whose value is binded to view model property (simple, usual binding).
<TextBox x:Name="textBoxName" Text="{Binding Name}"/>
Now I need to show on the TextBox either the value coming from binding or empty string depending on RadioButton value on the same window (and view model).
One idea to achieve the goal is to programmatically clear the binding, set empty value, and later set the binding again. But I guess this is not a good solution.
I'm new to WPF and MVVM and would like to hear how this should be done properly (in "MVVM way")?
 
     
    
