本文整理汇总了C#中System.Windows.Baml2006.WpfKnownMember.Freeze方法的典型用法代码示例。如果您正苦于以下问题:C# WpfKnownMember.Freeze方法的具体用法?C# WpfKnownMember.Freeze怎么用?C# WpfKnownMember.Freeze使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Baml2006.WpfKnownMember
的用法示例。
在下文中一共展示了WpfKnownMember.Freeze方法的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_KeyboardNavigation_TabNavigation
private WpfKnownMember Create_BamlProperty_KeyboardNavigation_TabNavigation()
{
Type type = typeof(System.Windows.Input.KeyboardNavigation);
DependencyProperty dp = System.Windows.Input.KeyboardNavigation.TabNavigationProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.KeyboardNavigation)), // DeclaringType
"TabNavigation", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Input.KeyboardNavigationMode);
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_Canvas_Right
private WpfKnownMember Create_BamlProperty_Canvas_Right()
{
Type type = typeof(System.Windows.Controls.Canvas);
DependencyProperty dp = System.Windows.Controls.Canvas.RightProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
"Right", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
bamlMember.Freeze();
return bamlMember;
}
示例5: Create_BamlProperty_KeyBinding_Key
private WpfKnownMember Create_BamlProperty_KeyBinding_Key()
{
Type type = typeof(System.Windows.Input.KeyBinding);
DependencyProperty dp = System.Windows.Input.KeyBinding.KeyProperty;
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.KeyBinding)), // DeclaringType
"Key", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
);
bamlMember.TypeConverterType = typeof(System.Windows.Input.KeyConverter);
bamlMember.Freeze();
return bamlMember;
}
示例6: Create_BamlProperty_FrameworkElement_Triggers
private WpfKnownMember Create_BamlProperty_FrameworkElement_Triggers()
{
Type type = typeof(System.Windows.FrameworkElement);
var bamlMember = new WpfKnownMember( this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"Triggers", // Name
typeof(System.Windows.TriggerCollection), // type
true, // IsReadOnly
false // IsAttachable
);
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Triggers; };
bamlMember.IsWritePrivate = true;
bamlMember.Freeze();
return bamlMember;
}
示例7: 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;
}
示例8: 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;
}
示例9: 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;
}
示例10: 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;
}
示例11: 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;
}
示例12: 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;
}
示例13: 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;
}
示例14: 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;
}
示例15: 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;
}