本文整理汇总了C#中System.Windows.Baml2006.WpfKnownMember类的典型用法代码示例。如果您正苦于以下问题:C# WpfKnownMember类的具体用法?C# WpfKnownMember怎么用?C# WpfKnownMember使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WpfKnownMember类属于System.Windows.Baml2006命名空间,在下文中一共展示了WpfKnownMember类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Create_BamlProperty_ClassicBorderDecorator_BorderStyle
private static WpfKnownMember Create_BamlProperty_ClassicBorderDecorator_BorderStyle()
{
Type type = typeof(Microsoft.Windows.Themes.ClassicBorderDecorator);
DependencyProperty dp = Microsoft.Windows.Themes.ClassicBorderDecorator.BorderStyleProperty;
var bamlMember = new WpfKnownMember( System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // Schema Context
System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(Microsoft.Windows.Themes.ClassicBorderDecorator)), // DeclaringType
"BorderStyle", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(Microsoft.Windows.Themes.ClassicBorderStyle);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:KnownTypeHelper.cs
示例2: Create_BamlProperty_Trigger_Property
private WpfKnownMember Create_BamlProperty_Trigger_Property()
{
Type type = typeof(System.Windows.Trigger);
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Trigger)), // DeclaringType
"Property", // Name
typeof(System.Windows.DependencyProperty), // type
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Markup.DependencyPropertyConverter);
bamlMember.Ambient = true;
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Trigger)target).Property = (System.Windows.DependencyProperty)value; };
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Trigger)target).Property; };
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:17,代码来源:WpfGeneratedKnownProperties.cs
示例3: Create_BamlProperty_ScrollChrome_ScrollGlyph
private static WpfKnownMember Create_BamlProperty_ScrollChrome_ScrollGlyph()
{
Type type = typeof(Microsoft.Windows.Themes.ScrollChrome);
DependencyProperty dp = Microsoft.Windows.Themes.ScrollChrome.ScrollGlyphProperty;
var bamlMember = new WpfKnownMember(System.Windows.Markup.XamlReader.BamlSharedSchemaContext, // Schema Context
System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(Microsoft.Windows.Themes.ScrollChrome)), // DeclaringType
"ScrollGlyph", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
);
bamlMember.TypeConverterType = typeof(Microsoft.Windows.Themes.ScrollGlyph);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:KnownTypeHelper.cs
示例4: Create_BamlProperty_Storyboard_TargetProperty
private WpfKnownMember Create_BamlProperty_Storyboard_TargetProperty()
{
Type type = typeof(System.Windows.Media.Animation.Storyboard);
DependencyProperty dp = System.Windows.Media.Animation.Storyboard.TargetPropertyProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Storyboard)), // DeclaringType
"TargetProperty", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.PropertyPathConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例5: Create_BamlProperty_Binding_ConverterParameter
private WpfKnownMember Create_BamlProperty_Binding_ConverterParameter()
{
Type type = typeof(System.Windows.Data.Binding);
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"ConverterParameter", // Name
typeof(System.Object), // type
false, // IsReadOnly
false // IsAttachable
);
bamlMember.HasSpecialTypeConverter = true;
bamlMember.TypeConverterType = typeof(System.Object);
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).ConverterParameter = (System.Object)value; };
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).ConverterParameter; };
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:17,代码来源:WpfGeneratedKnownProperties.cs
示例6: Create_BamlProperty_MultiDataTrigger_Conditions
private WpfKnownMember Create_BamlProperty_MultiDataTrigger_Conditions()
{
Type type = typeof(System.Windows.MultiDataTrigger);
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.MultiDataTrigger)), // DeclaringType
"Conditions", // Name
typeof(System.Windows.ConditionCollection), // type
true, // IsReadOnly
false // IsAttachable
);
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.MultiDataTrigger)target).Conditions; };
bamlMember.IsWritePrivate = true;
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例7: Create_BamlProperty_TextBoxBase_HorizontalScrollBarVisibility
private WpfKnownMember Create_BamlProperty_TextBoxBase_HorizontalScrollBarVisibility()
{
Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.HorizontalScrollBarVisibilityProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
"HorizontalScrollBarVisibility", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例8: Create_BamlProperty_Window_AllowsTransparency
private WpfKnownMember Create_BamlProperty_Window_AllowsTransparency()
{
Type type = typeof(System.Windows.Window);
DependencyProperty dp = System.Windows.Window.AllowsTransparencyProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
"AllowsTransparency", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例9: Create_BamlProperty_BulletDecorator_Bullet
private WpfKnownMember Create_BamlProperty_BulletDecorator_Bullet()
{
Type type = typeof(System.Windows.Controls.Primitives.BulletDecorator);
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.BulletDecorator)), // DeclaringType
"Bullet", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
);
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; };
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet; };
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例10: Create_BamlProperty_Pen_LineJoin
private WpfKnownMember Create_BamlProperty_Pen_LineJoin()
{
Type type = typeof(System.Windows.Media.Pen);
DependencyProperty dp = System.Windows.Media.Pen.LineJoinProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Pen)), // DeclaringType
"LineJoin", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Media.PenLineJoin);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例11: Create_BamlProperty_UIElement_RenderTransformOrigin
private WpfKnownMember Create_BamlProperty_UIElement_RenderTransformOrigin()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.RenderTransformOriginProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"RenderTransformOrigin", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.PointConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例12: Create_BamlProperty_Block_TextAlignment
private WpfKnownMember Create_BamlProperty_Block_TextAlignment()
{
Type type = typeof(System.Windows.Documents.Block);
DependencyProperty dp = System.Windows.Documents.Block.TextAlignmentProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Block)), // DeclaringType
"TextAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例13: Create_BamlProperty_ButtonBase_ClickMode
private WpfKnownMember Create_BamlProperty_ButtonBase_ClickMode()
{
Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.ClickModeProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ButtonBase)), // DeclaringType
"ClickMode", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Controls.ClickMode);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例14: Create_BamlProperty_ToolTipService_ToolTip
private WpfKnownMember Create_BamlProperty_ToolTipService_ToolTip()
{
Type type = typeof(System.Windows.Controls.ToolTipService);
DependencyProperty dp = System.Windows.Controls.ToolTipService.ToolTipProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ToolTipService)), // DeclaringType
"ToolTip", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
);
bamlMember.HasSpecialTypeConverter = true;
bamlMember.TypeConverterType = typeof(System.Object);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:16,代码来源:WpfGeneratedKnownProperties.cs
示例15: Create_BamlProperty_DefinitionBase_SharedSizeGroup
private WpfKnownMember Create_BamlProperty_DefinitionBase_SharedSizeGroup()
{
Type type = typeof(System.Windows.Controls.DefinitionBase);
DependencyProperty dp = System.Windows.Controls.DefinitionBase.SharedSizeGroupProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.DefinitionBase)), // DeclaringType
"SharedSizeGroup", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例16: Create_BamlProperty_Panel_IsItemsHost
private WpfKnownMember Create_BamlProperty_Panel_IsItemsHost()
{
Type type = typeof(System.Windows.Controls.Panel);
DependencyProperty dp = System.Windows.Controls.Panel.IsItemsHostProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Panel)), // DeclaringType
"IsItemsHost", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例17: Create_BamlProperty_Binding_XPath
private WpfKnownMember Create_BamlProperty_Binding_XPath()
{
Type type = typeof(System.Windows.Data.Binding);
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"XPath", // Name
typeof(System.String), // type
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).XPath = (System.String)value; };
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).XPath; };
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:16,代码来源:WpfGeneratedKnownProperties.cs
示例18: Create_BamlProperty_UIElement_SnapsToDevicePixels
private WpfKnownMember Create_BamlProperty_UIElement_SnapsToDevicePixels()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.SnapsToDevicePixelsProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"SnapsToDevicePixels", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
示例19: Create_BamlProperty_ToolBar_Orientation
private WpfKnownMember Create_BamlProperty_ToolBar_Orientation()
{
Type type = typeof(System.Windows.Controls.ToolBar);
DependencyProperty dp = System.Windows.Controls.ToolBar.OrientationProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ToolBar)), // DeclaringType
"Orientation", // Name
dp, // DependencyProperty
true, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Controls.Orientation);
bamlMember.IsWritePrivate = true;
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:16,代码来源:WpfGeneratedKnownProperties.cs
示例20: Create_BamlProperty_SolidColorBrush_Color
private WpfKnownMember Create_BamlProperty_SolidColorBrush_Color()
{
Type type = typeof(System.Windows.Media.SolidColorBrush);
DependencyProperty dp = System.Windows.Media.SolidColorBrush.ColorProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.SolidColorBrush)), // DeclaringType
"Color", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Media.ColorConverter);
bamlMember.Freeze();
return bamlMember;
}
开发者ID:JianwenSun,项目名称:cc,代码行数:15,代码来源:WpfGeneratedKnownProperties.cs
注:本文中的System.Windows.Baml2006.WpfKnownMember类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论