Search code examples
wpfsilverlighttextblockellipse

Add textblock to ellipse in WPF


How to add a TextBlock to an Ellipse in WPF/Silverlight?


Solution

  • Use a Grid, place the Ellipse followed by the TextBlock in the Grid.

    <Grid>
       <Ellipse ...  />
       <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" />
    </Grid>