gridsplitter

WPF: Trigger a content resize with GridSplitter

I'm trying to force a grid/expander to reevaluate whether it needs a scrollbar, as it's showing emptiness. I'm using this layout: <Grid> <toolstrip /> <!-- fixed height row --> <Scrollviewer> <!-- * height --> <Grid> <!-- all rows are 'Auto' height --> <Expander /> <Expander> <!-- this one stretches far too high --...

auto resize width of treeview with a gridsplitter

Hi, I have a silverlight3.0 aplication with a Grid. The XAML is below. I'd like to have the TreeView control resize and content wrapped when the user changes the width of the left column. Currently the treeview displays a scrollbar instead of wrapping. On the right column this works fine as there isno treeview but stackpanel. The same...

How to toggle a WPF Grid column visibility

I'm having some trouble getting this to work in a WPF app I'm working on. Basically, what I'm after is something like the Task pane in an MMC: The app has three columns in the main part of the display. I need a column on the right side which is resizable. I presume this means using a Grid with a GridSplitter but anything that works ...

WPF GridSplitter to split/resize two ListBox's?

I've got a grid that has 7 rows in it. Row 0 is a group of 2 buttons Row 1 is a ListBox of objects Row 2 is a group of 3 buttons Row 3 is a group of 2 buttons Row 4 is where my GridSplitter lives Row 5 is a group of 2 buttons Row 6 is a ListBox of objects I want the GridSplitter to slide up and down, resizing each of the two ListBox's. ...

How do I get WPF GridSplitter controls working inside an ItemsControl?

Hi all, Could anyone possibly explain to me why the following simple example works: <ItemsControl x:Class="UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <ItemsControl.ItemsPanel> <ItemsPanelTemplate> ...

Styling GridSplitter wpf C#

i want to style my GridSplitter like adding dots on it (as found on http://msdn.microsoft.com/en-us/library/aa970265.aspx). i also want to change gridsplitter color on mouseOver, or apply Aero Theme. <Style x:Key="GridSplitterStyle1" TargetType="{x:Type GridSplitter}"> <Setter Property="Background" Value="{DynamicResource {...

WPF SharedSizeGroup GridSplitter Issue

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...

Silverlight GridSplitter: simulate "snap to grid"

I am working with Silverlight 3. I have a grid with 2 columns and with a GridSplitter between them. How do I make the GridSplitter snap to 5px increment when dragged? Thank you. ...

WPF - GridSplitter with three columns

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 becaus...

How do you programmatically adjust the horizontal divider of a PropertyGrid control?

I am using a .NET PropertyGrid control in my C# project. When the form containing the grid loads, the horizontal splitter (which divides the Settings from the Description) is at a default position. How do I change the position of that splitter programmatically in C#? ...

ItemsPanel vs Grid vs GridSplitter

I am currently trying to build a ControlTemplate for an ItemsControl that uses the Grid as its ItemsPanel where each item is stacked horizontally and delimited with a GridSplitter. The basic goal is to have a dynamic bindable ItemsControl where all items stack up in a row and where each item can be resized with a splitter. There are ...

Increase WPF GridSplitter mouse grabbing threshold

Is it possible to increase the distance from a grid splitter from which the user can grab it? My splitter is only 1px in width. I would like to be able to grab the splitter from a greater distance. As it is now i must point the mouse on the exact 1px line to grab it. And the splitter must still be 1px in width ...

WPF unwanted grid splitter behaviour

Hello, I have a simple grid with 3 columns (one of which contains a grid splitter). When resizing the grid and the left column reaches its minimum width, instead of doing nothing it increases the width of the right column. Could anyone help me stop this? I can't set the max width of the right column, because the grid itself also resize...

WPF Grid : GridSplitter event

Hi, I need to put a event while resizing grid columns using a gridsplitter. I tried using 'sizeChanged' event on the columns getting affected. But its not working Please tell me how to do that Thanks ...

Why does my GridSplitter not work at all?

I'm migrating a WinForms app to WPF. Everything has gone well so far except in relation to my attempts to use GridSplitter which I can never seam to make resize anything at run-time. To make sure it wasn't just my code I attempted to compile the GridSplitter sample from LearnWPF.com and it doesn't appear to work either. I am expecting t...

Problem with GridSplitter not resizing content

Hi, First off I'm new to XAML so forgive me if I've done something stupid. I have stripped down my page to the following example XAML (viewable in XamlPad): <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xam...

How can I prevent the grid splitter from resizing a column outside of the window bounds?

I have the XAML shown below (for example). If you drag the grid splitter as far as it goes to the left, and keep dragging the mouse, the right-hand column will grow in size outside the bounds of the window - obviously not what I want. The problem is that I can't set a hard MaxWidth on the right-hand column because the user can resize th...

SL4 datagrid with datapager and gridsplitter

Hi All, I have a grid with two Rows and a GridSplitter. In the first Row I have a StackPanel which has the DataPager and DataGrid in it. In the second Row I have the Expander Control vertically bottom aligned and Expand Direction Upward. The idea that the DataGrid will occupy all the space (vertically stretch) of both Rows but when th...

DataGrid and GridSplitter in Silverlight 4

Hi All, I have a grid with tow rows splitting with the gridsplitter. In first row I'm showing the datagrid with datapager and its Vertical Alignment is set to stretch. In the second row I'm displaying the DataForm as Child in the Expander Control. What I want is to occupy all space(vertically) by DataGrid when there is No Expander (Data...

WPF GridSplitter

Hi, 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 causin...