View Issue Details

IDProjectCategoryView StatusLast Update
0003068NoesisGUIUnrealpublic2024-02-06 00:37
Reportermaherne Assigned Tomaherne  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.3 
Target Version3.2.3Fixed in Version3.2.3 
Summary0003068: Add support for TargetType to Unreal RichText Style tags
Description

When using a Style key tag, in Unreal RichText, the Style.TargetType property should be used to create an element of that type. This will allow you to create customised inline elements using templates.

If the TargetType is a ContentControl, and the Style tag has content, then this content is set to the ContentControl.Content property. You can use a ContentPresenter to display this.

For example:

<Style x:Key="RndCorner" TargetType="ContentControl">
<Setter Property="Background" Value="Gray"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContentControl">
<Border Background="{TemplateBinding Background}" CornerRadius="4">
<ContentPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

<TextBlock noesis:RichText.Text="This is an example of text that has the prompt <RndCorner>Backspace</> inside of it"/>

PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-02-05 21:57 maherne New Issue
2024-02-05 21:57 maherne Assigned To => maherne
2024-02-05 21:57 maherne Status new => assigned
2024-02-06 00:37 jsantos Fixed in Version => 3.2.3
2024-02-06 00:37 jsantos Target Version => 3.2.3
2024-02-06 00:37 jsantos Description Updated
2024-02-06 00:37 jsantos Status assigned => resolved
2024-02-06 00:37 jsantos Resolution open => fixed