Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Grid Row Height "Auto" and "*"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Grid Row Height "Auto" and "*"

 Post Reply Post Reply
Author
Message
gibrael View Drop Down
Groupie
Groupie
Avatar

Joined: 17 March 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibrael Quote  Post ReplyReply Direct Link To This Post Topic: Grid Row Height "Auto" and "*"
    Posted: 02 September 2009 at 1:26pm
Hi,

How can I set the Row Height of a grid to Auto or * in VB6?

I tried:

Dim RowDef1 as MarkUpRowDefinition
Dim RowDef2 as MarkUpRowDefinition

'context is markupcontext of markuplabel
Set RowDef1 = context.Parse("<RowDefinition Height='Auto' />")
Set RowDef2 = context.Parse("<RowDefinition Height='*' />")



but it does not work. Any ideas? Thanks to anyone in advance. :)


--
Codejock Xtreme Suite Pro 15.2
VisualStudio 2010
Windows 7
Back to Top
gibrael View Drop Down
Groupie
Groupie
Avatar

Joined: 17 March 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibrael Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2009 at 1:25pm
I found a simple solution


Dim g as MarkUpGrid

'context is markupcontext of markuplabel
Set g = context.parse("<Grid><RowDefinitions><RowDefinition Height='Auto' /><RowDefinition Height='*' /></RowDefinitions></Grid>")



I couldn't find a way around, but this is better than nothing. Thanks.
--
Codejock Xtreme Suite Pro 15.2
VisualStudio 2010
Windows 7
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.