Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 3 results for drawing.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Paul Pleasant  on  Jul 28, 2010 (1 day ago)
    Tags: drawing , graffiti
    Sir Spray-Z is a simple drawing application for creating graffiti images using up to five spray paint cans, lines, rectangles, or ellipses. Watch the spray cans shake as you select a color for each can. Click the gray bar to hide the toolbox and draw on the entire browser window. Go to http://sirsprayz.com/ to use this fun application.


  • Working with Drawing Brushes

    0 comments  /  posted by  Silverlight Show  on  Jul 01, 2009 (more than a year ago)
    In this post Dante Gagne explains what is a Drawing Brush, how to use it, what it's good for and so on.

    First off, what is a DrawingBrush? It's one of the three kinds of TileBrushes that WPF recognizes (along with ImageBrush and VisualBrush). Simply put, it allows you to use a Drawing as a brush, to use on any arbitrary shape.

    So, what's a Drawing? A Drawing is simply a set of Visual Elements. You can use pretty much any visuals, rectangles, buttons, Images, etc... but once they become a Drawing, they are no longer interactive.

  • 0 comments  /  posted by  Martin Mihaylov  on  Sep 05, 2008 (more than a year ago)

    You can draw a line decleratively in the Xaml or dynamically in the codebehind. Here it is how it's done in the both ways:

    Xaml

    <Line x:Name="MyLine" X1="0" Y1="0" X2="100" Y2="100" Stroke="Yellow" StrokeThickness="2" />

    C#

    Line myLine = new Line();
    myLine.X1 = 0;
    myLine.Y1 = 0;
    myLine.X2 = 100;
    myLine.Y2 = 100;
    myLine.Stroke = new SolidColorBrush( Colors.Yellow );
    myLine.StrokeThickness = 2;

    X1 and Y1 represent the start point of the line and X2 and Y2 - the end point. With the Stroke and StrokeThickness properties we define the color and the thickness of the line.

    That's it!


Did you notice our new Silverlight-based Showcase section ? Check it out to get a bird's eye view of all showcases featured on SilverlightShow, with a quick thumbnail preview for easier browsing. Want to view the most recent showcases only? Use Group by Month option for a chronological listing.
This is the second redesigned, entirely Silverlight-based section in SilverlightShow, after the new Books section. We look forward to your feedback on both! (hide this)