C# : Draw Lines on top of Image in WPF
<p>I am filling Grid with image that I Draw Programatically.</p>

<p>Now, I want to draw lines(Horizontal and vertial) on top of the Image. After adding Image to the grid as children, I want to draw lines. How can I do this ?</p>

<pre><code>var image = new System.Windows.Controls.Image
        {
            Source = DrawImage(products),
            Width = options.OutputWidth,
            Height = options.OutputHeight
        };

        var grid = new Grid();
        grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
        grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
        grid.Children.Add(image);
</code></pre>