From edc62f082f0397c074ee3cfea619d449cf189125 Mon Sep 17 00:00:00 2001 From: jogibear9988 Date: Fri, 31 Oct 2014 23:58:13 +0100 Subject: [PATCH] ^XAML Designer example Project -> Show only Controls with public parameterless Constructor --- samples/XamlDesigner/Toolbox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/XamlDesigner/Toolbox.cs b/samples/XamlDesigner/Toolbox.cs index d4880827a7..b4b400e8c6 100644 --- a/samples/XamlDesigner/Toolbox.cs +++ b/samples/XamlDesigner/Toolbox.cs @@ -78,7 +78,7 @@ namespace ICSharpCode.XamlDesigner static bool IsControl(Type t) { - return !t.IsAbstract && !t.IsGenericTypeDefinition && t.IsSubclassOf(typeof(FrameworkElement)); + return !t.IsAbstract && !t.IsGenericTypeDefinition && t.IsSubclassOf(typeof(UIElement)) && t.GetConstructor(BindingFlags.Public | BindingFlags.Instance, null, Type.EmptyTypes, null) != null; } }