Vertical alignment in XAML maybe works not

Started by sinus, June 09, 2022, 06:08:21 PM

Previous topic - Next topic

sinus

Is it possible, that one XAML in Design&Print not works?

From the help
https://www.photools.com/help/imatch/xaml_basics.htm

VerticalAlignment=   Top, Middle, Center. Default: Top.
This option controls how the text is aligned vertically within the TextBlock.


I want to have the Alignement at the bottom, I can write it (TextAlignment='Bottom') and XAML does not display an error, hence I guess, it is correct.

But maybe there is something wrong, because like it is written in the help "Top, Middle, Center" I think, Middle and Center is the same, not?

Is this a glitch or simply not possible?
Best wishes from Switzerland! :-)
Markus

Mario

Not all XAML constructs can work anywhere and design & print has its own text alignment properties.
To align text in Design & Print, please use the text alignment properties available for text blocks. See Text Containers
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Quote from: Mario on June 09, 2022, 06:50:28 PM
Not all XAML constructs can work anywhere and design & print has its own text alignment properties.
To align text in Design & Print, please use the text alignment properties available for text blocks. See Text Containers

Thanks, Mario
I solved it with change my layout, so for me this everything is good..

But nevertheless, at least the line in the help (like I wrote above) seems to me not correct.
Because the line in the help says:

VerticalAlignment=   Top, Middle, Center. Default: Top.
This option controls how the text is aligned vertically within the TextBlock.


and middle and center seems to me, is the same?
And if I use middle, XAML creates an error.

Hence maybe only this middle in the helpfile is wrong?

Best wishes from Switzerland! :-)
Markus

Mario

So this is not about Design & Print but about a typo on a help page?

Middle should read Bottom, obviously. I will change that for the next help release.

Note: If you find missing or incorrect info on a help page, use the feedback link at the bottom of the page to notify me.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook