Click here to Skip to main content
15,888,527 members
Home / Discussions / WPF
   

WPF

 
Questionhow can I apply textblock properties to Path??? Pin
urooj_mahmood28-Apr-10 21:50
urooj_mahmood28-Apr-10 21:50 
AnswerRe: how can I apply textblock properties to Path??? Pin
Abhinav S29-Apr-10 18:34
Abhinav S29-Apr-10 18:34 
GeneralRe: how can I apply textblock properties to Path??? Pin
urooj_mahmood29-Apr-10 20:24
urooj_mahmood29-Apr-10 20:24 
AnswerRe: how can I apply textblock properties to Path??? Pin
Abhinav S30-Apr-10 18:45
Abhinav S30-Apr-10 18:45 
GeneralRe: how can I apply textblock properties to Path??? Pin
urooj_mahmood2-May-10 20:16
urooj_mahmood2-May-10 20:16 
AnswerRe: how can I apply textblock properties to Path??? Pin
Abhinav S2-May-10 21:04
Abhinav S2-May-10 21:04 
GeneralRe: how can I apply textblock properties to Path??? Pin
urooj_mahmood2-May-10 22:08
urooj_mahmood2-May-10 22:08 
QuestionWPF : Collapsing the visibility of a grid [modified] Pin
Prasoon Chaudhary28-Apr-10 20:43
Prasoon Chaudhary28-Apr-10 20:43 
I've three grids inside a main grid as following:

<Grid Margin="10,10,10,10" Background="#FFE8E8E8">
	<Grid.ColumnDefinitions>
		<ColumnDefinition Width="0.2*" />
		<ColumnDefinition Width="0.5*" />
		<ColumnDefinition Width="0.3*" />
	</Grid.ColumnDefinitions>
	<Grid x:Name="RedGrid" Margin="0,0,0,0" Grid.Column="0" Background="Red"/>
	<GridSplitter Width="4" VerticalAlignment="Stretch" Grid.Column="0"/>
	<Grid x:Name="GreenGrid" Margin="0,0,0,0" Grid.Column="1" Background="Green"/>
	<GridSplitter Width="4" VerticalAlignment="Stretch" Grid.Column="1"/>
	<Grid x:Name="BlueGrid" Margin="0,0,0,0" Grid.Column="2" Background="Blue"/>			
</Grid>


I need two behaviors 'CollapseRed' and 'CollapseBlue'. CollapseRed - should collapse RedGrid(left) panel, and then GreenGrid(centre) panel should automatically cover the space on the left side. CollapseBlue - should collapse BlueGrid(right) panel, and then GreenGrid(Centre) panel should automatically cover the space on the right side. Grids are resizable with grid-splitters, and so, we should be able to make it visible again at same place/width by using separate behaviors.

Simple 'Visibility.Collapse' is not working. What change should I make in XAML, and what should be code in C#? Should I use other panels? If yes, please suggest.

So basically, I need functionality somewhat similar to SplitContainer of WinForms, where we can just on/off/change orientation of BlueGrid panel. And, Green panel adjusts accordingly.

modified on Thursday, April 29, 2010 4:20 AM

AnswerRe: WPF : Collapsing the visibility of a grid Pin
Arun Jacob28-Apr-10 21:00
Arun Jacob28-Apr-10 21:00 
GeneralRe: WPF : Collapsing the visibility of a grid Pin
Prasoon Chaudhary28-Apr-10 21:22
Prasoon Chaudhary28-Apr-10 21:22 
AnswerRe: WPF : Collapsing the visibility of a grid Pin
Arun Jacob28-Apr-10 22:47
Arun Jacob28-Apr-10 22:47 
GeneralRe: WPF : Collapsing the visibility of a grid Pin
Prasoon Chaudhary29-Apr-10 1:32
Prasoon Chaudhary29-Apr-10 1:32 
QuestionDialog window in a class library Pin
USAFHokie8028-Apr-10 9:12
USAFHokie8028-Apr-10 9:12 
AnswerRe: Dialog window in a class library [modified] Pin
Pete O'Hanlon28-Apr-10 9:40
mvePete O'Hanlon28-Apr-10 9:40 
GeneralRe: Dialog window in a class library Pin
USAFHokie8028-Apr-10 9:56
USAFHokie8028-Apr-10 9:56 
GeneralRe: Dialog window in a class library Pin
Pete O'Hanlon28-Apr-10 10:00
mvePete O'Hanlon28-Apr-10 10:00 
GeneralRe: Dialog window in a class library Pin
#realJSOP3-May-10 7:25
mve#realJSOP3-May-10 7:25 
QuestionCatatsrtophic Failure Exception Pin
#realJSOP27-Apr-10 6:04
mve#realJSOP27-Apr-10 6:04 
AnswerRe: Catatsrtophic Failure Exception Pin
Abhinav S27-Apr-10 7:30
Abhinav S27-Apr-10 7:30 
GeneralRe: Catatsrtophic Failure Exception Pin
#realJSOP27-Apr-10 8:10
mve#realJSOP27-Apr-10 8:10 
AnswerRe: Catatsrtophic Failure Exception Pin
Kunal Chowdhury «IN»27-Apr-10 8:43
professionalKunal Chowdhury «IN»27-Apr-10 8:43 
GeneralRe: Catatsrtophic Failure Exception Pin
#realJSOP27-Apr-10 10:15
mve#realJSOP27-Apr-10 10:15 
GeneralRe: Catatsrtophic Failure Exception Pin
Vimalsoft(Pty) Ltd26-May-11 1:49
professionalVimalsoft(Pty) Ltd26-May-11 1:49 
QuestionHow to scale children to container sze [SOLVED] Pin
#realJSOP27-Apr-10 3:59
mve#realJSOP27-Apr-10 3:59 
AnswerRe: How to scale children to container sze [SOLVED] Pin
Kunal Chowdhury «IN»27-Apr-10 8:44
professionalKunal Chowdhury «IN»27-Apr-10 8:44 

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.