gridsplitter

WPF SharedSizeGroup GridSplitter Issue

蓝咒 提交于 2019-12-09 11:18:41
问题 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

WPF GridSplitter - saving and restoring location AND splitting proportionately

≡放荡痞女 提交于 2019-12-09 05:27:48
问题 I am creating a 3-column UI with grid splitters between the columns. I have the requirement to save the sate of the columns so that if the user closes and reopens the app it looks just like they left it. But I am also trying to get the columns to split proportionately - by which I mean if you stretch the window, all three panels grow and if you move the left splitter it changes the division between the left and center columns. What I have currently achieves only the first requirement - it

WPF vertical gridsplitter not working

我是研究僧i 提交于 2019-12-08 16:53:36
问题 I have a vertical gridsplitter, but I get an horizontal one instead. here is my XAML <GroupBox Header="Phase Management"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="5"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="70*"/> <RowDefinition Height="30*"/> </Grid.RowDefinitions> <Button>Test column 0</Button> <GridSplitter Grid.Column="1" Width="5" HorizontalAlignment=

GridSplitter to Resize from Right - Odd Behaviour

血红的双手。 提交于 2019-12-08 02:23:32
问题 Using Kaxaml, resizing from the left works as expected. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> <Grid HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> </Grid.ColumnDefinitions> <GridSplitter Grid.Column="1" Width="5" Background="DarkGray"

Put resizable Expander to expand from right to left

时光总嘲笑我的痴心妄想 提交于 2019-12-07 05:11:06
问题 I would like to have the Expander from question below (see the accepted answer) which is a perfect solution for me. I just want to have it on the right side. Combine expander and grid (resizable expander) To have it expanded from right to left I changed the settings for an analoguous behavior. (I emphasized elements to see better what's going on): <Expander Grid.Column="1" Header="Test" ExpandDirection="Left" BorderThickness="10" BorderBrush="Black" HorizontalAlignment="Right" > <Expander

GridSplitter to Resize from Right - Odd Behaviour

痞子三分冷 提交于 2019-12-06 09:24:54
Using Kaxaml, resizing from the left works as expected. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid> <Grid HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> </Grid.ColumnDefinitions> <GridSplitter Grid.Column="1" Width="5" Background="DarkGray" HorizontalAlignment="Right"></GridSplitter> <Rectangle Grid.Column="0" Fill="Red" Height="100"/> <Rectangle

Expander combined with GridSplitter

隐身守侯 提交于 2019-12-06 07:28:23
问题 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=

Itemscontrol that arrange Items with Gridsplitter-Functionality

天大地大妈咪最大 提交于 2019-12-05 18:23:20
I need a layout that stacks Items horizontal or vertical. Each Item should be separated by a Splitter, so the User can change the Size (Like the Toolbox Container in VisualStudio) The Items come from a Model, so I need a ItemsControl where I can set the ItemsSource. My first idea was to build a CustomControl derived from Grid. Their I used the "OnVisualChildrenChanged" Method to react when a new Item is added. Then I wantet to add new Column-/Rowdefinitions (Depending wether it schould be horizontal or vertical). But here was the first Proplem. When the Grid is set to IsItemsHost="true" I get

WPF - GridSplitter with three columns

≯℡__Kan透↙ 提交于 2019-12-05 12:09:47
问题 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

Put resizable Expander to expand from right to left

て烟熏妆下的殇ゞ 提交于 2019-12-05 10:20:26
I would like to have the Expander from question below (see the accepted answer) which is a perfect solution for me. I just want to have it on the right side. Combine expander and grid (resizable expander) To have it expanded from right to left I changed the settings for an analoguous behavior. (I emphasized elements to see better what's going on): <Expander Grid.Column="1" Header="Test" ExpandDirection="Left" BorderThickness="10" BorderBrush="Black" HorizontalAlignment="Right" > <Expander.Content> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"