Created
February 14, 2011 18:46
-
-
Save gregoryyoung/826331 to your computer and use it in GitHub Desktop.
How to make this an ellipse with 2 chars in it?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ellipse = new Ellipse | |
{ | |
Fill = Brushes.Red, | |
StrokeThickness = 2, | |
Stroke = Brushes.Black, | |
Height = _glyphSize, | |
Width = _glyphSize | |
}; | |
return ellipse; //its as UIElement |
or, work with CornerRadius on Border to get that elliptic feel:
<Border Width="100" Height="30" CornerRadius="50" BorderBrush="Black" BorderThickness="2">
<Label VerticalContentAlignment="Center" HorizontalAlignment="Center">AA</Label>
</Border>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this:
AA