Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created February 14, 2011 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregoryyoung/826331 to your computer and use it in GitHub Desktop.
Save gregoryyoung/826331 to your computer and use it in GitHub Desktop.
How to make this an ellipse with 2 chars in it?
var ellipse = new Ellipse
{
Fill = Brushes.Red,
StrokeThickness = 2,
Stroke = Brushes.Black,
Height = _glyphSize,
Width = _glyphSize
};
return ellipse; //its as UIElement
@flq
Copy link

flq commented Feb 14, 2011

Try this:

AA

@flq
Copy link

flq commented Feb 14, 2011

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