Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > MarkupLabel Control
  New Posts New Posts RSS Feed - HorizontalAlignment in Canvas
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HorizontalAlignment in Canvas

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


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: HorizontalAlignment in Canvas
    Posted: 08 February 2016 at 4:29am
I don't know if this is an error, or just because I don't know enough about XSAML.

When I write this I expected the hyperlink to be right aligned, on a red background filling the entire control:

<Canvas Background="#ff0000">
<TextBlock HorizontalAlignment='Right'>
<Hyperlink Cursor='Hand'>Link</Hyperlink>
</TextBlock>
</Canvas>

But that fails, and I have to do this instead:

<Grid Background="#ff0000">
<TextBlock HorizontalAlignment='Right'>
<Hyperlink Cursor='Hand'>Link</Hyperlink>
</TextBlock>
</Grid>

-cpede
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2017 at 2:36pm
Hello,

I can advice to using Canvas.Right tag
<Canvas Background="#ff0000">
  <TextBlock Canvas.Right="0">
    <Hyperlink Cursor='Hand'>Link</Hyperlink>
  </TextBlock>
</Canvas>

Regards,
 Oleksandr Lebed
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.171 seconds.