How to draw a pre-drawn shape on InkCanvas without treating it as Stroke RRS feed

  • Question

  • Hi

    I am using WPF to create the ink software. I am trying to draw some pre-drawn shape using XAML such as
    <InkCanvas Width="140" Height="100" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" x:Name="canvas">
    <Line X1="0" Y1="0" X2="140" Y2="0" Stroke="Black" StrokeThickness="1"></Line
    <Ellipse x:Name="TopLeftCircle" InkCanvas.Top="20" InkCanvas.Left="20" Fill="Black"></Ellipse>

    Using the above XAML, the bitmap picture of strokes from InkCanvas draws the strokes and the pre-drawn shape. All I want is to save only the strokes from the InkCanvas as a bitmap picture, excluding the pre-drawn shapes.

    Wednesday, May 28, 2008 3:12 PM