本文整理汇总了C#中System.Windows.Baml2006.WpfKnownMember类的典型用法代码示例。如果您正苦于以下问题:C# WpfKnownMember类的具体用法?C# WpfKnownMember怎么用?C# WpfKnownMember使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WpfKnownMember类属于System.Windows.Baml2006命名空间,在下文中一共展示了WpfKnownMember类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}