How to use TextDecorations (such as underline)
Hi,
I want to underline a TextBlock. In WPF this is done using the TextDecorations property. In Noesis I see that this property exists, but if I try to set it from XAML then I get this error:
This is the XAML:
Am I doing something wrong or is this not (yet) supported? If so, when can we expect it?
I want to underline a TextBlock. In WPF this is done using the TextDecorations property. In Noesis I see that this property exists, but if I try to set it from XAML then I get this error:
Code: Select all
Parsing TextBlock.TextDecorations (@48,6).
'Underline' is not a valid value for property 'TextBlock.TextDecorations'
Code: Select all
<TextBlock Text="FORGOT PASSWORD?" TextDecorations="Underline"/>
-
-
sfernandez
Site Admin
- Posts: 3250
- Joined:
Re: How to use TextDecorations (such as underline)
TextDecorations are not supported yet. If you are really interested in this feature, please open a ticket in our bugtracker to follow its status.
Meanwhile, if your scenario is simple, you can always simulate the underline by drawing a line under the text yourself.
Meanwhile, if your scenario is simple, you can always simulate the underline by drawing a line under the text yourself.
Code: Select all
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="FORGOT PASSWORD?" Foreground="Black"/>
<Rectangle Fill="Black" Height="1" VerticalAlignment="Bottom" Margin="0,0,0,1"/>
</Grid>
Re: How to use TextDecorations (such as underline)
Thanks a lot. This workaround solves my problem.
Who is online
Users browsing this forum: No registered users and 2 guests