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 - controlling the appearance of Ink

Let's add the ability to highlight our drawing. We'll need to add a few interface elements to switch back and forth between highlighter mode and regular pen mode. We will do this now as follows:

  1. Firstly, load up the project we created in the SilverInk solution just created in Launch Visual Studio.
  2. Let's add some space for a miniature toolbar in our application to hold buttons.
  3. To do this, we'll need to split the Grid named LayoutRoot into two rows. In MainPage.xaml, add the following XAML code belongs right below the line of code<Grid x:Name="LayoutRoot" Background="White">:
    <Grid.RowDefinitions>
    <RowDefinition Height="40" />
    <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    
  4. The above line creates ...

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