Click here to Skip to main content
15,895,538 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Data validation and ObservableCollection Pin
BC3Tech15-Dec-10 3:25
BC3Tech15-Dec-10 3:25 
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 
I have an expander control that contains search fields, the idea being that when the user wants to filter records they press the filter button the expander control lightboxes the screen so the user can choose from drop downs and then press search. When the user presses the search button, I want the expander to collapse, this is about what it all looks like:

XAML for expander:

<Expander
                    HorizontalAlignment="Left"
                    ExpandDirection="Right"
                    IsExpanded="{Binding IsExpanded, Mode=OneWay}"
                    Style="{StaticResource sbExpander}">


Viewmodel:

public bool IsExpanded { get; private set; }

private void Search()
		{
			...<other code is here>
			IsExpanded = false;
			OnPropertyChanged("IsExpanded");
		}



Is there any reason this should not work? On the loading of the window the IsExpanded = false works correctly, but the search triggering the IsExpanded = false does not work. Thoughts?

Cheers and Merry Christmas, --EA
AnswerRe: Collapse Expander Programatically Pin
Ian Shlasko13-Dec-10 8:59
Ian Shlasko13-Dec-10 8:59 
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 

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.