title: How to add text to the shapes in WPF
body: <p>I am drawing <code>Circle</code> on an <code>WPF</code> window. The problem is that I am unable add <code>Text</code> to the <code>Circle</code>. The code is given below:</p>
  
  <pre><code>public Graphics()
  {
      InitializeComponent();
  
      StackPanel myStackPanel = new StackPanel();
      Ellipse myel = new Ellipse();
      SolidColorBrush mscb = new SolidColorBrush();
      mscb.Color = Color.FromArgb(255, 255, 0, 0);
      myel.Fill = mscb;
      myel.StrokeThickness = 2;
      myel.Stroke = Brushes.Black;
      myel.Width = 100;
      myel.Height = 100;
      //string str = "hello";
      myStackPanel.Children.Add(myel);
      this.Content = myStackPanel;
  }
  </code></pre>
  
  <p>Please help me in this regard.</p>