View Issue Details

IDProjectCategoryView StatusLast Update
0005004NoesisGUIC++ SDKpublic2026-04-20 18:25
Reporterttermeer-rcg Assigned Tojsantos  
PrioritynormalSeverityfeature 
Status assignedResolutionopen 
Product Version3.2.12 
Target Version3.2 
Summary0005004: Custom TextDecorations
Description

TextBlock currently only support a limited variations of TextDecorations.

in WPF, custom TextDecoration can be designed by using Pen. This is very useful to create dashed underline.

WPF Example:

<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Grid.Resources>  
    <Pen x:Key="KeywordDashedUnderlinePen"
         Brush="Black"
         Thickness="2">
      <Pen.DashStyle>
        <DashStyle Dashes="8,4" Offset="0"/>
      </Pen.DashStyle>
      <Pen.StartLineCap>Square</Pen.StartLineCap>
      <Pen.EndLineCap>Square</Pen.EndLineCap>
    </Pen>
    <TextDecoration x:Key="KeywordDashedUnderlineDecoration"
                      Location="Underline"
                      Pen="{StaticResource KeywordDashedUnderlinePen}"
                      PenThicknessUnit="FontRecommended"/>
    <TextDecorationCollection x:Key="KeywordDashedUnderlineCollection">
      <StaticResource ResourceKey="KeywordDashedUnderlineDecoration"/>
    </TextDecorationCollection>
    <Style x:Key="Keyword" TargetType="Run">
      <Setter Property="TextDecorations" Value="{StaticResource KeywordDashedUnderlineCollection}" />
      <Setter Property="FontWeight" Value="SemiBold"/>
      <Setter Property="Foreground" Value="Black" />
    </Style>
  </Grid.Resources>
  <TextBlock Width="400" FontFamily="./#Muli" VerticalAlignment="Center">
    <Run FontFamily="./#Caladea" Foreground="Gray">Text in a TextBlock doesn't have to be a simple string.</Run>
    <LineBreak/>
    <Span FontSize="16">Text can be 
      <Bold>bold</Bold>, 
      <Italic>italic</Italic>,
      <Underline>underlined</Underline>, or
      <Run Style="{StaticResource Keyword}">underlined dashed</Run>.
    </Span>
  </TextBlock>
</Grid>
PlatformAny

Relationships

related to 0001619 new TextBox.TextDecorations not implemented 
related to 0001616 assignedsfernandez TextDecoration cannot be bound with a ValueConverter specified in the binding 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-04-17 18:16 ttermeer-rcg New Issue
2026-04-20 18:23 jsantos Relationship added related to 0001619
2026-04-20 18:23 jsantos Relationship added related to 0001616
2026-04-20 18:24 jsantos Assigned To => jsantos
2026-04-20 18:24 jsantos Status new => assigned
2026-04-20 18:25 jsantos Target Version => 3.2