Skip to content
Roman Shapiro edited this page Sep 3, 2022 · 7 revisions

All widgets except TextBox do support FontStashSharp rich text syntax. I.e. if we following MML:

<Project>
  <Panel>
    <Label Text="/c[red]First /cd/tuline/n/c[blue]/tdSecond /cd/tsLine" HorizontalAlignment="Center" VerticalAlignment="Center" />
  </Panel>
</Project>

It would be rendered:

image

Or if we take MML:

<Project>
  <Panel>    
   <TextButton Text="E=mc/v[-8]2/n/vdMass–energy equivalence." HorizontalAlignment="Center" VerticalAlignment="Center"/>
  </Panel>
</Project>

It would result in:

image

Clone this wiki locally