Draw Text using GeometryDrawing in WPF
<p>I usually use winform based C#, so I guess don't have proper basic concepts of WPF. Can you give me just a simple suggestion how do i draw text on this GeometryDrawing which looks rectangle area?</p>

<pre><code>Brush brush = new SolidColorBrush(Colors.BlueViolet);
brush.Freeze();
Brush penBrush = new SolidColorBrush(Colors.Red);
penBrush.Freeze();
Pen pen = new Pen(penBrush, 0.5);
pen.Freeze();

//draw a square with the created brush and pen
System.Windows.Rect r = new System.Windows.Rect(0, 0, 100, 30);
Geometry g = new RectangleGeometry(r);
GeometryDrawing drawing = new GeometryDrawing(brush, pen, g);

drawing.Freeze();

DrawingImage drawingImage = new DrawingImage(drawing);
drawingImage.Freeze();

_image = new Image();
_image.Source = drawingImage;
</code></pre>