Compiling SLExtensions.Controls

Nov 13, 2009 at 3:47 PM
Edited Nov 13, 2009 at 3:48 PM

I just downloaded 35533 and expanded the trunk so I could get ahold of all the good here. I seem to have an error compiling the SLExtensions.Controls and I don't want to mess with much in case I don't have to.

public

static void Initialize()
{
    if (!LayerHostMouseWheelHelper.initialized)
    {
       //error on this line
       MouseWheelGenerator.MouseWheelEvent.RegisterClassHandler(typeof(LayerHost), LayerHostMouseWheelHelper.HandleMouseWheel, false);
       LayerHostMouseWheelHelper.initialized = true;

    }
}

Error 3 Argument '2': cannot convert from 'method group' to 'System.EventHandler<SLExtensions.Controls.MouseWheelEventArgs>' 
\Releases\SLExtensions.Controls\Layers\LayerHost.cs 891
 85 SLExtensions.Controls

Coordinator
Nov 13, 2009 at 6:05 PM

I think you are trying to compile the SL2 branch with silverlight 3. Be sure to launch trunk\SLExtensions\slextensions.sln

Thierry