I'm getting the following error using a custom routed event:
The local property "CustomClick" can only be applied to types that are derived from the "ExampleClass".
Here is my ExampleClass:
public class ExampleClass
{
public static readonly RoutedEvent CustomClickEvent = EventManager.RegisterRoutedEvent("CustomClick", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(ExampleClass));
public event RoutedEventHandler CustomClick
{
add { AddHandler(CustomClickEvent , value); }
remove { RemoveHandler(CustomClickEvent , value); }
}
}
And in the XAML im trying to subscribe to the event as follow:
<Panel local:ExampleClass.CustomClick="OnCustomClicked">
<local:ExampleClass/>
</Panel>
Edit: everything works in 32 bit, only get the error using 64 bit platform.