2013-09-04 4 views
5

Ich habe Textblock mit dem Text "km2":WPF: Macht in XAML

<TextBlock >Area(km2)</TextBlock> 

Wie kann ich "2" kleine und heigher solche Exponenten wir sehen müssen solches Bild machen: enter image description here

+4

'WPF: Macht in XAML' - Das ist, was ich rede. –

Antwort

3

Sie können Inlines erstellen und Typography.Variants entsprechend festlegen.

<TextBlock><Run>Area(km</Run><Run Typography.Variants="Superscript">2</Run><Run>)</Run></TextBlock> 
+0

ein XAML-Beispiel würde helfen =) –

+0

@HighCore Bereits getan;) –

+0

Der Name "Typography" existiert nicht im Namespace "http://schemas.microsoft.com/client/2007". –

1
<TextBlock Text="Area(km²)"/> 

scheint zu funktionieren: