View Issue Details

IDProjectCategoryView StatusLast Update
0003556NoesisGUIC++ SDKpublic2024-07-29 16:50
ReporterJinFox Assigned Tosfernandez  
PrioritynormalSeverityfeature 
Status feedbackResolutionopen 
Product Version3.2.4 
Target Version3.2 
Summary0003556: [Feature request] Custom rich text tag supporting both Content and parameters
Description

Hi, following my ticket https://www.noesisengine.com/bugs/view.php?id=3529 we established a recommended way to extend special Span with content to modify the text more than what style could allow to do (i.e. Lowercase etc)

One of the missing feature for this to be complete would be to inject dynamic parameters for those spans.
Let's take the following example : <SpecialCase Type=PascalCase>some text</>

I can create a custom SpecialCase : public Span class and have it dealt there, but the current code would be required to inject Type=PascalCase into the dependency property which is not happening at the moment.

Would it be possible to add a support to those dynamic parameters to custom tags like the following?
Thanks

PlatformAny

Relationships

related to 0003529 assignedsfernandez Support Rich text extension to add support For text content modification (e.g: Lowercase, Uppercase, etc) 

Activities

sfernandez

sfernandez

2024-07-29 16:49

manager   ~0009842

Last edited: 2024-07-29 16:50

As @maherne detailed in its answer to ticket https://www.noesisengine.com/bugs/view.php?id=3529, if your new SpecialCase type exposes a dependency property to indicate different case modes, you can just define different styles for each of the modes:

<Style x:Key="PascalCase" TargetType="{x:Type local:SpecialCase}">
<Setter Property="Type" Value="PascalCase"/>
</Style>

<Style x:Key="CamelCase" TargetType="{x:Type local:SpecialCase}">
<Setter Property="Type" Value="CamelCase"/>
</Style>

This uses <PascalCase><bold>pascal</>case</> and this <CamelCase><bold>camel</>case</>

There is no need to extend current implementation of RichText to support parameters in style tags.

Issue History

Date Modified Username Field Change
2024-07-29 12:28 JinFox New Issue
2024-07-29 14:06 jsantos Relationship added related to 0003529
2024-07-29 14:07 jsantos Assigned To => sfernandez
2024-07-29 14:07 jsantos Status new => assigned
2024-07-29 14:07 jsantos Target Version => 3.2
2024-07-29 16:49 sfernandez Status assigned => feedback
2024-07-29 16:49 sfernandez Note Added: 0009842
2024-07-29 16:49 sfernandez Note Edited: 0009842
2024-07-29 16:49 sfernandez Note Edited: 0009842
2024-07-29 16:50 sfernandez Note Edited: 0009842