Inline text block styles
Hey guys,
I'm having trouble trying to format a substring of text in a textblock. An example would be
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,
I'm having trouble trying to format a substring of text in a textblock. An example would be
Code: Select all
<TextBlock Margin="10" TextWrapping="Wrap">
TextBlock with <Bold>bold</Bold>, <Italic>italic</Italic> and <Underline>underlined</Underline> text.
</TextBlock>
Thanks,
Re: Inline text block styles
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):
Code: Select all
<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
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
We know. The right solution is coming! Please, a bit of patience : )
Who is online
Users browsing this forum: Bing [Bot] and 1 guest