O'Reilly logo

Microsoft Silverlight 4 Business Application Development Beginner's Guide by Frank LaVigne, Cameron Albert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - building a basic sketching application

Let's build out a sketching application in Silverlight using the InkPresenter control and a little bit of code.

  1. Launch Visual Studio and create a new Silverlight application by choosing File|New|Project from the file menu and choosing Silverlight Application in the dialog box that follows.
  2. Name the solution SilverInk.
  3. Once the solution is created, we'll want to add the following line of XAML inside the Grid element already in our MainPage.xaml:
    <InkPresenter x:Name="inkPresenter" Background="LightBlue" MouseLeftButtonDown="inkPresenter_MouseLeftButtonDown"
    MouseLeftButtonUp="inkPresenter_MouseLeftButtonUp"
    MouseMove="inkPresenter_MouseMove"
    />
    
  4. The fastest and easiest way to create event handlers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required