Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1089
Grid with Adorning Editors in Custom Control
posted

I used Josh Smith's DisplayAdorningEditors example which works great however if I put the extended grid in a custom control there is a little problem with the event handlers.  The extender wants a x:Class defined for the event handler, which would be a for the resource not the custom control code behind.  I'm fairly sure it's a one line fix for someone that has a better understanding of wpf controls and routedevents.

It will give 1 build error:

'ResourceDictionary' root element requires a x:Class attribute to support event handlers in the XAML file. Either remove the event handler for the RequestAdorningEditor event, or add a x:Class attribute to the root element.

I tried to attach the sample  Josh's sample + what is needed to recreate the problem. but it's 4.4MB(over the limit).

XamGridAdorners CustomControl.zip