diff options
Diffstat (limited to 'mcs/class/referencesource/System.Activities.Core.Presentation/System/Activities/Core/Presentation/WhileDesigner.xaml.cs')
-rw-r--r-- | mcs/class/referencesource/System.Activities.Core.Presentation/System/Activities/Core/Presentation/WhileDesigner.xaml.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/class/referencesource/System.Activities.Core.Presentation/System/Activities/Core/Presentation/WhileDesigner.xaml.cs b/mcs/class/referencesource/System.Activities.Core.Presentation/System/Activities/Core/Presentation/WhileDesigner.xaml.cs new file mode 100644 index 00000000000..c0196779087 --- /dev/null +++ b/mcs/class/referencesource/System.Activities.Core.Presentation/System/Activities/Core/Presentation/WhileDesigner.xaml.cs @@ -0,0 +1,33 @@ +//---------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +//---------------------------------------------------------------- + +namespace System.Activities.Core.Presentation +{ + using System.Activities.Presentation.Metadata; + using System.Activities.Presentation.View; + using System.Activities.Presentation.View.OutlineView; + using System.Activities.Statements; + using System.ComponentModel; + + /// <summary> + /// Interaction logic for WhileDesigner.xaml + /// </summary> + partial class WhileDesigner + { + public WhileDesigner() + { + InitializeComponent(); + } + + public static void RegisterMetadata(AttributeTableBuilder builder) + { + Type type = typeof(While); + builder.AddCustomAttributes(type, new DesignerAttribute(typeof(WhileDesigner))); + builder.AddCustomAttributes(type, type.GetProperty("Body"), BrowsableAttribute.No); + builder.AddCustomAttributes(type, type.GetProperty("Variables"), BrowsableAttribute.No); + + builder.AddCustomAttributes(type, type.GetProperty("Condition"), new HidePropertyInOutlineViewAttribute()); + } + } +} |