Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Markup and Size calculation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup and Size calculation

 Post Reply Post Reply
Author
Message
WaLtI View Drop Down
Groupie
Groupie


Joined: 30 March 2008
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaLtI Quote  Post ReplyReply Direct Link To This Post Topic: Markup and Size calculation
    Posted: 04 June 2008 at 5:04pm
<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
    <Grid Height='Auto' Width='Auto'>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width='Auto'/>
            <ColumnDefinition Width='*'/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height='Auto'/>
        </Grid.RowDefinitions>
        <Image Grid.Column='0' Grid.Row='0' Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="50" Height="50" Source="red_shield.png">
        </Image>
        <StackPanel Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center">
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" TextAlignment="Left" Foreground="Black" Text="%1"></TextBlock>
        </StackPanel>
    </Grid>
</Page>
 
If i use this code in MarkupPad it displays nothing if i try the same code with the VS.NET XAML Designer it calculates the contents size based on its contents.
 
Regards
-Mike
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2008 at 3:37am
HI,
 
Thanks for sample. 
 
Our markup didn't know about "'Auto'  in  <Grid Height='Auto' Width='Auto'>
just replace it to  <Grid>
 
Auto was supported only for ColumnDefinition and RowDefinition...
 
We will add "Auto" support for next release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
WaLtI View Drop Down
Groupie
Groupie


Joined: 30 March 2008
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaLtI Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2008 at 6:36am
Thank you:-)
 
Regards,
-Mike
 
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.078 seconds.