Print Page | Close Window

Markup draw out of rect

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11072
Printed Date: 10 May 2025 at 4:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup draw out of rect
Posted By: jimmy
Subject: Markup draw out of rect
Date Posted: 17 June 2008 at 6:35am
Hello,

I have test this with 12.0.0 MarkupPad.
And text will draw out of rect

<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' >

    <Grid Background="LightBlue" Width="150" Height="30">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="40"/>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Column = "0" VerticalAlignment="Center" HorizontalAlignment="Left">1 Zeile<LineBreak/>2</TextBlock>
        <TextBlock Grid.Column = "1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="24" >&amp;</TextBlock>
    </Grid>
</Page>



  Jimmy




Replies:
Posted By: Oleg
Date Posted: 17 June 2008 at 1:08pm
Hi,
 
Cleartype thing :-(
 
2 solutions:
 
 
 <Grid Background="LightBlue" Width="150" Height="30" ClipToBounds="True">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="40"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Column = "0" VerticalAlignment="Center" HorizontalAlignment="Left">1 Zeile<LineBreak/>2</TextBlock>
        <TextBlock Background="Red" Grid.Column = "1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="24" >&amp;</TextBlock>
    </Grid>
 
 
or
 
 
    <Grid Background="LightBlue" Width="150" Height="30">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="40"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Column = "0" VerticalAlignment="Center" HorizontalAlignment="Left">1 Zeile<LineBreak/>2</TextBlock>
        <TextBlock Padding="1" Background="Red" Grid.Column = "1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="24" >&amp;</TextBlock>
    </Grid>


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net