Hello,

  Ian Griffiths (DevelopMentor) has written-up an
article for the Microsoft Developer Network (MSDN)
site titled "Introducing the New Avalon Graphics
Model" that shows you how you can use the XAML
SVG-like markup to create vector graphics using the
graphics machinery code-named Avalon shipping with
Windows 2009. 

   Here's a sample:

<Canvas
xmlns="http://schemas.microsoft.com/2009/xaml/";>
  <Polygon Points="5,5 35,5 65,35 65,65 35,65 5,35"
Stroke="Black">
    <Polygon.Fill>
      <LinearGradientBrush StartPoint="0,0"
EndPoint="1,1">
        <LinearGradientBrush.GradientStops>
          <GradientStopCollection>
            <GradientStop Color="red" Offset="0"/>
            <GradientStop Color="magenta"
Offset="0.5"/>
            <GradientStop Color="cyan" Offset="1"/>
          </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
      </LinearGradientBrush>
    </Polygon.Fill>
  </Polygon>
</Canvas>    


    Ian concludes:

The new graphics model introduced by Longhorn offers
the best aspects of previous approaches to building
the UI, such as Win32-style repainting, bitmap backing
store, and HTML-based user interfaces. It provides a
powerful set of drawing primitives and makes them very
straightforward to use through markup, relieving
application developers of the more tedious aspects of
getting the user interface to appear on screen. At
runtime, there is an object model that reflects the
structure of the markup, making it very easy to
manipulate the display and keep it up-to-date. All of
this is built on top of a new display model that
removes many of the restrictions of the old Win32
model, enabling much more interesting visual effects
with its powerful new composition engine.    

    Full story @
http://msdn.microsoft.com/longhorn/default.aspx?pull=/library/en-us/dnlong/html/avalongraphics.asp

   - Gerald      


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xul-announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xul-announce

Reply via email to