Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Splitbar blues

 
 
Old 02-02-2006   #1 (permalink)
Erno


 
 

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


 
 

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


 
 

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
 

Thread Tools


Similar Threads
Thread Forum
No Blues, No Joy Media Center
Bluetooth Blues Drivers
MP3 player blues Drivers
SIDEBAR BLUES, ANYONE? Vista General


Vista Forums 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 Ltd

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