Hi,
I am trying to change the image shown in the toolbar when the user selects a tool in the toolbar. I tried to change the Source property of the image of the selected tool in the method "MyToolbar_ToolBarItemClicked" which is called when the user selects a tool. When I click on a tool, I get the following message:
Microsoft JScript runtime error: Unhandled Error in Silverlight Application Object reference not set to an instance of an object. at LacationMapViewer.MainPage.MyToolbar_ToolbarItemClicked(Object sender, SelectedToolbarItemArgs e)
at ESRI.ArcGIS.Client.Toolkit.Toolbar.contentElement_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
As anyone tried to do this?
Paul