Canvas without Viewbox : Canvas « Windows Presentation Foundation « C# / C Sharp

Canvas without Viewbox

Canvas without Viewbox

<Window xmlns="">

  <Canvas Width="18" Height="18" VerticalAlignment="Center">
    <Ellipse Canvas.Left="1" Canvas.Top="1" Width="16" Height="16" Fill="Yellow" Stroke="Black" />
    <Ellipse Canvas.Left="4.5" Canvas.Top="5" Width="2.5" Height="3" Fill="Black" />
    <Ellipse Canvas.Left="11" Canvas.Top="5" Width="2.5" Height="3" Fill="Black" />
    <Path Data="M 5,10 A 3,3 90 0 0 13,10" Stroke="Black" />



Related examples in the same category

1.Nested CanvasNested Canvas
2.Positioning on a CanvasPositioning on a Canvas
3.Animation target Canvas Left, TopAnimation target Canvas Left, Top
4.Pixel Not SnappedPixel Not Snapped
5.Rotate ShapeRotate Shape
6.Canvas dependantCanvas dependant
7.Simple Canvas LayoutSimple Canvas Layout
11.Canvas PreviewMouseDown action and MouseDown actionCanvas PreviewMouseDown action and MouseDown action
12.Create a Scrollable Canvas ControlCreate a Scrollable Canvas Control
13.Create a Zoomable Canvas ControlCreate a Zoomable Canvas Control
14.Set control position for CanvasSet control position for Canvas
15.Canvas Positioning Properties SampleCanvas Positioning Properties Sample
16.Get position on a Canvas with Canvas.GetLeftGet position on a Canvas with Canvas.GetLeft