2013-09-04 5 views
5

J'ai bloc de texte avec le texte "km2":WPF: Puissance en XAML

<TextBlock >Area(km2)</TextBlock> 

Comment puis-je faire "2" petit et heigher tel exposant je dois voir par exemple sur la photo: enter image description here

+4

'WPF: Puissance en XAML' - Voilà ce que je parle. –

Répondre

3

Vous pouvez créer Inlines et définir Typography.Variants de manière appropriée.

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

un exemple XAML aiderait =) –

+0

@HighCore Déjà fait;) –

+0

Le nom "Typographie" n'existe pas dans l'espace de noms "http://schemas.microsoft.com/client/2007". –

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

semble fonctionner: