• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# AttributeTableBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中AttributeTableBuilder的典型用法代码示例。如果您正苦于以下问题:C# AttributeTableBuilder类的具体用法?C# AttributeTableBuilder怎么用?C# AttributeTableBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AttributeTableBuilder类属于命名空间,在下文中一共展示了AttributeTableBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: VectorMetadata

        public VectorMetadata()
        {
            var builder = new AttributeTableBuilder();

            builder.AddCustomAttributes(typeof (Node),
                                        "Position",
                                        PropertyValueEditor.CreateEditorAttribute(typeof (VectorEditor)),
                                        new AlternateContentPropertyAttribute()
                                        );

            AttributeTable = builder.CreateTable();
        }
开发者ID:Conn,项目名称:Balder,代码行数:12,代码来源:VectorMetadata.cs


示例17: 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(SilverlightTypes.DataGridCell, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridRow, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridCellsPresenter, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridColumnHeader, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridColumnHeadersPresenter, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridDetailsPresenter, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridFrozenGrid, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridRowHeader, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridRowsPresenter, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
     builder.AddCallback(SilverlightTypes.DataGridRowGroupHeader, b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
 }
开发者ID:kvervo,项目名称:HorizontalLoopingSelector,代码行数:17,代码来源:MetadataRegistration.cs


示例18: AddToolboxBrowsableAttributes

        private void AddToolboxBrowsableAttributes()
        {
            var builder = new AttributeTableBuilder();

            builder.AddCustomAttributes(typeof(FXMonthViewButton),            ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewContainer),         ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewHeader),            ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewItem),              ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXMonthViewWeekDayHeaderCell), ToolboxBrowsableAttribute.No);
            builder.AddCustomAttributes(typeof(FXPopup),                      ToolboxBrowsableAttribute.No);

            MetadataStore.AddAttributeTable(builder.CreateTable());
        }
开发者ID:Jalalx,项目名称:FarsiLibrary,代码行数:13,代码来源:VisualStudioMetadata.cs


示例19: AddColumnDefinitionAttributes

 private static void AddColumnDefinitionAttributes(AttributeTableBuilder builder)
 {
     builder.AddCallback(typeof(ColumnDefinition),
                         b =>
                         {
                             // ColumnDefinition properties
                             b.AddCustomAttributes("Height", new BrowsableAttribute(false));
                             b.AddCustomAttributes("MinWidth", new CategoryAttribute("Column"));
                             b.AddCustomAttributes("MinWidth", new DescriptionAttribute("Minimum width of the column"));
                             b.AddCustomAttributes("MaxWidth", new CategoryAttribute("Column"));
                             b.AddCustomAttributes("MaxWidth", new DescriptionAttribute("Maximum width of the column"));
                             b.AddCustomAttributes("Tag", new CategoryAttribute("Column"));
                             b.AddCustomAttributes("Width", new CategoryAttribute("Column"));
                         });
 }
开发者ID:ComponentFactory,项目名称:Quicksilver,代码行数:15,代码来源:LayoutMetadata.cs


示例20: 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(Legend), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(typeof(LegendItem), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(typeof(Title), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));

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

            builder.AddCallback(typeof(AxisLabel), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(typeof(DateTimeAxisLabel), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            builder.AddCallback(typeof(NumericAxisLabel), b => b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
        }
开发者ID:royosherove,项目名称:cthru,代码行数:21,代码来源:Metadata.cs



注:本文中的AttributeTableBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AttributeTargets类代码示例发布时间:2022-05-24
下一篇:
C# AttributeSection类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap