Skip to main content

Microsoft Silverlight

Problems with inkRSS Feed

(0)

ttupper
ttupper

Member

Member

16 points

11 Posts

Problems with ink

I'm having a few odd problems with Ink, and just cannot get it to work properly.

First, I am using Expression Blend, and whenever I try to provide a background property for my inkpresenter, Blend flags this as an error and will not allow it.  Is this a Blend bug, or have you guys changed the properties for InkPresenter?

Now on to my real problem: I am defining an InkPresenter in my Scene.xaml as follows:

 <InkPresenter
  x:Name="inkPresenterElement"
        Width="340" Height="376"
        MouseLeftButtonDown="InkPresenterMouseDown"
        MouseMove="InkPresenterMouseMove"
        MouseLeftButtonUp="InkPresenterMouseUp"/>

Within my Scene.xaml.js I then have functions like:

function InkPresenterMouseDown(sender, eventArgs) {

   // some stuff

}

When I run my silverlight app, the event doesn not appear to be raised, and I cannot understand why.  Is there some trick to using ink that I am missing?

Many thanks all.

ttupper
ttupper

Member

Member

16 points

11 Posts

Re: Problems with ink

I just wanted to follow up on this for everyone's benefit.

I was able to get InkPresenter to work if and only if I included the "Background" property.  Without it, I could not get any ink events.  When I add Background, however, it works great.

Expression Blend may preview will not allow the Background property in an InkPresenter declaration, and indeed will not even render in design view if such a declaration is present.  However, I cannot get InkPresenter to work without it.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities