gridsplitter

Expander combined with GridSplitter

柔情痞子 提交于 2019-12-04 13:00:05
I’m trying to split my WPF window into two “areas”, top and bottom. The top area contains a grid. The bottom area contains an expander. Between the two areas should be a GridSplitter which the user can use to resize the areas. The content of each area should use the full high of the area. By default, the expander is expanded. When the user closes the expander, the bottom area should reduce its height to the height of the collapsed expander. This is my code: <Window x:Class="App.Shell" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx

GridSplitter resize next

不问归期 提交于 2019-12-04 05:52:11
问题 It seems I can't use GridSplitter to resize next item. Here is xaml: <Grid> <!-- this works --> <Grid Background="Gray" HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="100" /> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="auto" /> </Grid.ColumnDefinitions> <GridSplitter Grid.Column="1" Width="10" ResizeBehavior="PreviousAndNext" /> </Grid> <!-- this doesn't --> <Grid Background="Gray" HorizontalAlignment="Right"> <Grid.ColumnDefinitions>

WPF - GridSplitter with three columns

北战南征 提交于 2019-12-03 23:31:42
I have an app with grid with 3 columns. The grid splitter between the first and second columns works just fine. To get the splitter over to be between the second and third columns I made a column for the splitter. (So now the the third column is really the fourth.) When I resize the other columns also shrink. I assume that is because I have them set to be relative sized. But I don't know how to fix it. Here is a XAML Pad Ready example of my issue. Plug this into XAML pad and then try to resize the last column to be smaller. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation

WPF SharedSizeGroup GridSplitter Issue

陌路散爱 提交于 2019-12-03 14:27:06
I wish to use a Grid for my top level layout. The Grid will have 1 column and n rows. Each row in the Grid should also contain a Grid which shall have 3 columns and 1 row. In the second column is a GridSplitter and I am trying to use a SharedSizeGroup so that this changes the size of the first column across all of the nested Grids. Here is what i have...and it works!!...well kind of...if you click the splitter and resize without letting go it works...but for some reason if you resize something and let go of the mouse and then attempt to resize using a different row it seems to "stick". Any

Grid Splitter problem in WPF

↘锁芯ラ 提交于 2019-12-03 05:40:08
I want a layout like VS 2008. In which I want two columns and second columns is again split into two. I done that in the xaml mentioned below, but the GridSplitter is not visible vertically ( which split two columns). I want both the GridSplitter s to be resizable. One GridSplitter resizes the Left Hand Pane and Right Hand Pane and another GridSplitter resizes the subgrid's top pane and right pane.. The Second GridSplitter is working through this XAML but I am not able to produce XAML code that Splits the Right hand Pane and Left hand pane.. Pleas Help!! <Window x:Class="AlarmUI_2.Window1"

GridSplitter resize next

折月煮酒 提交于 2019-12-02 07:32:31
It seems I can't use GridSplitter to resize next item. Here is xaml: <Grid> <!-- this works --> <Grid Background="Gray" HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="100" /> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="auto" /> </Grid.ColumnDefinitions> <GridSplitter Grid.Column="1" Width="10" ResizeBehavior="PreviousAndNext" /> </Grid> <!-- this doesn't --> <Grid Background="Gray" HorizontalAlignment="Right"> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="100" /> </Grid

WPF GridSplitter

折月煮酒 提交于 2019-11-30 20:00:22
问题 I am experiencing weird behaviour whilst using the WPF GridSplitter. I have the appropriate HorizontalAlignment properties set to stretch and when I resize them the GridSplitter jumps around, sometimes going back to their original positions or just jumping around as I drag them..... Does anyone else seen or know what may be causing this? Thanks Here is the XAML <GridSplitter x:Name="grdTreeSplitter" Grid.Row ="1" BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"

Combine expander and grid (resizable expander)

喜欢而已 提交于 2019-11-27 09:25:34
I would like to have something like a resizable Expander. My basic idea was something like this: <Grid HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="2" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Expander Grid.Column="0" ExpandDirection="Right"> ... </Expander> <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" /> ... </Grid> The problem with this: if i move the grid splitter and collaps the expander i got a big empty area. How can make the entire column collapse? Or is there another

Combine expander and grid (resizable expander)

廉价感情. 提交于 2019-11-26 14:42:27
问题 I would like to have something like a resizable Expander. My basic idea was something like this: <Grid HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="2" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Expander Grid.Column="0" ExpandDirection="Right"> ... </Expander> <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" /> ... </Grid> The problem with this: if i move the grid splitter and