Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Markup draw out of rect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup draw out of rect

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Markup draw out of rect
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
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.047 seconds.