![]() |
Markup and Size calculation |
Post Reply
|
| Author | |
WaLtI
Groupie
Joined: 30 March 2008 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: Markup and Size calculationPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
WaLtI
Groupie
Joined: 30 March 2008 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 June 2008 at 6:36am |
|
Thank you:-)
Regards,
-Mike
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |