Click here to Skip to main content
15,889,096 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: ZoomIn and zoomout Pin
Mark Salsbery6-Jan-10 8:49
Mark Salsbery6-Jan-10 8:49 
AnswerRe: ZoomIn and zoomout Pin
April Fans6-Jan-10 19:14
April Fans6-Jan-10 19:14 
QuestionHide controlbox or customize controlbox of WPF window [modified] Pin
Member 26504535-Jan-10 18:34
Member 26504535-Jan-10 18:34 
QuestionDatabinding and Value Converter questions Pin
Michael Eber4-Jan-10 10:39
Michael Eber4-Jan-10 10:39 
AnswerRe: Databinding and Value Converter questions Pin
Abhinav S4-Jan-10 16:05
Abhinav S4-Jan-10 16:05 
GeneralRe: Databinding and Value Converter questions Pin
Michael Eber5-Jan-10 6:27
Michael Eber5-Jan-10 6:27 
GeneralRe: Databinding and Value Converter questions Pin
Abhinav S5-Jan-10 17:00
Abhinav S5-Jan-10 17:00 
QuestionGridSplitter Behaviour Pin
rj_hogan4-Jan-10 5:35
rj_hogan4-Jan-10 5:35 
Hello,

I'm studying for the WPF exam and playing with the different setting in the GridSplitter control and one of the behaviours makes no sense to me.

Here is the XAML:

<Grid Name="grid1">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="100" />
        <ColumnDefinition Width="5"/>
        <ColumnDefinition Width="173"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition />
    </Grid.RowDefinitions>
    <ListBox Name="listbox1" Grid.Column="0" SelectionChanged="listbox1_SelectionChanged"></ListBox>
    <GridSplitter Name="gridsplitter1" Margin="0" Width="5" Grid.Column="1" Grid.RowSpan="2" ResizeBehavior="PreviousAndNext"  HorizontalAlignment="Left" VerticalAlignment="Stretch"/>
    <RichTextBox Grid.Column="2" Name="richtextbox1" />
    <TextBox Grid.Column="0" Grid.Row="1"/>
    <TextBox Grid.Column="2" Grid.Row="1"/>
</Grid>


When I use the splitter it resizes the previous column (0) but not the next (2), it just trundles across the window not changing size.

I know I can get the desired behaviour by just changing the third column to a proportional size but then it's the proportioning that is changing the column size not the splitter (and I'd get the same result if I put it back the ResizeBehavior to the default "BasedOnAlignment").

What am I missing here? Or is there no point to the PreviousAndNext setting?

Thanks,

Robert.
Robert
AnswerRe: GridSplitter Behaviour Pin
Pete O'Hanlon4-Jan-10 9:25
mvePete O'Hanlon4-Jan-10 9:25 
GeneralRe: GridSplitter Behaviour Pin
rj_hogan5-Jan-10 0:46
rj_hogan5-Jan-10 0:46 
GeneralRe: GridSplitter Behaviour Pin
Pete O'Hanlon5-Jan-10 2:16
mvePete O'Hanlon5-Jan-10 2:16 
QuestionWWF Pin
Ramkumar_S3-Jan-10 14:36
Ramkumar_S3-Jan-10 14:36 
AnswerRe: WWF Pin
ProtoBytes4-Jan-10 3:52
ProtoBytes4-Jan-10 3:52 
QuestionHow to animate To/From an Auto value? Pin
spiritboy3-Jan-10 8:04
spiritboy3-Jan-10 8:04 
AnswerRe: How to animate To/From an Auto value? Pin
Abhinav S3-Jan-10 16:39
Abhinav S3-Jan-10 16:39 
Questioncreating GridViewColumn.CellTemplate via C# ? Pin
Mohammad Dayyan2-Jan-10 23:43
Mohammad Dayyan2-Jan-10 23:43 
QuestionDynamic data binding in WPF application Pin
anishshrestha2-Jan-10 5:57
anishshrestha2-Jan-10 5:57 
AnswerRe: Dynamic data binding in WPF application Pin
Pete O'Hanlon2-Jan-10 7:06
mvePete O'Hanlon2-Jan-10 7:06 
AnswerRe: Dynamic data binding in WPF application Pin
Mark Salsbery2-Jan-10 7:13
Mark Salsbery2-Jan-10 7:13 
GeneralRe: Dynamic data binding in WPF application Pin
anishshrestha2-Jan-10 8:36
anishshrestha2-Jan-10 8:36 
QuestionResolution setting in WPF Pin
Anu_Bala31-Dec-09 18:33
Anu_Bala31-Dec-09 18:33 
AnswerRe: Resolution setting in WPF Pin
Mark Salsbery1-Jan-10 9:10
Mark Salsbery1-Jan-10 9:10 
QuestionSilverlight combobox in aspx page Pin
Shivan Nandan31-Dec-09 18:32
Shivan Nandan31-Dec-09 18:32 
AnswerRe: Silverlight combobox in aspx page Pin
Mark Salsbery1-Jan-10 9:01
Mark Salsbery1-Jan-10 9:01 
AnswerRe: Silverlight combobox in aspx page Pin
April Fans6-Jan-10 19:12
April Fans6-Jan-10 19:12 

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.