Page 1 of 1

Inline text block styles

Posted: 16 Nov 2015, 16:39
by TrevorP
Hey guys,

I'm having trouble trying to format a substring of text in a textblock. An example would be
<TextBlock Margin="10" TextWrapping="Wrap">
    TextBlock with <Bold>bold</Bold>, <Italic>italic</Italic> and <Underline>underlined</Underline> text.
</TextBlock>
I tried this and the text within tags just didn't render. Is there another way to achieve this using noesisGUI? I'm currently using Noesis 1.2.4 for Unity.

Thanks,

Re: Inline text block styles

Posted: 16 Nov 2015, 17:42
by jsantos
Inlines are not supported yet. They are planned for v1.3. Right now, the solution is doing it manually (yes we know it is far from an ideal solution):
<StackPanel x:Name="DescContent" Orientation="Vertical" Margin="8,0">
	<Grid Margin="0,4,0,0">
		<TextBlock FontWeight="Bold" Text=" · Release:"/>
		<TextBlock TextWrapping="Wrap" Text="                the Click event..." Margin="10,0,0,0"/>
	</Grid>
</StackPanel>

Re: Inline text block styles

Posted: 04 Dec 2015, 22:41
by JoeyD
You're right, this is far from ideal and won't work if the text is dynamic, or even if the font is not monospaced.

Re: Inline text block styles

Posted: 05 Dec 2015, 15:20
by jsantos
We know. The right solution is coming! Please, a bit of patience : )