View Issue Details

IDProjectCategoryView StatusLast Update
0005016NoesisGUIC++ SDKpublic2026-04-29 12:53
ReporterJinFox Assigned Tojsantos  
PrioritynormalSeverityfeature 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target Version3.2.14 
Summary0005016: Request to support InlineUIContainer.BaselineAlignment to simplify vertical centering of inlines when using Richtext
Description

Hello,
I was implementing inclusion of icon in RichText tag and supporting the different font size requires some "hack" of nudging the element you insert up/down using negative margins. However, I see that WPF has a inline baseline alignment that might make that easier but this property isn't exposed in Noesis.
Could you consider adding it?
https://learn.microsoft.com/en-us/dotnet/api/system.windows.documents.inline.baselinealignment?view=windowsdesktop-10.0#system-windows-documents-inline-baselinealignment

Thank you!

PlatformAny

Activities

jsantos

jsantos

2026-04-29 10:14

manager   ~0012287

Yes, this can be implemented.

Could you please share a XAML snippet demonstrating how you intend to use this property? This will help us better understand your scenario and requirements.

JinFox

JinFox

2026-04-29 11:11

reporter   ~0012288

Last edited: 2026-04-29 12:53

Hi sure,
In my usage, it is to be able to simply center Icon or other element I am injecting while using rich text tag (by using RichText::SetTryCreateInlineCallback).
If I create an InlineUIContainer to put inside an image or an icon, it currently align it's baseline to the rest of the text, which is correct behavior but WPF allows us to do this (I wouldn't write it like this in xaml but I would be creating it in cpp to create something to that :

  <TextBlock Foreground="White" Margin="10" FontSize="12">
Center alignment 
<InlineUIContainer BaselineAlignment="Center" >
    <Rectangle Height="30" Width="30" Fill="Yellow"/>
</InlineUIContainer>
  </TextBlock>

And allow us to not have to care about FontSize as it will always be vertically centered (if not I will have to manually calculate negative margin to try to align it myself. Other Alignments are also nice to have but not as essential (like superscript for injecting tooltip "infobubble" for example)

Screenshot_3.png (341,543 bytes)

Issue History

Date Modified Username Field Change
2026-04-28 15:03 JinFox New Issue
2026-04-29 10:13 jsantos Assigned To => jsantos
2026-04-29 10:13 jsantos Status new => assigned
2026-04-29 10:13 jsantos Target Version => 3.2.14
2026-04-29 10:14 jsantos Note Added: 0012287
2026-04-29 10:14 jsantos Status assigned => feedback
2026-04-29 11:11 JinFox Note Added: 0012288
2026-04-29 11:11 JinFox File Added: Screenshot_3.png
2026-04-29 11:11 JinFox Status feedback => assigned
2026-04-29 12:53 jsantos Note Edited: 0012288