Loading ...
Sorry, an error occurred while loading the content.
 

Microsoft's XAML vs SVG

Expand Messages
  • Philip Mansfield
    ... I ll leave you to draw your own conclusions. ... [Non-text portions of this message have been removed]
    Message 1 of 62 , Oct 28, 2003
      > > <<...OLE_Obj...>>
      >
      > Here is a snippet of XAML to connect four red dots with a black line:
      >
      > <Canvas xmlns="using:System.Windows;System.Windows.Controls;System.Windows.Documents;
      > System.Windows.Shapes;System.Windows.Media;System.Windows.Presenters"
      > Height="600"
      > Width="100%"
      > Background="White">
      >
      > <!-- Path uses absolute coordinates for its data path -->
      > <Path Stroke="#000000"
      > Data="M30,30 L80,30 L30,90 L80,90"></Path>
      >
      > <Ellipse CenterX="30" CenterY="30" RadiusX="4" RadiusY="4" Stroke="red" Fill="red"/>
      > <Ellipse CenterX="80" CenterY="30" RadiusX="4" RadiusY="4" Stroke="red" Fill="red"/>
      > <Ellipse CenterX="30" CenterY="90" RadiusX="4" RadiusY="4" Stroke="red" Fill="red"/>
      > <Ellipse CenterX="80" CenterY="90" RadiusX="4" RadiusY="4" Stroke="red" Fill="red"/>
      >
      > </Canvas>
      >
      > Look familiar? OK, let me translate:
      >
      > <svg xmlns="http://www.w3.org/2000/svg"
      > height="600"
      > width="100%">
      >
      > <!-- path uses absolute coordinates for its data path -->
      > <path stroke="#000000" fill="none"
      > d="M30,30 L80,30 L30,90 L80,90"></path>
      >
      > <ellipse cx="30" cy="30" rx="4" ry="4" stroke="red" fill="red"/>
      > <ellipse cx="80" cy="30" rx="4" ry="4" stroke="red" fill="red"/>
      > <ellipse cx="30" cy="90" rx="4" ry="4" stroke="red" fill="red"/>
      > <ellipse cx="80" cy="90" rx="4" ry="4" stroke="red" fill="red"/>
      >
      > </svg>
      >
      I'll leave you to draw your own conclusions.

      > Cheers,
      >
      > Philip


      [Non-text portions of this message have been removed]
    • frankhileman
      And another shot: http://www.prodigesoftware.com/screen2.png Frank Hileman
      Message 62 of 62 , Nov 1 12:37 PM
        And another shot:
        http://www.prodigesoftware.com/screen2.png

        Frank Hileman
      Your message has been successfully submitted and would be delivered to recipients shortly.