Click here to Skip to main content
15,906,097 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Data validation and ObservableCollection Pin
RugbyLeague15-Dec-10 3:32
RugbyLeague15-Dec-10 3:32 
Questionwcf communication error Pin
arkiboys13-Dec-10 23:55
arkiboys13-Dec-10 23:55 
AnswerRe: wcf communication error Pin
Abhinav S14-Dec-10 3:29
Abhinav S14-Dec-10 3:29 
GeneralRe: wcf communication error Pin
arkiboys14-Dec-10 3:36
arkiboys14-Dec-10 3:36 
GeneralRe: wcf communication error Pin
Abhinav S14-Dec-10 5:47
Abhinav S14-Dec-10 5:47 
AnswerRe: wcf communication error Pin
InfRes15-Dec-10 0:19
InfRes15-Dec-10 0:19 
QuestionCollapse Expander Programatically Pin
eddieangel13-Dec-10 7:18
eddieangel13-Dec-10 7:18 
AnswerRe: Collapse Expander Programatically Pin
Ian Shlasko13-Dec-10 8:59
Ian Shlasko13-Dec-10 8:59 
Generally, the way you would set this up to ensure that the binding ALWAYS stays synchronized, would be a TwoWay binding with a property like this:

private bool _isExpanded = false;
public bool IsExpanded {
  get { return _isExpanded; }
  set { _isExpanded = value; OnPropertyChanged("IsExpanded"); }
}


The underscore prefix is just how I usually do private variables... And if you want it to be more efficient, you can have the setter first make sure the value is actually changing...

But anyway, if you set up the property like that, you really never have to worry about, say, forgetting to do an OnPropertyChanged notification.

That said, I don't see anything wrong in the code you posted, from a functionality standpoint. The problem might be elsewhere. If you're replacing the template in sbExpander, that might be a potential trouble spot.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

GeneralRe: Collapse Expander Programatically Pin
eddieangel13-Dec-10 9:44
eddieangel13-Dec-10 9:44 
QuestionLoading the history/journal of several pages at start-up Pin
alleyes13-Dec-10 3:50
professionalalleyes13-Dec-10 3:50 
Questionresources in navigation pages Pin
arkiboys12-Dec-10 23:35
arkiboys12-Dec-10 23:35 
Questiondatagrid2 within datagrid1 Pin
arkiboys12-Dec-10 22:02
arkiboys12-Dec-10 22:02 
AnswerRe: datagrid2 within datagrid1 Pin
Abhinav S12-Dec-10 22:08
Abhinav S12-Dec-10 22:08 
GeneralRe: datagrid2 within datagrid1 Pin
arkiboys12-Dec-10 22:49
arkiboys12-Dec-10 22:49 
GeneralRe: datagrid2 within datagrid1 Pin
Abhinav S13-Dec-10 4:04
Abhinav S13-Dec-10 4:04 
GeneralRe: datagrid2 within datagrid1 Pin
arkiboys13-Dec-10 7:46
arkiboys13-Dec-10 7:46 
GeneralRe: datagrid2 within datagrid1 Pin
Abhinav S14-Dec-10 3:30
Abhinav S14-Dec-10 3:30 
QuestionListView populating question Pin
Richard Andrew x6412-Dec-10 9:07
professionalRichard Andrew x6412-Dec-10 9:07 
AnswerRe: ListView populating question Pin
Richard Andrew x6412-Dec-10 16:01
professionalRichard Andrew x6412-Dec-10 16:01 
GeneralRe: ListView populating question Pin
Mycroft Holmes12-Dec-10 18:02
professionalMycroft Holmes12-Dec-10 18:02 
GeneralRe: ListView populating question Pin
Richard Andrew x6413-Dec-10 4:16
professionalRichard Andrew x6413-Dec-10 4:16 
Questionpixels protected error domain Pin
geoderek9-Dec-10 11:35
geoderek9-Dec-10 11:35 
AnswerRe: pixels protected error domain Pin
Abhinav S9-Dec-10 18:38
Abhinav S9-Dec-10 18:38 
GeneralRe: pixels protected error domain Pin
geoderek12-Dec-10 5:08
geoderek12-Dec-10 5:08 
GeneralRe: pixels protected error domain Pin
Abhinav S12-Dec-10 18:10
Abhinav S12-Dec-10 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.