c# - WPF Expander IsExpanded binding -


I have limited the code with expander IsExpanded property Mvvm model In bool The binding works fine until the extension does not touch the extension, after clicking on the arrow in the expander, the binding stops working. To show incorrectly in the model, bool does not fall for the Explorer by setting ShowPreview.

  & lt; Expander Name = "pExpander" IsExpanded = "{Binding Path = Show Preview, Mode = Wanted}" Header = "Preview" & gt; & Lt; TextBlock Text = "{Binding Path = Message, Mode = Options}" & gt; & Lt; / TextBlock & gt; & Lt; / Expander & gt;  

If you remove mode = single problem?

After reading your other CTIC (do not affect the change model in GUI), I have no good suggestions on how to limit the change seen by the underlying data. What's the difference between:

  myModel.MyProperty = true; // in the *   

and

  myModel.MyProperty = true; // is a compulsive  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -