Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Splitbar blues

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-02-2006   #1 (permalink)
Erno
Guest


 

Splitbar blues

In Win Forms 2.0 MS changed the splitbar to a double container. I really
loved that decision.

Now I am struggling again with WPF...

Take a look at
http://blogs.infosupport.com//images...eenShot_01.jpg

look close at the vertical splitter, it is a tiny bit layered on top of the
view on the left hand side.

As far as I can see the order in which the gridcells and splitters are added
to the grid seriously affects the layout.

Does anybody know the rules that are being followed by these controls?

Erno



My System SpecsSystem Spec
Old 02-02-2006   #2 (permalink)
Erno
Guest


 

Re: Splitbar blues

Sorry, should have called it GridSplitter Blues

Erno

"Erno" <no-spam> wrote in message
news:ORlkC$0JGHA.1288@TK2MSFTNGP09.phx.gbl...
> In Win Forms 2.0 MS changed the splitbar to a double container. I really
> loved that decision.
>
> Now I am struggling again with WPF...
>
> Take a look at
> http://blogs.infosupport.com//images...eenShot_01.jpg
>
> look close at the vertical splitter, it is a tiny bit layered on top of
> the view on the left hand side.
>
> As far as I can see the order in which the gridcells and splitters are
> added to the grid seriously affects the layout.
>
> Does anybody know the rules that are being followed by these controls?
>
> Erno
>



My System SpecsSystem Spec
Old 02-02-2006   #3 (permalink)
Erno
Guest


 

Re: Splitbar blues

From the MSDN:

----
Child controls of a Grid control are rendered in the order that they appear
in markup or in code. Therefore, a GridSplitter control can be obscured by
other controls that are rendered after the GridSplitter control is rendered.
To make sure that a GridSplitter control is not obscured by other children
of a Grid control, do one of the following:

1. Specify margins for the controls adjacent to GridSplitter controls in the
markup or code. These margins make sure a GridSplitter control is reachable
when other controls are layered on top.

2. Define the GridSplitter controls after all other controls in the markup
or in code when defining a Grid control. Defining the GridSplitter controls
last renders them on top of any other controls in the Grid.
----

Yep, that what I saw and I've got it working now...

I find it a bit strange that the other controls have to know about the size
of the splitter...

Erno

"Erno" <no-spam> wrote in message
news:ORlkC$0JGHA.1288@TK2MSFTNGP09.phx.gbl...
> In Win Forms 2.0 MS changed the splitbar to a double container. I really
> loved that decision.
>
> Now I am struggling again with WPF...
>
> Take a look at
> http://blogs.infosupport.com//images...eenShot_01.jpg
>
> look close at the vertical splitter, it is a tiny bit layered on top of
> the view on the left hand side.
>
> As far as I can see the order in which the gridcells and splitters are
> added to the grid seriously affects the layout.
>
> Does anybody know the rules that are being followed by these controls?
>
> Erno
>



My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
MP3 player blues orlo Drivers 0 07-20-2008 03:11 PM
Activation Blues... Christopher Vista General 12 02-01-2007 10:15 AM
SIDEBAR BLUES, ANYONE? =?Utf-8?B?Sm9lIFQ=?= Vista General 2 08-16-2006 05:48 AM
SIDEBAR BLUES, ANYONE? =?Utf-8?B?Sm9lIFQ=?= Vista General 0 08-15-2006 11:07 PM
Migration blues Erno Avalon 0 02-23-2006 12:18 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51