c0196779087ef807ba14a3c33a48d58ed69a9642
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Core.Presentation / System / Activities / Core / Presentation / WhileDesigner.xaml.cs
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4
5 namespace System.Activities.Core.Presentation
6 {
7     using System.Activities.Presentation.Metadata;
8     using System.Activities.Presentation.View;
9     using System.Activities.Presentation.View.OutlineView;
10     using System.Activities.Statements;
11     using System.ComponentModel;
12
13     /// <summary>
14     /// Interaction logic for WhileDesigner.xaml
15     /// </summary>
16     partial class WhileDesigner
17     {
18         public WhileDesigner()
19         {
20             InitializeComponent();
21         }
22
23         public static void RegisterMetadata(AttributeTableBuilder builder)
24         {
25             Type type = typeof(While);
26             builder.AddCustomAttributes(type, new DesignerAttribute(typeof(WhileDesigner)));
27             builder.AddCustomAttributes(type, type.GetProperty("Body"), BrowsableAttribute.No);
28             builder.AddCustomAttributes(type, type.GetProperty("Variables"), BrowsableAttribute.No);
29
30             builder.AddCustomAttributes(type, type.GetProperty("Condition"), new HidePropertyInOutlineViewAttribute());
31         }
32     }
33 }