當前位置: 首頁>>代碼示例>>C#>>正文


C# AttributeTableBuilder類代碼示例

本文整理匯總了C#中AttributeTableBuilder的典型用法代碼示例。如果您正苦於以下問題:C# AttributeTableBuilder類的具體用法?C# AttributeTableBuilder怎麽用?C# AttributeTableBuilder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AttributeTableBuilder類屬於命名空間,在下文中一共展示了AttributeTableBuilder類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AddAttributes

 /// <summary>
 /// Provide a place to add custom attributes without creating a AttributeTableBuilder subclass.
 /// </summary>
 /// <param name="builder">The assembly attribute table builder.</param>
 protected override void AddAttributes(AttributeTableBuilder builder)
 {
     //// Note: duplicated here due to change in extensibility framework for Blend 3
     builder.AddCallback(typeof(AllergiesLabel), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(ColumnManager), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(ConceptListBox), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(CuiToggleButton), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DataBoundCell), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DataBoundRowGrouping), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DataSelector), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DataSelectorItem), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DecoratorItemContainer), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DecoratorItemsControl), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(DecoratorItemsWrapPanel), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(FilterControl), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(GraphBase), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(GraphPoint), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(GroupingControl), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(Label), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(LookAheadView), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(LookBehindView), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(MainView), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(MatchingTermItemContainer), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(MatchingTermItemsControl), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(PanelWrapper), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(TermItem), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(LevelOfDetailTick), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(TimeGraphBase), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(TimeIBarGraph), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(true))); // true required as inherits false from parent
     builder.AddCallback(typeof(TimeLineGraph), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(true))); // true required as inherits false from parent
     builder.AddCallback(typeof(TimeActivityGraph), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(true))); // true required as inherits false from parent
     builder.AddCallback(typeof(VisualFocusLine), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(WaitAnimation), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(typeof(MedicationLabel), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
 }
開發者ID:rbirkby,項目名稱:mscui,代碼行數:39,代碼來源:MetadataRegistration.cs

示例2: AddAttributes

 /// <summary>
 /// Provide a place to add custom attributes without creating a AttributeTableBuilder subclass.
 /// </summary>
 /// <param name="builder">The assembly attribute table builder.</param>
 protected override void AddAttributes(AttributeTableBuilder builder)
 {
     // Note: everything added here must be duplicated in VisualStudio.Design as well!
     builder.AddCallback(
         typeof(SSWCP.LinearClipper),
         b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
 }
開發者ID:ericschultz,項目名稱:wpftoolkit,代碼行數:11,代碼來源:MetadataRegistration.cs

示例3: AddAttributes

        protected override void AddAttributes(AttributeTableBuilder builder)
        {
            builder.AddCallback(
                typeof(SSWCDC.AreaDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.BarDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.BubbleDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.ColumnDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.LineDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.PieDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.ScatterDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            builder.AddCallback(
                typeof(SSWCDC.LegendItem),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            builder.AddCallback(
                typeof(SSWCDC.DataPointSeriesDragDropTarget),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
        }
開發者ID:shijiaxing,項目名稱:SilverlightToolkit,代碼行數:32,代碼來源:MetadataRegistration.cs

示例4: AddMonthViewDesigners

        private void AddMonthViewDesigners()
        {
            var builder = new AttributeTableBuilder();
            builder.AddCustomAttributes(typeof (FXMonthView), new FeatureAttribute(typeof (MonthViewDesignAdorner)));

            MetadataStore.AddAttributeTable(builder.CreateTable());
        }
開發者ID:Jalalx,項目名稱:FarsiLibrary,代碼行數:7,代碼來源:VisualStudioMetadata.cs

示例5: AddTables

        private static void AddTables(AttributeTableBuilder builder)
        {
            Debug.Assert(builder != null, "AddTables is called with null parameter!");

            Assembly asm = Assembly.GetExecutingAssembly();
            foreach (Type t in asm.GetTypes())
            {
                if (t.IsSubclassOf(typeof(AttributeTableBuilder)))
                {
                    try
                    {
                        AttributeTableBuilder atb = (AttributeTableBuilder)Activator.CreateInstance(t);
                        builder.AddTable(atb.CreateTable());
                    }
                    catch (Exception e)
                    {
                        if (e.IsFatal())
                        {
                            throw;
                        }
                        Debug.Assert(false, string.Format(CultureInfo.InvariantCulture, "Exception in AddTables method: {0}", e));
                    }
                }
            }
        }
開發者ID:OpenRIAServices,項目名稱:OpenRiaServices,代碼行數:25,代碼來源:MetadataBase.cs

示例6: AddAttributes

        /// <summary>
        /// Provide a place to add custom attributes without creating a AttributeTableBuilder subclass.
        /// </summary>
        /// <param name="builder">The assembly attribute table builder.</param>
        protected override void AddAttributes(AttributeTableBuilder builder)
        {
            builder.AddCallback(
                typeof(SSWC.ChildWindow),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            builder.AddCallback(
                typeof(SSWC.TreeViewItem),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            builder.AddCallback(
                typeof(SSWCP.CalendarButton),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCP.CalendarDayButton),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCP.CalendarItem),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCP.DatePickerTextBox),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWC.TabItem),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            // duplicated from Design
            builder.AddCallback(
                typeof(SSWCP.TabPanel),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
        }
開發者ID:kvervo,項目名稱:HorizontalLoopingSelector,代碼行數:35,代碼來源:MetadataRegistration.cs

示例7: AddBaseDefinitionAttributes

 private static void AddBaseDefinitionAttributes(AttributeTableBuilder builder)
 {
     builder.AddCallback(typeof(BaseDefinition),
                         b =>
                         {
                             // BaseDefinition properties
                             b.AddCustomAttributes("AllowDrop", new BrowsableAttribute(false));
                             b.AddCustomAttributes("BindingGroup", new BrowsableAttribute(false));
                             b.AddCustomAttributes("CommandBindings", new BrowsableAttribute(false));
                             b.AddCustomAttributes("ContextMenu", new BrowsableAttribute(false));
                             b.AddCustomAttributes("Cursor", new BrowsableAttribute(false));
                             b.AddCustomAttributes("DataContext", new BrowsableAttribute(false));
                             b.AddCustomAttributes("FocusVisualStyle", new BrowsableAttribute(false));
                             b.AddCustomAttributes("Focusable", new BrowsableAttribute(false));
                             b.AddCustomAttributes("ForceCursor", new BrowsableAttribute(false));
                             b.AddCustomAttributes("InputScope", new BrowsableAttribute(false));
                             b.AddCustomAttributes("IsEnabled", new BrowsableAttribute(false));
                             b.AddCustomAttributes("Language", new BrowsableAttribute(false));
                             b.AddCustomAttributes("Name", new BrowsableAttribute(false));
                             b.AddCustomAttributes("OverridesDefaultStyle", new BrowsableAttribute(false));
                             b.AddCustomAttributes("Resources", new BrowsableAttribute(false));
                             b.AddCustomAttributes("Style", new BrowsableAttribute(false));
                             b.AddCustomAttributes("ToolTip", new BrowsableAttribute(false));
                         });
 }
開發者ID:ComponentFactory,項目名稱:Quicksilver,代碼行數:25,代碼來源:LayoutMetadata.cs

示例8: AddAttributes

        protected override void AddAttributes(AttributeTableBuilder builder)
        {
            // duplicated from .Design
            //MessageBox.Show("MetadataRegistration AddAttributes");

            /*builder.AddCallback(
                typeof(SSWCD.Interpolator),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.AxisLabel),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.DateTimeAxisLabel),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDCP.EdgePanel),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));*/

            //builder.AddCallback(
            //    typeof(CustomControl1),
            //    b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            //builder.AddCustomAttributes(typeof(CustomControl1), new FeatureAttribute(typeof(OpacitySliderAdornerProvider)));

            builder.AddTable(new CustomControl1Metadata().CreateTable());
            /*builder.AddCallback(
                typeof(SSWCDC.NumericAxisLabel),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCD.Title),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            // VisualStudio.Design's own stuff

            builder.AddCallback(
                typeof(SSWCDC.AreaDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.BarDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.BubbleDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.ColumnDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.LineDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.PieDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(
                typeof(SSWCDC.ScatterDataPoint),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

            builder.AddCallback(
                typeof(SSWCDC.LegendItem),
                b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));*/
        }
開發者ID:Jedzia,項目名稱:BackBock,代碼行數:60,代碼來源:MetadataRegistration.cs

示例9: AddAttributes

        /// <summary>
        /// Provide a place to add custom attributes without creating a AttributeTableBuilder subclass.
        /// </summary>
        /// <param name="builder">The assembly attribute table builder.</param>
        protected override void AddAttributes(AttributeTableBuilder builder)
        {
            builder.AddCallback(typeof(SSWC.DataForm), b => b.AddCustomAttributes(new ToolboxCategoryAttribute("Data", true)));
            builder.AddCallback(typeof(SSWC.DataField), b => b.AddCustomAttributes(new ToolboxCategoryAttribute("Data", true)));

            // Note: everything added here must be duplicated in VisualStudio.Design as well!
            builder.AddCallback(typeof(SSWC.DataForm), b => b.AddCustomAttributes(new DefaultBindingPropertyAttribute(Extensions.GetMemberName<SSWC.DataForm>(x => x.ItemsSource))));
        }
開發者ID:kvervo,項目名稱:HorizontalLoopingSelector,代碼行數:12,代碼來源:Metadata.cs

示例10: Register

		public void Register()
		{
			AttributeTableBuilder tableBuilder = new AttributeTableBuilder();

			tableBuilder.AddCustomAttributes(typeof(PieChart), new FeatureAttribute(typeof(PieChartDesignModeValueProvider)));

			MetadataStore.AddAttributeTable(tableBuilder.CreateTable());
		}
開發者ID:XiBeichuan,項目名稱:hydronumerics,代碼行數:8,代碼來源:Metadata.cs

示例11: BuildAttributeTable

        /// <summary>
        /// Builds the design time attribute table.
        /// </summary>
        /// <returns>Custom attribute table.</returns>
        private static AttributeTable BuildAttributeTable()
        {
            AttributeTableBuilder builder = new AttributeTableBuilder();

            AddAttributes(builder);

            return builder.CreateTable();
        }
開發者ID:harunpehlivan,項目名稱:LiveSDK-for-Windows,代碼行數:12,代碼來源:MetadataBase.cs

示例12: AddAttributes

 /// <summary>
 /// Provide a place to add custom attributes without creating a AttributeTableBuilder subclass.
 /// </summary>
 /// <param name="builder">The assembly attribute table builder.</param>
 protected override void AddAttributes(AttributeTableBuilder builder)
 {
     builder.AddCallback(
         typeof(SSWC.AccordionItem), 
         b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(
       typeof(SSWC.TransitioningContentControl),
       b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
 }
開發者ID:modulexcite,項目名稱:SilverlightToolkit,代碼行數:13,代碼來源:MetadataRegistration.cs

示例13: AddAttributes

        /// <summary>
        /// Add design time attributes.
        /// </summary>
        /// <param name="builder">The assembly attribute table builder.</param>
        private static void AddAttributes(AttributeTableBuilder builder)
        {
            builder.AddCustomAttributes(
                typeof(SignInButton),
                new Attribute[] {
                    new DefaultPropertyAttribute("ClientId"),
                    new DefaultEventAttribute("SessionChanged"),
                    new ToolboxBrowsableAttribute(true),
                    new ToolboxCategoryAttribute(LiveServicesCategory),
                    new ToolboxTabNameAttribute(LiveServicesCategory)});

            EditorBrowsableAttribute browsableAlways = new EditorBrowsableAttribute(EditorBrowsableState.Always);
            CategoryAttribute categoryLive = new CategoryAttribute(LiveServicesCategory);

            DescriptionAttribute description = new DescriptionAttribute(StringResources.DescriptionBrandingType);
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "Branding",
                new Attribute[] { browsableAlways, categoryLive, description });

            description = new DescriptionAttribute(StringResources.DescriptionClientId);
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "ClientId",
                new Attribute[] { browsableAlways, categoryLive, description });

            description = new DescriptionAttribute(StringResources.DescriptionRedirectUri);
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "RedirectUri",
                new Attribute[] { browsableAlways, categoryLive, description });

            description = new DescriptionAttribute(StringResources.DescriptionScopes);
            DefaultValueAttribute defaultValue = new DefaultValueAttribute("wl.signin");
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "Scopes",
                new Attribute[] { browsableAlways, categoryLive, description, defaultValue });

            description = new DescriptionAttribute(StringResources.DescriptionTextType);
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "TextType",
                new Attribute[] { browsableAlways, categoryLive, description });

            description = new DescriptionAttribute(StringResources.DescriptionSigninText);
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "SignInText",
                new Attribute[] { browsableAlways, categoryLive, description });

            description = new DescriptionAttribute(StringResources.DescriptionSignoutText);
            builder.AddCustomAttributes(
                typeof(SignInButton),
                "SignOutText",
                new Attribute[] { browsableAlways, categoryLive, description });            
        }
開發者ID:harunpehlivan,項目名稱:LiveSDK-for-Windows,代碼行數:61,代碼來源:MetadataBase.cs

示例14: BuildAttributeTable

        /// <summary>
        /// Build design time metadata attribute table.
        /// </summary>
        /// <returns>Custom attribute table.</returns>
        protected virtual AttributeTable BuildAttributeTable()
        {
            AttributeTableBuilder builder = new AttributeTableBuilder();

            AddDescriptions(builder);
            AddAttributes(builder);
            AddTables(builder);

            return builder.CreateTable();
        }
開發者ID:modulexcite,項目名稱:SilverlightToolkit,代碼行數:14,代碼來源:MetadataBase.cs

示例15: BuildAttributeTable

        /// <summary>
		/// Build design time metadata attribute table.
		/// </summary>
		/// <returns>Custom attribute table.</returns>
		protected virtual AttributeTable BuildAttributeTable()
		{
			AttributeTableBuilder builder = new AttributeTableBuilder();

            AddDescriptions(builder);
            AddAttributes(builder);
            AddTables(builder, this);
            masterMetadataTable = builder.CreateTable();
			return masterMetadataTable;
		}
開發者ID:sk8tz,項目名稱:callisto,代碼行數:14,代碼來源:MetadataRegistrationBase.cs


注:本文中的AttributeTableBuilder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。