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

Simple table layout

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 11-07-2006   #1 (permalink)
Jan Kucera
Guest


 

Simple table layout

Hi again...

How can I layout the window something like
<table width=100% height=100%>
<tr>
<td width=25% />
<td />
</tr>
</table>

and make the controls in the cells like Dock=Fill?

Is it possible to make the column user-resizable without using WindowsForms
SplitContainer control?

Thanks,
Jan


My System SpecsSystem Spec
Old 11-09-2006   #2 (permalink)
Stoitcho Goutsev \(100\)
Guest


 

Re: Simple table layout

Jan,

That would be something like
<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width=".25*"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>

<Rectangle Grid.Column="0" Fill="Green"/>
<Rectangle Grid.Column="1" Fill="Red"/>

</Grid>

I added rectangles in the cells just to show the cell boundaries. Normally
controls will stretch to fill out all the available space (as the rectangles
do in the example), but if this is not the default behavior for a given
control you can set contro's HorizontalAlignment and VerticalAlignment to
*Stretch*

WPF provides control called GridSplitter, which purpose is to provide UI for
changing size of 2 adjacent columns or rows. There are couple of ways how to
add a splitter to a grid so I suggest reading in the docs for example a
splitter can be added to one of the columns or in a column by itself, it has
to be properly aligned and so on.
Here is an example with the previous grid, but it also have a splitter added
between the columns.

<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width=".25*"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Rectangle Grid.Column="0" Fill="Green"/>
<Rectangle Grid.Column="1" Fill="Red"/>
<GridSplitter Grid.Column="0"
HorizontalAlignment="Right" VerticalAlignment="Stretch"
Background="Black"
ShowsPreview="true"
Width="3"/>
</Grid>

HTH
--
Stoitcho Goutsev (100)

"Jan Kucera" <uam@centrum.cz> wrote in message
news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
> Hi again...
>
> How can I layout the window something like
> <table width=100% height=100%>
> <tr>
> <td width=25% />
> <td />
> </tr>
> </table>
>
> and make the controls in the cells like Dock=Fill?
>
> Is it possible to make the column user-resizable without using
> WindowsForms SplitContainer control?
>
> Thanks,
> Jan



My System SpecsSystem Spec
Old 11-09-2006   #3 (permalink)
Stoitcho Goutsev \(100\)
Guest


 

Re: Simple table layout

Jan,

That would be something like
<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width=".25*"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>

<Rectangle Grid.Column="0" Fill="Green"/>
<Rectangle Grid.Column="1" Fill="Red"/>

</Grid>

I added rectangles in the cells just to show the cell boundaries. Normally
controls will stretch to fill out all the available space (as the rectangles
do in the example), but if this is not the default behavior for a given
control you can set contro's HorizontalAlignment and VerticalAlignment to
*Stretch*

WPF provides control called GridSplitter, which purpose is to provide UI for
changing size of 2 adjacent columns or rows. There are couple of ways how to
add a splitter to a grid so I suggest reading in the docs for example a
splitter can be added to one of the columns or in a column by itself, it has
to be properly aligned and so on.
Here is an example with the previous grid, but it also have a splitter added
between the columns.

<Grid>

<Grid.ColumnDefinitions>
<ColumnDefinition Width=".25*"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>

<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Rectangle Grid.Column="0" Fill="Green"/>
<Rectangle Grid.Column="1" Fill="Red"/>
<GridSplitter Grid.Column="0"
HorizontalAlignment="Right" VerticalAlignment="Stretch"
Background="Black"
ShowsPreview="true"
Width="3"/>
</Grid>

HTH
--
Stoitcho Goutsev (100)

"Jan Kucera" <uam@centrum.cz> wrote in message
news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
> Hi again...
>
> How can I layout the window something like
> <table width=100% height=100%>
> <tr>
> <td width=25% />
> <td />
> </tr>
> </table>
>
> and make the controls in the cells like Dock=Fill?
>
> Is it possible to make the column user-resizable without using
> WindowsForms SplitContainer control?
>
> Thanks,
> Jan



My System SpecsSystem Spec
Old 11-09-2006   #4 (permalink)
Douglas Stockwell
Guest


 

Re: Simple table layout

Actually, since the default width is 1*, if you write .25* you end up with a
width of only 20%. Star is not a percentage, it is a weighted value (see the
doco on GridUnitType for details).

So you are better off setting both widths to Star values:

<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions>

- Doug

"Stoitcho Goutsev (100)" <100@100.com> wrote in message
news:%23GNKrDBBHHA.3540@TK2MSFTNGP03.phx.gbl...
> Jan,
>
> That would be something like
> <Grid>
>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width=".25*"/>
> <ColumnDefinition />
> </Grid.ColumnDefinitions>
>
> <Grid.RowDefinitions>
> <RowDefinition/>
> </Grid.RowDefinitions>
>
> <Rectangle Grid.Column="0" Fill="Green"/>
> <Rectangle Grid.Column="1" Fill="Red"/>
>
> </Grid>
>
> I added rectangles in the cells just to show the cell boundaries. Normally
> controls will stretch to fill out all the available space (as the
> rectangles do in the example), but if this is not the default behavior for
> a given control you can set contro's HorizontalAlignment and
> VerticalAlignment to *Stretch*
>
> WPF provides control called GridSplitter, which purpose is to provide UI
> for changing size of 2 adjacent columns or rows. There are couple of ways
> how to add a splitter to a grid so I suggest reading in the docs for
> example a splitter can be added to one of the columns or in a column by
> itself, it has to be properly aligned and so on.
> Here is an example with the previous grid, but it also have a splitter
> added between the columns.
>
> <Grid>
>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width=".25*"/>
> <ColumnDefinition />
> </Grid.ColumnDefinitions>
>
> <Grid.RowDefinitions>
> <RowDefinition/>
> </Grid.RowDefinitions>
> <Rectangle Grid.Column="0" Fill="Green"/>
> <Rectangle Grid.Column="1" Fill="Red"/>
> <GridSplitter Grid.Column="0"
> HorizontalAlignment="Right"
> VerticalAlignment="Stretch"
> Background="Black"
> ShowsPreview="true"
> Width="3"/>
> </Grid>
>
> HTH
> --
> Stoitcho Goutsev (100)
>
> "Jan Kucera" <uam@centrum.cz> wrote in message
> news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
>> Hi again...
>>
>> How can I layout the window something like
>> <table width=100% height=100%>
>> <tr>
>> <td width=25% />
>> <td />
>> </tr>
>> </table>
>>
>> and make the controls in the cells like Dock=Fill?
>>
>> Is it possible to make the column user-resizable without using
>> WindowsForms SplitContainer control?
>>
>> Thanks,
>> Jan

>
>


My System SpecsSystem Spec
Old 11-09-2006   #5 (permalink)
Douglas Stockwell
Guest


 

Re: Simple table layout

Actually, since the default width is 1*, if you write .25* you end up with a
width of only 20%. Star is not a percentage, it is a weighted value (see the
doco on GridUnitType for details).

So you are better off setting both widths to Star values:

<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="3*" />
</Grid.ColumnDefinitions>

- Doug

"Stoitcho Goutsev (100)" <100@100.com> wrote in message
news:%23GNKrDBBHHA.3540@TK2MSFTNGP03.phx.gbl...
> Jan,
>
> That would be something like
> <Grid>
>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width=".25*"/>
> <ColumnDefinition />
> </Grid.ColumnDefinitions>
>
> <Grid.RowDefinitions>
> <RowDefinition/>
> </Grid.RowDefinitions>
>
> <Rectangle Grid.Column="0" Fill="Green"/>
> <Rectangle Grid.Column="1" Fill="Red"/>
>
> </Grid>
>
> I added rectangles in the cells just to show the cell boundaries. Normally
> controls will stretch to fill out all the available space (as the
> rectangles do in the example), but if this is not the default behavior for
> a given control you can set contro's HorizontalAlignment and
> VerticalAlignment to *Stretch*
>
> WPF provides control called GridSplitter, which purpose is to provide UI
> for changing size of 2 adjacent columns or rows. There are couple of ways
> how to add a splitter to a grid so I suggest reading in the docs for
> example a splitter can be added to one of the columns or in a column by
> itself, it has to be properly aligned and so on.
> Here is an example with the previous grid, but it also have a splitter
> added between the columns.
>
> <Grid>
>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width=".25*"/>
> <ColumnDefinition />
> </Grid.ColumnDefinitions>
>
> <Grid.RowDefinitions>
> <RowDefinition/>
> </Grid.RowDefinitions>
> <Rectangle Grid.Column="0" Fill="Green"/>
> <Rectangle Grid.Column="1" Fill="Red"/>
> <GridSplitter Grid.Column="0"
> HorizontalAlignment="Right"
> VerticalAlignment="Stretch"
> Background="Black"
> ShowsPreview="true"
> Width="3"/>
> </Grid>
>
> HTH
> --
> Stoitcho Goutsev (100)
>
> "Jan Kucera" <uam@centrum.cz> wrote in message
> news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
>> Hi again...
>>
>> How can I layout the window something like
>> <table width=100% height=100%>
>> <tr>
>> <td width=25% />
>> <td />
>> </tr>
>> </table>
>>
>> and make the controls in the cells like Dock=Fill?
>>
>> Is it possible to make the column user-resizable without using
>> WindowsForms SplitContainer control?
>>
>> Thanks,
>> Jan

>
>


My System SpecsSystem Spec
Old 11-10-2006   #6 (permalink)
Stoitcho Goutsev \(100\)
Guest


 

Re: Simple table layout

Hi Doug,

Thanks for the correction. Of course you are right.


--
Stoitcho Goutsev (100)



"Douglas Stockwell" <doug@remove.11011.net> wrote in message
news:668BD948-3F01-4F3C-96EA-A70BB90EE8FB@microsoft.com...
> Actually, since the default width is 1*, if you write .25* you end up with
> a width of only 20%. Star is not a percentage, it is a weighted value (see
> the doco on GridUnitType for details).
>
> So you are better off setting both widths to Star values:
>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width="1*"/>
> <ColumnDefinition Width="3*" />
> </Grid.ColumnDefinitions>
>
> - Doug
>
> "Stoitcho Goutsev (100)" <100@100.com> wrote in message
> news:%23GNKrDBBHHA.3540@TK2MSFTNGP03.phx.gbl...
>> Jan,
>>
>> That would be something like
>> <Grid>
>>
>> <Grid.ColumnDefinitions>
>> <ColumnDefinition Width=".25*"/>
>> <ColumnDefinition />
>> </Grid.ColumnDefinitions>
>>
>> <Grid.RowDefinitions>
>> <RowDefinition/>
>> </Grid.RowDefinitions>
>>
>> <Rectangle Grid.Column="0" Fill="Green"/>
>> <Rectangle Grid.Column="1" Fill="Red"/>
>>
>> </Grid>
>>
>> I added rectangles in the cells just to show the cell boundaries.
>> Normally controls will stretch to fill out all the available space (as
>> the rectangles do in the example), but if this is not the default
>> behavior for a given control you can set contro's HorizontalAlignment and
>> VerticalAlignment to *Stretch*
>>
>> WPF provides control called GridSplitter, which purpose is to provide UI
>> for changing size of 2 adjacent columns or rows. There are couple of ways
>> how to add a splitter to a grid so I suggest reading in the docs for
>> example a splitter can be added to one of the columns or in a column by
>> itself, it has to be properly aligned and so on.
>> Here is an example with the previous grid, but it also have a splitter
>> added between the columns.
>>
>> <Grid>
>>
>> <Grid.ColumnDefinitions>
>> <ColumnDefinition Width=".25*"/>
>> <ColumnDefinition />
>> </Grid.ColumnDefinitions>
>>
>> <Grid.RowDefinitions>
>> <RowDefinition/>
>> </Grid.RowDefinitions>
>> <Rectangle Grid.Column="0" Fill="Green"/>
>> <Rectangle Grid.Column="1" Fill="Red"/>
>> <GridSplitter Grid.Column="0"
>> HorizontalAlignment="Right"
>> VerticalAlignment="Stretch"
>> Background="Black"
>> ShowsPreview="true"
>> Width="3"/>
>> </Grid>
>>
>> HTH
>> --
>> Stoitcho Goutsev (100)
>>
>> "Jan Kucera" <uam@centrum.cz> wrote in message
>> news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
>>> Hi again...
>>>
>>> How can I layout the window something like
>>> <table width=100% height=100%>
>>> <tr>
>>> <td width=25% />
>>> <td />
>>> </tr>
>>> </table>
>>>
>>> and make the controls in the cells like Dock=Fill?
>>>
>>> Is it possible to make the column user-resizable without using
>>> WindowsForms SplitContainer control?
>>>
>>> Thanks,
>>> Jan

>>
>>

>



My System SpecsSystem Spec
Old 11-10-2006   #7 (permalink)
Stoitcho Goutsev \(100\)
Guest


 

Re: Simple table layout

Hi Doug,

Thanks for the correction. Of course you are right.


--
Stoitcho Goutsev (100)



"Douglas Stockwell" <doug@remove.11011.net> wrote in message
news:668BD948-3F01-4F3C-96EA-A70BB90EE8FB@microsoft.com...
> Actually, since the default width is 1*, if you write .25* you end up with
> a width of only 20%. Star is not a percentage, it is a weighted value (see
> the doco on GridUnitType for details).
>
> So you are better off setting both widths to Star values:
>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width="1*"/>
> <ColumnDefinition Width="3*" />
> </Grid.ColumnDefinitions>
>
> - Doug
>
> "Stoitcho Goutsev (100)" <100@100.com> wrote in message
> news:%23GNKrDBBHHA.3540@TK2MSFTNGP03.phx.gbl...
>> Jan,
>>
>> That would be something like
>> <Grid>
>>
>> <Grid.ColumnDefinitions>
>> <ColumnDefinition Width=".25*"/>
>> <ColumnDefinition />
>> </Grid.ColumnDefinitions>
>>
>> <Grid.RowDefinitions>
>> <RowDefinition/>
>> </Grid.RowDefinitions>
>>
>> <Rectangle Grid.Column="0" Fill="Green"/>
>> <Rectangle Grid.Column="1" Fill="Red"/>
>>
>> </Grid>
>>
>> I added rectangles in the cells just to show the cell boundaries.
>> Normally controls will stretch to fill out all the available space (as
>> the rectangles do in the example), but if this is not the default
>> behavior for a given control you can set contro's HorizontalAlignment and
>> VerticalAlignment to *Stretch*
>>
>> WPF provides control called GridSplitter, which purpose is to provide UI
>> for changing size of 2 adjacent columns or rows. There are couple of ways
>> how to add a splitter to a grid so I suggest reading in the docs for
>> example a splitter can be added to one of the columns or in a column by
>> itself, it has to be properly aligned and so on.
>> Here is an example with the previous grid, but it also have a splitter
>> added between the columns.
>>
>> <Grid>
>>
>> <Grid.ColumnDefinitions>
>> <ColumnDefinition Width=".25*"/>
>> <ColumnDefinition />
>> </Grid.ColumnDefinitions>
>>
>> <Grid.RowDefinitions>
>> <RowDefinition/>
>> </Grid.RowDefinitions>
>> <Rectangle Grid.Column="0" Fill="Green"/>
>> <Rectangle Grid.Column="1" Fill="Red"/>
>> <GridSplitter Grid.Column="0"
>> HorizontalAlignment="Right"
>> VerticalAlignment="Stretch"
>> Background="Black"
>> ShowsPreview="true"
>> Width="3"/>
>> </Grid>
>>
>> HTH
>> --
>> Stoitcho Goutsev (100)
>>
>> "Jan Kucera" <uam@centrum.cz> wrote in message
>> news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
>>> Hi again...
>>>
>>> How can I layout the window something like
>>> <table width=100% height=100%>
>>> <tr>
>>> <td width=25% />
>>> <td />
>>> </tr>
>>> </table>
>>>
>>> and make the controls in the cells like Dock=Fill?
>>>
>>> Is it possible to make the column user-resizable without using
>>> WindowsForms SplitContainer control?
>>>
>>> Thanks,
>>> Jan

>>
>>

>



My System SpecsSystem Spec
Old 11-10-2006   #8 (permalink)
Jan Kucera
Guest


 

Re: Simple table layout

Hi,
thank you for your help. I wouldn't manage the star thing. ;-)

Jan

"Stoitcho Goutsev (100)" <100@100.com> wrote in message
news:%23Ta9b1NBHHA.2316@TK2MSFTNGP04.phx.gbl...
> Hi Doug,
>
> Thanks for the correction. Of course you are right.
>
>
> --
> Stoitcho Goutsev (100)
>
>
>
> "Douglas Stockwell" <doug@remove.11011.net> wrote in message
> news:668BD948-3F01-4F3C-96EA-A70BB90EE8FB@microsoft.com...
>> Actually, since the default width is 1*, if you write .25* you end up
>> with a width of only 20%. Star is not a percentage, it is a weighted
>> value (see the doco on GridUnitType for details).
>>
>> So you are better off setting both widths to Star values:
>>
>> <Grid.ColumnDefinitions>
>> <ColumnDefinition Width="1*"/>
>> <ColumnDefinition Width="3*" />
>> </Grid.ColumnDefinitions>
>>
>> - Doug
>>
>> "Stoitcho Goutsev (100)" <100@100.com> wrote in message
>> news:%23GNKrDBBHHA.3540@TK2MSFTNGP03.phx.gbl...
>>> Jan,
>>>
>>> That would be something like
>>> <Grid>
>>>
>>> <Grid.ColumnDefinitions>
>>> <ColumnDefinition Width=".25*"/>
>>> <ColumnDefinition />
>>> </Grid.ColumnDefinitions>
>>>
>>> <Grid.RowDefinitions>
>>> <RowDefinition/>
>>> </Grid.RowDefinitions>
>>>
>>> <Rectangle Grid.Column="0" Fill="Green"/>
>>> <Rectangle Grid.Column="1" Fill="Red"/>
>>>
>>> </Grid>
>>>
>>> I added rectangles in the cells just to show the cell boundaries.
>>> Normally controls will stretch to fill out all the available space (as
>>> the rectangles do in the example), but if this is not the default
>>> behavior for a given control you can set contro's HorizontalAlignment
>>> and VerticalAlignment to *Stretch*
>>>
>>> WPF provides control called GridSplitter, which purpose is to provide UI
>>> for changing size of 2 adjacent columns or rows. There are couple of
>>> ways how to add a splitter to a grid so I suggest reading in the docs
>>> for example a splitter can be added to one of the columns or in a column
>>> by itself, it has to be properly aligned and so on.
>>> Here is an example with the previous grid, but it also have a splitter
>>> added between the columns.
>>>
>>> <Grid>
>>>
>>> <Grid.ColumnDefinitions>
>>> <ColumnDefinition Width=".25*"/>
>>> <ColumnDefinition />
>>> </Grid.ColumnDefinitions>
>>>
>>> <Grid.RowDefinitions>
>>> <RowDefinition/>
>>> </Grid.RowDefinitions>
>>> <Rectangle Grid.Column="0" Fill="Green"/>
>>> <Rectangle Grid.Column="1" Fill="Red"/>
>>> <GridSplitter Grid.Column="0"
>>> HorizontalAlignment="Right"
>>> VerticalAlignment="Stretch"
>>> Background="Black"
>>> ShowsPreview="true"
>>> Width="3"/>
>>> </Grid>
>>>
>>> HTH
>>> --
>>> Stoitcho Goutsev (100)
>>>
>>> "Jan Kucera" <uam@centrum.cz> wrote in message
>>> news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
>>>> Hi again...
>>>>
>>>> How can I layout the window something like
>>>> <table width=100% height=100%>
>>>> <tr>
>>>> <td width=25% />
>>>> <td />
>>>> </tr>
>>>> </table>
>>>>
>>>> and make the controls in the cells like Dock=Fill?
>>>>
>>>> Is it possible to make the column user-resizable without using
>>>> WindowsForms SplitContainer control?
>>>>
>>>> Thanks,
>>>> Jan
>>>
>>>

>>

>
>


My System SpecsSystem Spec
Old 11-10-2006   #9 (permalink)
Jan Kucera
Guest


 

Re: Simple table layout

Hi,
thank you for your help. I wouldn't manage the star thing. ;-)

Jan

"Stoitcho Goutsev (100)" <100@100.com> wrote in message
news:%23Ta9b1NBHHA.2316@TK2MSFTNGP04.phx.gbl...
> Hi Doug,
>
> Thanks for the correction. Of course you are right.
>
>
> --
> Stoitcho Goutsev (100)
>
>
>
> "Douglas Stockwell" <doug@remove.11011.net> wrote in message
> news:668BD948-3F01-4F3C-96EA-A70BB90EE8FB@microsoft.com...
>> Actually, since the default width is 1*, if you write .25* you end up
>> with a width of only 20%. Star is not a percentage, it is a weighted
>> value (see the doco on GridUnitType for details).
>>
>> So you are better off setting both widths to Star values:
>>
>> <Grid.ColumnDefinitions>
>> <ColumnDefinition Width="1*"/>
>> <ColumnDefinition Width="3*" />
>> </Grid.ColumnDefinitions>
>>
>> - Doug
>>
>> "Stoitcho Goutsev (100)" <100@100.com> wrote in message
>> news:%23GNKrDBBHHA.3540@TK2MSFTNGP03.phx.gbl...
>>> Jan,
>>>
>>> That would be something like
>>> <Grid>
>>>
>>> <Grid.ColumnDefinitions>
>>> <ColumnDefinition Width=".25*"/>
>>> <ColumnDefinition />
>>> </Grid.ColumnDefinitions>
>>>
>>> <Grid.RowDefinitions>
>>> <RowDefinition/>
>>> </Grid.RowDefinitions>
>>>
>>> <Rectangle Grid.Column="0" Fill="Green"/>
>>> <Rectangle Grid.Column="1" Fill="Red"/>
>>>
>>> </Grid>
>>>
>>> I added rectangles in the cells just to show the cell boundaries.
>>> Normally controls will stretch to fill out all the available space (as
>>> the rectangles do in the example), but if this is not the default
>>> behavior for a given control you can set contro's HorizontalAlignment
>>> and VerticalAlignment to *Stretch*
>>>
>>> WPF provides control called GridSplitter, which purpose is to provide UI
>>> for changing size of 2 adjacent columns or rows. There are couple of
>>> ways how to add a splitter to a grid so I suggest reading in the docs
>>> for example a splitter can be added to one of the columns or in a column
>>> by itself, it has to be properly aligned and so on.
>>> Here is an example with the previous grid, but it also have a splitter
>>> added between the columns.
>>>
>>> <Grid>
>>>
>>> <Grid.ColumnDefinitions>
>>> <ColumnDefinition Width=".25*"/>
>>> <ColumnDefinition />
>>> </Grid.ColumnDefinitions>
>>>
>>> <Grid.RowDefinitions>
>>> <RowDefinition/>
>>> </Grid.RowDefinitions>
>>> <Rectangle Grid.Column="0" Fill="Green"/>
>>> <Rectangle Grid.Column="1" Fill="Red"/>
>>> <GridSplitter Grid.Column="0"
>>> HorizontalAlignment="Right"
>>> VerticalAlignment="Stretch"
>>> Background="Black"
>>> ShowsPreview="true"
>>> Width="3"/>
>>> </Grid>
>>>
>>> HTH
>>> --
>>> Stoitcho Goutsev (100)
>>>
>>> "Jan Kucera" <uam@centrum.cz> wrote in message
>>> news:EEE60513-B25E-4DCB-A489-29AC60816E15@microsoft.com...
>>>> Hi again...
>>>>
>>>> How can I layout the window something like
>>>> <table width=100% height=100%>
>>>> <tr>
>>>> <td width=25% />
>>>> <td />
>>>> </tr>
>>>> </table>
>>>>
>>>> and make the controls in the cells like Dock=Fill?
>>>>
>>>> Is it possible to make the column user-resizable without using
>>>> WindowsForms SplitContainer control?
>>>>
>>>> Thanks,
>>>> Jan
>>>
>>>

>>

>
>


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Typed datasets and table table adapters components not showing inToolbox bz .NET General 3 04-09-2008 08:13 PM
Format-table Swamy Channaveera PowerShell 3 03-25-2008 07:09 AM
ARP table questions Mattias Vista networking & sharing 3 06-14-2007 11:37 AM
Re: Table in latest CTP?? Ifeanyi Echeruo [MSFT] Avalon 0 01-31-2006 06:59 AM
Table Example youngy Avalon 3 01-10-2006 03:52 PM


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