Click here to Skip to main content
15,903,362 members
Home / Discussions / WPF
   

WPF

 
Questioncalling webservice error Pin
arkiboys8-Dec-10 2:38
arkiboys8-Dec-10 2:38 
AnswerRe: calling webservice error Pin
Abhinav S8-Dec-10 19:28
Abhinav S8-Dec-10 19:28 
GeneralRe: calling webservice error Pin
arkiboys8-Dec-10 21:06
arkiboys8-Dec-10 21:06 
Questiontarget silverlight version Pin
arkiboys8-Dec-10 0:01
arkiboys8-Dec-10 0:01 
Questiondebug silverlight Pin
arkiboys7-Dec-10 23:28
arkiboys7-Dec-10 23:28 
AnswerRe: debug silverlight Pin
Vimalsoft(Pty) Ltd9-Dec-10 4:21
professionalVimalsoft(Pty) Ltd9-Dec-10 4:21 
GeneralRe: debug silverlight Pin
arkiboys9-Dec-10 4:36
arkiboys9-Dec-10 4:36 
QuestionExpander Control Pin
eddieangel7-Dec-10 10:48
eddieangel7-Dec-10 10:48 
I want to use an expander control to contain a shadowbox style filter user control. So the basic idea is to make the expander button look like a filter button, and upon pressing a grid with some controls in it will appear in the center of the current window while the rest of the window is overlaid with a semi-transparent grid.

All the code for this is easy enough, but I am having trouble with expanded width of the expander vs. collapsed width. I want something along these lines:

<Style
		x:Key="sbExpander"
		TargetType="{x:Type Expander}">
		<Style.Triggers>
			<Trigger
				Property="IsExpanded"
				Value="True">
				<Setter
					Property="Background"
					Value="Black" />
				<Setter
					Property="Opacity"
					Value=".8" />
                <Setter
                    Property="Width"
                    Value="760" />
                <Setter
                    Property="Height"
                    Value="760" />
            </Trigger>
		</Style.Triggers>
	</Style>


The expander control:

<Expander
                Grid.Row="0"
                Grid.Column="0"
                Grid.RowSpan="10"
                Grid.ColumnSpan="4"
                IsExpanded="False"
                HorizontalAlignment="Left"
                Width="20"
                ExpandDirection="Right"
                Style="{StaticResource sbExpander}">
                <Grid
                    Width="760"
                    Background="Black"
                    Opacity=".8">
                </Grid>
            </Expander>


The issue is that if the initial width of the expander is anything greater than 20 it overlays the rest of my controls and renders them unusable. I only want them unusable when the expander is expanded. So I really do want the collapsed expander control width to be 20 so that the controls under are available, while I want the expanded width to be 760 covering the entire window.

Thoughts?

Cheers, --EA
AnswerRe: Expander Control Pin
eddieangel7-Dec-10 12:26
eddieangel7-Dec-10 12:26 
Questiondll error Pin
arkiboys7-Dec-10 5:11
arkiboys7-Dec-10 5:11 
AnswerRe: dll error Pin
Praveen Raghuvanshi7-Dec-10 21:31
professionalPraveen Raghuvanshi7-Dec-10 21:31 
AnswerRe: dll error Pin
Abhinav S7-Dec-10 21:45
Abhinav S7-Dec-10 21:45 
QuestionFull screen aplication, how to make views? Pin
sxill6-Dec-10 9:46
sxill6-Dec-10 9:46 
AnswerRe: Full screen aplication, how to make views? Pin
Abhinav S6-Dec-10 17:50
Abhinav S6-Dec-10 17:50 
QuestionBinding the RichTextBox Pin
jadughar6-Dec-10 5:08
jadughar6-Dec-10 5:08 
AnswerRe: Binding the RichTextBox Pin
Abhinav S6-Dec-10 17:49
Abhinav S6-Dec-10 17:49 
GeneralRe: Binding the RichTextBox Pin
jadughar7-Dec-10 8:40
jadughar7-Dec-10 8:40 
GeneralRe: Binding the RichTextBox Pin
Mycroft Holmes7-Dec-10 11:19
professionalMycroft Holmes7-Dec-10 11:19 
GeneralRe: Binding the RichTextBox Pin
jadughar7-Dec-10 20:50
jadughar7-Dec-10 20:50 
GeneralRe: Binding the RichTextBox Pin
Mycroft Holmes7-Dec-10 22:21
professionalMycroft Holmes7-Dec-10 22:21 
GeneralRe: Binding the RichTextBox Pin
jadughar8-Dec-10 0:06
jadughar8-Dec-10 0:06 
AnswerRe: Binding the RichTextBox Pin
Pete O'Hanlon7-Dec-10 23:14
mvePete O'Hanlon7-Dec-10 23:14 
QuestionSilverlight 4.0 / VS2010 - Is it really that cool Pin
Roger1656-Dec-10 3:50
Roger1656-Dec-10 3:50 
AnswerRe: Silverlight 4.0 / VS2010 - Is it really that cool Pin
Abhinav S6-Dec-10 4:04
Abhinav S6-Dec-10 4:04 
QuestionWPF databinding - many to many - combobox, Entity Framework 4 [modified] Pin
Duke Carey6-Dec-10 2:49
professionalDuke Carey6-Dec-10 2:49 

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.