Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 96255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:47:10+00:00 2026-05-10T23:47:10+00:00

WPF GridSplitter makes my Grid wider than my Window! I’ve got a WPF Grid

  • 0

WPF GridSplitter makes my Grid wider than my Window!

I’ve got a WPF Grid with a GridSplitter. If I resize my columns, then I can make my grid wider than my window and non-viewable.

It starts like this:

WPF Grid http://img201.imageshack.us/img201/9505/onehg6.jpg

But after widening the left column, I can no longer see the right column (green):

WPF GridSplitter http://img201.imageshack.us/img201/1804/twomy6.jpg

What am I doing wrong? How do I keep the GridSplitter from changing the size of my Grid?


Update:

I’m still struggling with this. I’ve now tried nesting grids within grids. That didn’t help. Here’s my XAML ColumnDefinitions, RowDefinitions, and GridSplitters…

<Window ... >     <Grid>         <Grid.ColumnDefinitions>             <ColumnDefinition Width='*' MinWidth='150' />             <ColumnDefinition Width='Auto' />             <ColumnDefinition Width='*' MinWidth='400' />         </Grid.ColumnDefinitions>         <GridSplitter              ResizeDirection='Columns'             ResizeBehavior='BasedOnAlignment'             Grid.Column='1'             HorizontalAlignment='Center'             VerticalAlignment='Stretch'             Width='2'             Margin='0,5,0,5'             Panel.ZIndex='1'/>         <Grid Grid.Column='0'>             ...         </Grid>         <Grid Grid.Column='2'>             <Grid.ColumnDefinitions>                 <ColumnDefinition Width='*' MinWidth='150' />                 <ColumnDefinition Width='Auto' />                 <ColumnDefinition Width='*' MinWidth='200' />             </Grid.ColumnDefinitions>             <GridSplitter                  ResizeDirection='Columns'                 ResizeBehavior='PreviousAndNext'                 Grid.Column='1'                 HorizontalAlignment='Center'                 VerticalAlignment='Stretch'                 Width='2'                 Margin='0,5,0,5'                 Panel.ZIndex='1'/>             <Grid Grid.Column='0'>                 ...             </Grid>             <Grid Grid.Column='2'>                 ...             </Grid>         </Grid>     </Grid> </Window> 

Update:

I think the problem is with the WebBrowser control. See new question:

WPF GridSplitter Doesn’t Work With WebBrowser Control?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:47:11+00:00Added an answer on May 10, 2026 at 11:47 pm

    If your Window is resized so its Width is less than the sum of your columns’ MinWidth, you’ll see the columns cut off, but otherwise I can’t reproduce your problem:

    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:sys="clr-namespace:System;assembly=mscorlib"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">     <Grid>         <Grid.ColumnDefinitions>             <ColumnDefinition MinWidth="150" Width="*"/>             <ColumnDefinition Width="Auto"/>             <ColumnDefinition MinWidth="400" Width="*"/>         </Grid.ColumnDefinitions>          <GridSplitter             Width="2"             Grid.Column="1"             HorizontalAlignment="Center"             Margin="0,5,0,5"             Panel.ZIndex="1"             VerticalAlignment="Stretch"             ResizeBehavior="BasedOnAlignment"             ResizeDirection="Columns"/>          <Grid Grid.Column="0">             <Border Background="Red" Margin="5"/>         </Grid>          <Grid Grid.Column="2">             <Grid.ColumnDefinitions>                 <ColumnDefinition MinWidth="150" Width="*"/>                 <ColumnDefinition Width="Auto"/>                 <ColumnDefinition MinWidth="200" Width="*"/>             </Grid.ColumnDefinitions>              <GridSplitter                 Width="2"                 Grid.Column="1"                 HorizontalAlignment="Center"                 Margin="0,5,0,5"                 Panel.ZIndex="1"                 VerticalAlignment="Stretch"                 ResizeBehavior="PreviousAndNext"                 ResizeDirection="Columns"/>              <Grid Grid.Column="0">                 <Border Background="Green" Margin="5"/>             </Grid>              <Grid Grid.Column="2">                 <Border Background="Blue" Margin="5"/>             </Grid>         </Grid>     </Grid> </Window> 

    Expanding the red column, it will only expand until the right column reaches its MinWidth of 400, it won’t boot it off the page.

    It’s possible you’re setting other properties of the Window or the outermost Grid that would cause this behavior…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 122k
  • Answers 122k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Many of the other solutions will work, but they all… May 12, 2026 at 12:39 am
  • Editorial Team
    Editorial Team added an answer Have a look at the ClientScriptManager class. You can register… May 12, 2026 at 12:39 am
  • Editorial Team
    Editorial Team added an answer ApplyUpdates doesn't give you that information - since it can… May 12, 2026 at 12:39 am

Related Questions

WPF GridSplitter makes my Grid wider than my Window! I've got a WPF Grid
Under the View-Model-ViewModel pattern for WPF, I am trying to databind the Heights and
I'm looking for help with a WPF problem I've been wrestling with for a
WPF, Browserlike app. I got one page containing a ListView. After calling a PageFunction
WPF's view model oriented way of doing things makes it very tempting to just

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.