-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
When declaring a DP using Bindables in a generic class, the application freezes.
namespace BindablesGeneric
{
public class MyLabel : MyLabel<string>
{
}
public class MyLabel<T> : Label
{
//This one hang the execution, need to force close Visual Studio
[DependencyProperty]
public object MyProperty { get; set; }
//This one works
//public static readonly DependencyProperty MyPropertyProperty =
// DependencyProperty.Register(nameof(MyProperty), typeof(object), typeof(MyLabel<T>), new PropertyMetadata(null));
//public object MyProperty
//{
// get { return (object)GetValue(MyPropertyProperty); }
// set { SetValue(MyPropertyProperty, value); }
//}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels