Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Setting Click prperty in WPF desiger causes error and function not created

$
0
0

 

DearCSharp team,

I received this error message.When I set the "click " property on a button it shoiuld create C~code to hand the event, right?

Regards,

David Hyde

 

 

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.00079
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : Invariant Language (Invariant Country) ()
Current UI language  : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 230428kb
GC Heap Memory       : 85738kb

Unhandled WPF exception
Exception thrown:
System.ArgumentNullException: Value cannot be null.
Parameter name: node
   at ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver.GetResolverStateAfter(AstNode node, CancellationToken cancellationToken)
   at CSharpBinding.Refactoring.CSharpCodeGenerator.InsertEventHandler(ITypeDefinition target, String name, IEvent eventDefinition, Boolean jumpTo, InsertEventHandlerBodyKind bodyKind)
   at ICSharpCode.WpfDesign.AddIn.SharpDevelopEventHandlerService.CreateEventHandler(DesignItemProperty eventProperty)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.Commit()
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.OnKeyDown(KeyEventArgs e)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
13:21:26.650 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.DesignTabPage}
13:21:26.650 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:21:35.210 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:35.210 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:42.038 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:42.038 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:43.898 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:43.898 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:21:45.429 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
13:21:45.429 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml]
13:21:45.444 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml]
13:21:47.575 [1] DEBUG - Resolved (Line 41, Col 3) to [ErrorResolveResult ?]
13:21:47.575 [1] DEBUG - ParseInformationUpdated C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml (updated)
13:21:52.419 [1] DEBUG - Resolved (Line 45, Col 5) to [ErrorResolveResult ?]
13:22:09.544 [1] DEBUG - Resolved (Line 52, Col 5) to [ErrorResolveResult ?]
13:22:36.841 [1] DEBUG - Resolved (Line 39, Col 3) to [ErrorResolveResult ?]
13:22:42.852 [1] DEBUG - NavigationService
    ActiveViewContent: Window1.xaml
              Subview: ${res:FormsDesigner.DesignTabPages.DesignTabPage}
13:22:42.852 [1] DEBUG - ActiveViewContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:22:42.883 [1] ERROR - Error in loading app.xaml
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ICSharpCode.WpfDesign.AddIn.WpfViewContent.LoadInternal(OpenedFile file, Stream stream)
13:22:42.883 [1] DEBUG - ActiveContentChanged to ICSharpCode.WpfDesign.AddIn.WpfViewContent
13:22:45.472 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:22:45.472 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.WpfDesign.Designer.resources, Version=5.1.0.5134, Culture=en, PublicKeyToken=f829da5c02be14ee
13:22:56.800 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.PropertyPad
13:23:21.744 [1] INFO - Open file C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon\Window1.xaml
13:23:21.745 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: node
   at ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver.GetResolverStateAfter(AstNode node, CancellationToken cancellationToken)
   at CSharpBinding.Refactoring.CSharpCodeGenerator.InsertEventHandler(ITypeDefinition target, String name, IEvent eventDefinition, Boolean jumpTo, InsertEventHandlerBodyKind bodyKind)
   at ICSharpCode.WpfDesign.AddIn.SharpDevelopEventHandlerService.CreateEventHandler(DesignItemProperty eventProperty)
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.Commit()
   at ICSharpCode.WpfDesign.Designer.PropertyGrid.Editors.EventEditor.OnKeyDown(KeyEventArgs e)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\David Hyde\Documents\SharpDevelop Projects\RestartRiibbon\RestartRiibbon.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: RestartRiibbon]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.PropertyPad


Viewing all articles
Browse latest Browse all 1764

Trending Articles