Print & Design - Document Variable

Started by wolboe, September 24, 2021, 01:50:46 PM

Previous topic - Next topic

wolboe


Hello
I want a document variable like TextColor = "#000000" apply as {Print.Property.TextColor}. The application in the container properties is clear to me, but what is the syntax for the XAML formatting Foreground = "# 000000"?

Foreground = {Print.Property.TextColor} does not work in a TextBlock.
Wolfgang

Mario

What do you mean by "does not work"

I create a document variable

TextColor=#0000ff

and then use it in XAML as

<TextBlock Foreground="{Print.Property.TextColor}" FontSize="48pt">
Some Text Here
</TextBlock>


and the text color is set based on the content of the variable TextColor.
See attachment below.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

wolboe

Danke!
Funktioniert jetzt wie erwartet  - ich hatte es auch mit und ohne ' " ' probiert.??

Thank you!
Works now as expected - I had also tried it with and without ' " '.??

Wolfgang