Browse Source

Make right aligned text work.

Need to supply a constraint in order to know where to align it.
pull/58/head
Steven Kirk 11 years ago
parent
commit
2931263d5d
  1. 1
      Perspex.Controls/TextBlock.cs

1
Perspex.Controls/TextBlock.cs

@ -133,6 +133,7 @@ namespace Perspex.Controls
context.FillRectange(background, new Rect(this.Bounds.Size)); context.FillRectange(background, new Rect(this.Bounds.Size));
} }
this.FormattedText.Constraint = this.Bounds.Size;
context.DrawText(this.Foreground, new Point(), this.FormattedText); context.DrawText(this.Foreground, new Point(), this.FormattedText);
} }

Loading…
Cancel
Save