0
Reply

Need help with code for building a mouse-enabled controls & adding a mouse control, with Microsoft MultiPoint sdk in WPF

Simen  S M

Simen S M

Jan 20 2012 12:28 PM
2.3k
Hi guys!

Im trying to follow this guide right HERE, but I'm facing some problems.
Im not so good with C#, so Im trying to recognise how to do this.

The first code from the link, Im having this in VB.NET:

Public Class MultipointButton
 
Inherits System.Windows.Controls.Button
 
Implements IMultipointMouseEvents, IMultipointGenericDeviceEvents
End Class

But that does not seem to work.

And Im also trying to add a mouse control, you guys can see  HERE. When it comes to adding a reference to the namespace, Im getting this error: Error   1   Unknown build error, ''clr-namespace:Microsoft.Multipoint.Sdk.Controls; assembly=Microsoft.Multipoint.Sdk.Controls' mapping URI is not valid. Line 4 Position 10.'
 when I adding this in the MainWindow.xaml file:
xmlns:mp="clr-namespace:Microsoft.Multipoint.Sdk.Controls; assembly=Microsoft.Multipoint.Sdk.Controls"

I have added sdk.controls.dll in the reference under properties.

Please help, thank you.

Attachment: wpfapplication2.rar