diff --git a/src/Microsoft.DotNet.Wpf/src/.editorconfig b/src/Microsoft.DotNet.Wpf/src/.editorconfig
index cb9ee1477bb..2ea8e052b1e 100644
--- a/src/Microsoft.DotNet.Wpf/src/.editorconfig
+++ b/src/Microsoft.DotNet.Wpf/src/.editorconfig
@@ -185,9 +185,6 @@ dotnet_diagnostic.CA5362.severity = suggestion
# IDE0005: Using directive is unnecessary.
dotnet_diagnostic.IDE0005.severity = suggestion
-# IDE0017: Simplify object initialization
-dotnet_diagnostic.IDE0017.severity = suggestion
-
# IDE0030: Null check can be simplified
dotnet_diagnostic.IDE0030.severity = suggestion
diff --git a/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemData/SystemDataExtension.cs b/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemData/SystemDataExtension.cs
index 5830eab48ad..8546681508e 100644
--- a/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemData/SystemDataExtension.cs
+++ b/src/Microsoft.DotNet.Wpf/src/Extensions/PresentationFramework-SystemData/SystemDataExtension.cs
@@ -49,16 +49,22 @@ internal override bool IsDataSetCollectionProperty(PropertyDescriptor pd)
{
// lazy load the types for the offending PD's. They're internal, so
// we get them indirectly.
- DataSet dataset = new DataSet();
- dataset.Locale = System.Globalization.CultureInfo.InvariantCulture;
+ DataSet dataset = new DataSet
+ {
+ Locale = System.Globalization.CultureInfo.InvariantCulture
+ };
- DataTable table1 = new DataTable("Table1");
- table1.Locale = System.Globalization.CultureInfo.InvariantCulture;
+ DataTable table1 = new DataTable("Table1")
+ {
+ Locale = System.Globalization.CultureInfo.InvariantCulture
+ };
table1.Columns.Add("ID", typeof(int));
dataset.Tables.Add(table1);
- DataTable table2 = new DataTable("Table2");
- table2.Locale = System.Globalization.CultureInfo.InvariantCulture;
+ DataTable table2 = new DataTable("Table2")
+ {
+ Locale = System.Globalization.CultureInfo.InvariantCulture
+ };
table2.Columns.Add("ID", typeof(int));
dataset.Tables.Add(table2);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs
index c93b028b9c0..d8a63611599 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/MarkupCompiler.cs
@@ -510,17 +510,22 @@ private void _Compile(string relativeSourceFile, bool pass2)
_ccRoot = null;
_hasLocalEvent = false;
_codeContexts = new Stack();
- _parserContext = new ParserContext();
- _parserContext.XamlTypeMapper = _typeMapper;
+ _parserContext = new ParserContext
+ {
+ XamlTypeMapper = _typeMapper
+ };
_hasEmittedEventSetterDeclaration = false;
bamlStream = new MemoryStream();
- BamlRecordWriter bamlWriter = new BamlRecordWriter(bamlStream, _parserContext, true);
- bamlWriter.DebugBamlStream = XamlDebuggingInformation;
-
- xamlParser = new ParserExtension(this, _parserContext, bamlWriter, SourceFileInfo.Stream, pass2);
+ BamlRecordWriter bamlWriter = new BamlRecordWriter(bamlStream, _parserContext, true)
+ {
+ DebugBamlStream = XamlDebuggingInformation
+ };
- xamlParser.ParserHooks = ParserHooks;
+ xamlParser = new ParserExtension(this, _parserContext, bamlWriter, SourceFileInfo.Stream, pass2)
+ {
+ ParserHooks = ParserHooks
+ };
try
{
@@ -630,10 +635,12 @@ private void GenerateSource()
? s_hashSHA256Guid
: s_hashSHA1Guid;
- CodeChecksumPragma csPragma = new CodeChecksumPragma();
- csPragma.FileName = ParentFolderPrefix + SourceFileInfo.RelativeSourceFilePath + XAML;
- csPragma.ChecksumAlgorithmId = hashGuid;
- csPragma.ChecksumData = TaskFileService.GetChecksum(SourceFileInfo.OriginalFilePath, hashGuid);
+ CodeChecksumPragma csPragma = new CodeChecksumPragma
+ {
+ FileName = ParentFolderPrefix + SourceFileInfo.RelativeSourceFilePath + XAML,
+ ChecksumAlgorithmId = hashGuid,
+ ChecksumData = TaskFileService.GetChecksum(SourceFileInfo.OriginalFilePath, hashGuid)
+ };
ccu.StartDirectives.Add(csPragma);
if (cnsImports != _ccRoot.CodeNS)
@@ -693,9 +700,10 @@ private SourceFileInfo OnSourceFileResolve(FileUnit file)
// If SourceFileResolve event handler is not registered, generate
// the default SourceFileInfo for this file.
//
- sourceFileInfo = new SourceFileInfo(file);
-
- sourceFileInfo.SourcePath = _compilationUnitSourcePath;
+ sourceFileInfo = new SourceFileInfo(file)
+ {
+ SourcePath = _compilationUnitSourcePath
+ };
if (sourceFileInfo.IsXamlFile)
{
@@ -880,10 +888,12 @@ private CodeMemberMethod EnsureStyleConnector()
{
if (_ccRoot.StyleConnectorFn == null)
{
- _ccRoot.StyleConnectorFn = new CodeMemberMethod();
- _ccRoot.StyleConnectorFn.Name = CONNECT;
- _ccRoot.StyleConnectorFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
- _ccRoot.StyleConnectorFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]);
+ _ccRoot.StyleConnectorFn = new CodeMemberMethod
+ {
+ Name = CONNECT,
+ Attributes = MemberAttributes.Public | MemberAttributes.Final,
+ PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector])
+ };
// void IStyleConnector.Connect(int connectionId, object target) {
//
@@ -941,10 +951,12 @@ internal void ConnectStyleEvent(XamlClrEventNode xamlClrEventNode)
{
// if (connectionId == 1)
//
- ccsConnector = new CodeConditionStatement();
- ccsConnector.Condition = new CodeBinaryOperatorExpression(new CodeArgumentReferenceExpression(CONNECTIONID),
+ ccsConnector = new CodeConditionStatement
+ {
+ Condition = new CodeBinaryOperatorExpression(new CodeArgumentReferenceExpression(CONNECTIONID),
CodeBinaryOperatorType.ValueEquality,
- new CodePrimitiveExpression(connectionId));
+ new CodePrimitiveExpression(connectionId))
+ };
}
}
else if (!SwitchStatementSupported())
@@ -1112,10 +1124,12 @@ private void EnsureHookupFn()
//
if (_ccRoot.HookupFn == null)
{
- _ccRoot.HookupFn = new CodeMemberMethod();
- _ccRoot.HookupFn.Name = CONNECT;
- _ccRoot.HookupFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
- _ccRoot.HookupFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]);
+ _ccRoot.HookupFn = new CodeMemberMethod
+ {
+ Name = CONNECT,
+ Attributes = MemberAttributes.Public | MemberAttributes.Final,
+ PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector])
+ };
// void IComponentConnector.Connect(int connectionId, object target) {
//
@@ -1171,10 +1185,12 @@ internal void ConnectNameAndEvents(string elementName, ArrayList events, int con
{
// if (connectionId == 1)
//
- ccsConnector = new CodeConditionStatement();
- ccsConnector.Condition = new CodeBinaryOperatorExpression(new CodeArgumentReferenceExpression(CONNECTIONID),
+ ccsConnector = new CodeConditionStatement
+ {
+ Condition = new CodeBinaryOperatorExpression(new CodeArgumentReferenceExpression(CONNECTIONID),
CodeBinaryOperatorType.ValueEquality,
- new CodePrimitiveExpression(connectionId));
+ new CodePrimitiveExpression(connectionId))
+ };
}
@@ -2203,10 +2219,12 @@ internal CodeMemberField NameField(string name, int lineNumber, int linePosition
return null;
}
- CodeMemberField field = new CodeMemberField();
- field.Name = name;
- field.Attributes = MemberAttributes.Assembly;
- field.Type = cc.ElementTypeReference;
+ CodeMemberField field = new CodeMemberField
+ {
+ Name = name,
+ Attributes = MemberAttributes.Assembly,
+ Type = cc.ElementTypeReference
+ };
field.CustomAttributes.Add(
new CodeAttributeDeclaration(
new CodeTypeReference("System.Diagnostics.CodeAnalysis.SuppressMessageAttribute"),
@@ -2441,8 +2459,10 @@ private CodeTypeDeclaration GenerateClass(string className, ref string modifier,
// public class MyClass : BaseClass {
//
CodeTypeReference ctrBaseClass = null;
- CodeTypeDeclaration ctdClass = new CodeTypeDeclaration();
- ctdClass.Name = className;
+ CodeTypeDeclaration ctdClass = new CodeTypeDeclaration
+ {
+ Name = className
+ };
if (baseClass != null)
{
// At this point, we should only have fully open generic types if there is a typeargs list.
@@ -2522,13 +2542,17 @@ private CodeContext GenerateSubClass(ref string className, ref string modifier,
// {
Debug.Assert(_ccRoot == null);
Debug.Assert(_codeContexts == null || _codeContexts.Count == 0, "mismatched CodeContexts");
- CodeNamespace cns = new CodeNamespace();
- cns.Name = ns;
+ CodeNamespace cns = new CodeNamespace
+ {
+ Name = ns
+ };
cns.Types.Clear();
CodeTypeDeclaration ctdClass = GenerateClass(className, ref modifier, baseClass, baseClassFullName);
- CodeContext cc = new CodeContextRoot(ctdClass, cns, baseClass, _typeArgsList, baseClassFullName);
- cc.ElementTypeReference = new CodeTypeReference(GetFullClassName(ns, className));
+ CodeContext cc = new CodeContextRoot(ctdClass, cns, baseClass, _typeArgsList, baseClassFullName)
+ {
+ ElementTypeReference = new CodeTypeReference(GetFullClassName(ns, className))
+ };
return cc;
}
@@ -2547,10 +2571,12 @@ private void GenerateCreateDelegateHelper()
// return Delegate.CreateDelegate(delegateType, this, handler);
// }
//
- CodeMemberMethod cmmCD = new CodeMemberMethod();
- cmmCD.Name = CREATEDELEGATEHELPER;
- cmmCD.ReturnType = new CodeTypeReference(typeof(Delegate));
- cmmCD.Attributes = MemberAttributes.Assembly | MemberAttributes.Final;
+ CodeMemberMethod cmmCD = new CodeMemberMethod
+ {
+ Name = CREATEDELEGATEHELPER,
+ ReturnType = new CodeTypeReference(typeof(Delegate)),
+ Attributes = MemberAttributes.Assembly | MemberAttributes.Final
+ };
AddDebuggerNonUserCodeAttribute(cmmCD);
AddGeneratedCodeAttribute(cmmCD);
AddSuppressMessageAttribute(cmmCD, "Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode");
@@ -2561,8 +2587,10 @@ private void GenerateCreateDelegateHelper()
cmmCD.Parameters.Add(param2);
CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Delegate)), "CreateDelegate");
- CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression();
- cmieCD.Method = cmreCD;
+ CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression
+ {
+ Method = cmreCD
+ };
cmieCD.Parameters.Add(new CodeArgumentReferenceExpression(DELEGATETYPE));
cmieCD.Parameters.Add(new CodeThisReferenceExpression());
cmieCD.Parameters.Add(new CodeArgumentReferenceExpression(HANDLERARG));
@@ -2592,8 +2620,10 @@ private void GenerateInitializeComponent(bool isApp)
// return;
// }
//
- CodeConditionStatement ccsCL = new CodeConditionStatement();
- ccsCL.Condition = new CodeFieldReferenceExpression(null, CONTENT_LOADED);
+ CodeConditionStatement ccsCL = new CodeConditionStatement
+ {
+ Condition = new CodeFieldReferenceExpression(null, CONTENT_LOADED)
+ };
ccsCL.TrueStatements.Add(new CodeMethodReturnStatement());
if (!isApp)
{
@@ -2673,9 +2703,10 @@ private void GenerateInitializeComponent(bool isApp)
// System.Windows.Application.LoadComponent(this, resourceLocator);
//
CodeMethodReferenceExpression cmreLoadContent = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(KnownTypes.Types[(int)KnownElements.Application]), LOADCOMPONENT);
- CodeMethodInvokeExpression cmieLoadContent = new CodeMethodInvokeExpression();
-
- cmieLoadContent.Method = cmreLoadContent;
+ CodeMethodInvokeExpression cmieLoadContent = new CodeMethodInvokeExpression
+ {
+ Method = cmreLoadContent
+ };
CodeVariableReferenceExpression cvreMemStm = new CodeVariableReferenceExpression(resVarname);
@@ -2688,10 +2719,12 @@ private void GenerateInitializeComponent(bool isApp)
// private bool _contentLoaded;
//
- CodeMemberField cmfCL = new CodeMemberField();
- cmfCL.Name = CONTENT_LOADED;
- cmfCL.Attributes = MemberAttributes.Private;
- cmfCL.Type = new CodeTypeReference(typeof(bool));
+ CodeMemberField cmfCL = new CodeMemberField
+ {
+ Name = CONTENT_LOADED,
+ Attributes = MemberAttributes.Private,
+ Type = new CodeTypeReference(typeof(bool))
+ };
_ccRoot.CodeClass.Members.Add(cmfCL);
if (!isApp)
@@ -2715,15 +2748,19 @@ private void GenerateInternalTypeHelperImplementation()
// namespace XamlGeneratedNamespace
// {
//
- CodeNamespace cns = new CodeNamespace();
- cns.Name = XamlTypeMapper.GeneratedNamespace;
+ CodeNamespace cns = new CodeNamespace
+ {
+ Name = XamlTypeMapper.GeneratedNamespace
+ };
// [EditorBrowsable(EditorBrowsableState.Never)]
// public sealed class GeneratedInternalTypeHelper : InternalTypeHelper
// {
//
- CodeTypeDeclaration ctdClass = new CodeTypeDeclaration();
- ctdClass.Name = XamlTypeMapper.GeneratedInternalTypeHelperClassName;
+ CodeTypeDeclaration ctdClass = new CodeTypeDeclaration
+ {
+ Name = XamlTypeMapper.GeneratedInternalTypeHelperClassName
+ };
ctdClass.BaseTypes.Add(new CodeTypeReference("System.Windows.Markup.InternalTypeHelper"));
ctdClass.TypeAttributes = TypeAttributes.Public | TypeAttributes.Sealed;
AddDebuggerNonUserCodeAttribute(ctdClass);
@@ -2743,10 +2780,12 @@ private void GenerateInternalTypeHelperImplementation()
// culture);
// }
//
- CodeMemberMethod cmmCI = new CodeMemberMethod();
- cmmCI.Name = "CreateInstance";
- cmmCI.Attributes = MemberAttributes.Family | MemberAttributes.Override;
- cmmCI.ReturnType = new CodeTypeReference(typeof(Object));
+ CodeMemberMethod cmmCI = new CodeMemberMethod
+ {
+ Name = "CreateInstance",
+ Attributes = MemberAttributes.Family | MemberAttributes.Override,
+ ReturnType = new CodeTypeReference(typeof(Object))
+ };
CodeParameterDeclarationExpression param1 = new CodeParameterDeclarationExpression(typeof(Type), TYPE);
CodeParameterDeclarationExpression param4 = new CodeParameterDeclarationExpression(typeof(CultureInfo), CULTURE);
@@ -2754,8 +2793,10 @@ private void GenerateInternalTypeHelperImplementation()
cmmCI.Parameters.Add(param4);
CodeMethodReferenceExpression cmreCI = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Activator)), "CreateInstance");
- CodeMethodInvokeExpression cmieCI = new CodeMethodInvokeExpression();
- cmieCI.Method = cmreCI;
+ CodeMethodInvokeExpression cmieCI = new CodeMethodInvokeExpression
+ {
+ Method = cmreCI
+ };
cmieCI.Parameters.Add(new CodeArgumentReferenceExpression(TYPE));
CodeFieldReferenceExpression cfre1 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "Public");
CodeFieldReferenceExpression cfre2 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "NonPublic");
@@ -2778,10 +2819,12 @@ private void GenerateInternalTypeHelperImplementation()
// return propertyInfo.GetValue(target, BindingFlags.Default, null, null, culture);
// }
//
- CodeMemberMethod cmmGPV = new CodeMemberMethod();
- cmmGPV.Name = "GetPropertyValue";
- cmmGPV.Attributes = MemberAttributes.Family | MemberAttributes.Override;
- cmmGPV.ReturnType = new CodeTypeReference(typeof(Object));
+ CodeMemberMethod cmmGPV = new CodeMemberMethod
+ {
+ Name = "GetPropertyValue",
+ Attributes = MemberAttributes.Family | MemberAttributes.Override,
+ ReturnType = new CodeTypeReference(typeof(Object))
+ };
param1 = new CodeParameterDeclarationExpression(typeof(PropertyInfo), PROPINFO);
CodeParameterDeclarationExpression param2 = new CodeParameterDeclarationExpression(typeof(object), TARGET);
@@ -2790,8 +2833,10 @@ private void GenerateInternalTypeHelperImplementation()
cmmGPV.Parameters.Add(param4);
CodeMethodReferenceExpression cmreGPV = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(PROPINFO), "GetValue");
- CodeMethodInvokeExpression cmieGPV = new CodeMethodInvokeExpression();
- cmieGPV.Method = cmreGPV;
+ CodeMethodInvokeExpression cmieGPV = new CodeMethodInvokeExpression
+ {
+ Method = cmreGPV
+ };
cmieGPV.Parameters.Add(new CodeArgumentReferenceExpression(TARGET));
cmieGPV.Parameters.Add(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), DEFAULT));
cmieGPV.Parameters.Add(new CodePrimitiveExpression(null));
@@ -2807,9 +2852,11 @@ private void GenerateInternalTypeHelperImplementation()
// propertyInfo.SetValue(target, value, BindingFlags.Default, null, null, culture);
// }
//
- CodeMemberMethod cmmSPV = new CodeMemberMethod();
- cmmSPV.Name = "SetPropertyValue";
- cmmSPV.Attributes = MemberAttributes.Family | MemberAttributes.Override;
+ CodeMemberMethod cmmSPV = new CodeMemberMethod
+ {
+ Name = "SetPropertyValue",
+ Attributes = MemberAttributes.Family | MemberAttributes.Override
+ };
CodeParameterDeclarationExpression param3 = new CodeParameterDeclarationExpression(typeof(object), VALUE);
cmmSPV.Parameters.Add(param1);
@@ -2818,8 +2865,10 @@ private void GenerateInternalTypeHelperImplementation()
cmmSPV.Parameters.Add(param4);
CodeMethodReferenceExpression cmreSPV = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(PROPINFO), "SetValue");
- CodeMethodInvokeExpression cmieSPV = new CodeMethodInvokeExpression();
- cmieSPV.Method = cmreSPV;
+ CodeMethodInvokeExpression cmieSPV = new CodeMethodInvokeExpression
+ {
+ Method = cmreSPV
+ };
cmieSPV.Parameters.Add(new CodeArgumentReferenceExpression(TARGET));
cmieSPV.Parameters.Add(new CodeArgumentReferenceExpression(VALUE));
cmieSPV.Parameters.Add(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), DEFAULT));
@@ -2842,10 +2891,12 @@ private void GenerateInternalTypeHelperImplementation()
// new object[] { delegateType, handler });
// }
//
- CodeMemberMethod cmmCD = new CodeMemberMethod();
- cmmCD.Name = "CreateDelegate";
- cmmCD.Attributes = MemberAttributes.Family | MemberAttributes.Override;
- cmmCD.ReturnType = new CodeTypeReference(typeof(Delegate));
+ CodeMemberMethod cmmCD = new CodeMemberMethod
+ {
+ Name = "CreateDelegate",
+ Attributes = MemberAttributes.Family | MemberAttributes.Override,
+ ReturnType = new CodeTypeReference(typeof(Delegate))
+ };
param1 = new CodeParameterDeclarationExpression(typeof(Type), DELEGATETYPE);
param3 = new CodeParameterDeclarationExpression(typeof(string), HANDLERARG);
@@ -2855,12 +2906,16 @@ private void GenerateInternalTypeHelperImplementation()
CodeArgumentReferenceExpression careTarget = new CodeArgumentReferenceExpression(TARGET);
CodeMethodReferenceExpression cmreGetType = new CodeMethodReferenceExpression(careTarget, "GetType");
- CodeMethodInvokeExpression cmieGetType = new CodeMethodInvokeExpression();
- cmieGetType.Method = cmreGetType;
+ CodeMethodInvokeExpression cmieGetType = new CodeMethodInvokeExpression
+ {
+ Method = cmreGetType
+ };
CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(cmieGetType, "InvokeMember");
- CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression();
- cmieCD.Method = cmreCD;
+ CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression
+ {
+ Method = cmreCD
+ };
cmieCD.Parameters.Add(new CodePrimitiveExpression(CREATEDELEGATEHELPER));
CodeFieldReferenceExpression cfre5 = new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(BindingFlags)), "InvokeMethod");
@@ -2889,9 +2944,11 @@ private void GenerateInternalTypeHelperImplementation()
// eventInfo.AddEventHandler(target, handler);
// }
//
- CodeMemberMethod cmmAEH = new CodeMemberMethod();
- cmmAEH.Name = "AddEventHandler";
- cmmAEH.Attributes = MemberAttributes.Family | MemberAttributes.Override;
+ CodeMemberMethod cmmAEH = new CodeMemberMethod
+ {
+ Name = "AddEventHandler",
+ Attributes = MemberAttributes.Family | MemberAttributes.Override
+ };
param1 = new CodeParameterDeclarationExpression(typeof(EventInfo), EVENTINFO);
param3 = new CodeParameterDeclarationExpression(typeof(Delegate), HANDLERARG);
@@ -2900,8 +2957,10 @@ private void GenerateInternalTypeHelperImplementation()
cmmAEH.Parameters.Add(param3);
CodeMethodReferenceExpression cmreAEH = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(EVENTINFO), "AddEventHandler");
- CodeMethodInvokeExpression cmieAEH = new CodeMethodInvokeExpression();
- cmieAEH.Method = cmreAEH;
+ CodeMethodInvokeExpression cmieAEH = new CodeMethodInvokeExpression
+ {
+ Method = cmreAEH
+ };
cmieAEH.Parameters.Add(new CodeArgumentReferenceExpression(TARGET));
cmieAEH.Parameters.Add(new CodeArgumentReferenceExpression(HANDLERARG));
@@ -3159,8 +3218,10 @@ private CodeMemberMethod GenerateEntryPointMethod()
// public static void Main () {
//
- cmmMain = new CodeEntryPointMethod();
- cmmMain.Attributes = MemberAttributes.Public | MemberAttributes.Static;
+ cmmMain = new CodeEntryPointMethod
+ {
+ Attributes = MemberAttributes.Public | MemberAttributes.Static
+ };
cmmMain.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(STAThreadAttribute).FullName));
AddDebuggerNonUserCodeAttribute(cmmMain);
AddGeneratedCodeAttribute(cmmMain);
@@ -3197,8 +3258,10 @@ private void GenerateAppEntryPoint()
{
// app.InitializeComponent();
//
- CodeMethodInvokeExpression cmieIT = new CodeMethodInvokeExpression();
- cmieIT.Method = new CodeMethodReferenceExpression(cvreApp, INITIALIZE_COMPONENT);
+ CodeMethodInvokeExpression cmieIT = new CodeMethodInvokeExpression
+ {
+ Method = new CodeMethodReferenceExpression(cvreApp, INITIALIZE_COMPONENT)
+ };
cmmMain.Statements.Add(new CodeExpressionStatement(cmieIT));
}
@@ -3207,8 +3270,10 @@ private void GenerateAppEntryPoint()
// app.Run();
//
CodeMethodReferenceExpression cmreRun = new CodeMethodReferenceExpression(cvreApp, "Run");
- CodeMethodInvokeExpression cmieRun = new CodeMethodInvokeExpression();
- cmieRun.Method = cmreRun;
+ CodeMethodInvokeExpression cmieRun = new CodeMethodInvokeExpression
+ {
+ Method = cmreRun
+ };
CodeStatement csRun = new CodeExpressionStatement(cmieRun);
cmmMain.Statements.Add(csRun);
@@ -3414,9 +3479,11 @@ internal CodeMemberMethod EnsureInitializeComponentFn
{
if (_initializeComponentFn == null)
{
- _initializeComponentFn = new CodeMemberMethod();
- _initializeComponentFn.Name = INITIALIZE_COMPONENT;
- _initializeComponentFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
+ _initializeComponentFn = new CodeMemberMethod
+ {
+ Name = INITIALIZE_COMPONENT,
+ Attributes = MemberAttributes.Public | MemberAttributes.Final
+ };
AddDebuggerNonUserCodeAttribute(_initializeComponentFn);
AddGeneratedCodeAttribute(_initializeComponentFn);
MarkupCompiler.GenerateXmlComments(_initializeComponentFn, INITIALIZE_COMPONENT);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs
index 740c4a50f64..46e11f8a984 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/MarkupCompiler/ParserExtension.cs
@@ -762,9 +762,10 @@ public override void WritePIMapping(XamlPIMappingNode xamlPIMappingNode)
if (addMapping)
{
ClrNamespaceAssemblyPair namespaceMapping = new ClrNamespaceAssemblyPair(xamlPIMappingNode.ClrNamespace,
- xamlPIMappingNode.AssemblyName);
-
- namespaceMapping.LocalAssembly = true;
+ xamlPIMappingNode.AssemblyName)
+ {
+ LocalAssembly = true
+ };
XamlTypeMapper.PITable[xamlPIMappingNode.XmlNamespace] = namespaceMapping;
XamlTypeMapper.InvalidateMappingCache(xamlPIMappingNode.XmlNamespace);
if (!_pass2 && BamlRecordWriter != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs
index 1710c1cda32..6be7f7018a5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/MS/Internal/Tasks/CompilerWrapper.cs
@@ -223,12 +223,14 @@ internal bool DoCompilation(string assemblyName, string language, string rootNam
{
bool ret = true;
- CompilationUnit compUnit = new CompilationUnit(assemblyName, language, rootNamespace, fileList);
- compUnit.Pass2 = isSecondPass;
+ CompilationUnit compUnit = new CompilationUnit(assemblyName, language, rootNamespace, fileList)
+ {
+ Pass2 = isSecondPass,
- // Set some properties required by the CompilationUnit
- compUnit.ApplicationFile = _applicationMarkup;
- compUnit.SourcePath = _sourceDir;
+ // Set some properties required by the CompilationUnit
+ ApplicationFile = _applicationMarkup,
+ SourcePath = _sourceDir
+ };
//Set the properties required by MarkupCompiler
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs
index 1c202e20f7c..33afdfc763f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass1.cs
@@ -1472,9 +1472,11 @@ private void GenerateOutputItemsForCompiledXamlFiles(ITaskItem[] inputXamlItemLi
{
TaskItem codeItem;
- codeItem = new TaskItem();
- codeItem.ItemSpec = genLangFilePath;
-
+ codeItem = new TaskItem
+ {
+ ItemSpec = genLangFilePath
+ };
+
outputCodeFileList.Add(codeItem);
Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec);
@@ -1577,8 +1579,10 @@ private TaskItem GenerateBamlItem(string bamlFile, ITaskItem SourceItem)
{
TaskItem bamlItem;
- bamlItem = new TaskItem();
- bamlItem.ItemSpec = bamlFile;
+ bamlItem = new TaskItem
+ {
+ ItemSpec = bamlFile
+ };
//
// Transfer some special custom attributes from source task item
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs
index 1bea9221d80..16f10fe7be0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/MarkupCompilePass2.cs
@@ -790,8 +790,10 @@ private TaskItem GenerateBamlItem(string resolvedXamlfile, bool localizable, str
// Generate a TaskItem for it.
//
- bamlItem = new TaskItem();
- bamlItem.ItemSpec = bamlFile;
+ bamlItem = new TaskItem
+ {
+ ItemSpec = bamlFile
+ };
// Transfer the metadata value from source item to the generated baml item.
bamlItem.SetMetadata(SharedStrings.Localizable, localizable ? "True" : "False");
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs
index e19ce88010a..c7110bbc598 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/UpdateManifestForBrowserApplication.cs
@@ -117,9 +117,11 @@ public override bool Execute()
// Update the manifest file.
try
{
- manifestWriter = new XmlTextWriter(appManifestFile, System.Text.Encoding.UTF8);
- manifestWriter.Formatting = Formatting.Indented;
- manifestWriter.Indentation = 4;
+ manifestWriter = new XmlTextWriter(appManifestFile, System.Text.Encoding.UTF8)
+ {
+ Formatting = Formatting.Indented,
+ Indentation = 4
+ };
manifestDocument.WriteTo(manifestWriter);
}
finally
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs
index 4c7f53ca8f4..8179b6c2ad6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/AnimatedTypeHelpers.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -114,15 +114,16 @@ internal static Quaternion InterpolateQuaternion(Quaternion from, Quaternion to,
internal static Rect InterpolateRect(Rect from, Rect to, Double progress)
{
- Rect temp = new Rect();
-
- // from + ((from - to) * progress)
- temp.Location = new Point(
+ Rect temp = new Rect
+ {
+ // from + ((from - to) * progress)
+ Location = new Point(
from.Location.X + ((to.Location.X - from.Location.X) * progress),
- from.Location.Y + ((to.Location.Y - from.Location.Y) * progress));
- temp.Size = new Size(
+ from.Location.Y + ((to.Location.Y - from.Location.Y) * progress)),
+ Size = new Size(
from.Size.Width + ((to.Size.Width - from.Size.Width) * progress),
- from.Size.Height + ((to.Size.Height - from.Size.Height) * progress));
+ from.Size.Height + ((to.Size.Height - from.Size.Height) * progress))
+ };
return temp;
}
@@ -563,14 +564,15 @@ internal static Quaternion ScaleQuaternion(Quaternion value, Double factor)
internal static Rect ScaleRect(Rect value, Double factor)
{
- Rect temp = new Rect();
-
- temp.Location = new Point(
+ Rect temp = new Rect
+ {
+ Location = new Point(
value.Location.X * factor,
- value.Location.Y * factor);
- temp.Size = new Size(
+ value.Location.Y * factor),
+ Size = new Size(
value.Size.Width * factor,
- value.Size.Height * factor);
+ value.Size.Height * factor)
+ };
return temp;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs
index 5c6c8019468..44305e9102b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/FontFace/CompositeFontParser.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -221,12 +221,13 @@ private CompositeFontParser(Stream fileStream)
///
private XmlReader CreateXmlReader(Stream fileStream)
{
- XmlReaderSettings settings = new XmlReaderSettings();
-
- settings.CloseInput = true;
- settings.IgnoreComments = true;
- settings.IgnoreWhitespace = false;
- settings.ProhibitDtd = true;
+ XmlReaderSettings settings = new XmlReaderSettings
+ {
+ CloseInput = true,
+ IgnoreComments = true,
+ IgnoreWhitespace = false,
+ ProhibitDtd = true
+ };
XmlReader baseReader = XmlReader.Create(fileStream, settings);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs
index 7e02d8cdc4e..8846a62f71a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/IO/Packaging/NetStream.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -591,12 +591,13 @@ private void EnsureDownloader()
_byteRangeDownloader = new ByteRangeDownloader(_uri,
_tempFileStream,
_readEventHandles[(int)ReadEvent.ByteRangeReadEvent].SafeWaitHandle,
- _tempFileMutex);
-
- _byteRangeDownloader.Proxy = _originalRequest.Proxy;
+ _tempFileMutex)
+ {
+ Proxy = _originalRequest.Proxy,
- _byteRangeDownloader.Credentials = _originalRequest.Credentials;
- _byteRangeDownloader.CachePolicy = _originalRequest.CachePolicy;
+ Credentials = _originalRequest.Credentials,
+ CachePolicy = _originalRequest.CachePolicy
+ };
_byteRangesAvailable = new ArrayList(); // byte ranges that are downloaded
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs
index 9a22bfa0d69..50af79b67de 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/CuspData.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -35,8 +35,10 @@ internal void Analyze(StylusPointCollection stylusPoints, double rSpan)
// Construct the lists of data points and nodes
_nodes.Add(0);
- CDataPoint cdp0 = new CDataPoint();
- cdp0.Index = 0;
+ CDataPoint cdp0 = new CDataPoint
+ {
+ Index = 0
+ };
//convert from Avalon to Himetric
Point point = (Point)stylusPoints[0];
point.X *= StrokeCollectionSerializer.AvalonToHimetricMultiplier;
@@ -54,8 +56,10 @@ internal void Analyze(StylusPointCollection stylusPoints, double rSpan)
//this is a unique point, add it
index++;
- CDataPoint cdp = new CDataPoint();
- cdp.Index = index;
+ CDataPoint cdp = new CDataPoint
+ {
+ Index = index
+ };
//convert from Avalon to Himetric
Point point2 = (Point)stylusPoints[i];
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs
index fb0de6bcc17..eacc55d9942 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/GestureRecognizer/NativeRecognizer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -508,11 +508,13 @@ StylusPointDescription reformatDescription
packetProperties[i].guid = propertyGuids[i];
propertyInfo = infosToUse[i];
- MS.Win32.Recognizer.PROPERTY_METRICS propertyMetrics = new MS.Win32.Recognizer.PROPERTY_METRICS( );
- propertyMetrics.nLogicalMin = propertyInfo.Minimum;
- propertyMetrics.nLogicalMax = propertyInfo.Maximum;
- propertyMetrics.Units = (int)(propertyInfo.Unit);
- propertyMetrics.fResolution = propertyInfo.Resolution;
+ MS.Win32.Recognizer.PROPERTY_METRICS propertyMetrics = new MS.Win32.Recognizer.PROPERTY_METRICS
+ {
+ nLogicalMin = propertyInfo.Minimum,
+ nLogicalMax = propertyInfo.Maximum,
+ Units = (int)(propertyInfo.Unit),
+ fResolution = propertyInfo.Resolution
+ };
packetProperties[i].PropertyMetrics = propertyMetrics;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs
index 89b3de39b89..aeafe484d14 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/InkSerializedFormat/InkSerializer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -836,12 +836,14 @@ private uint LoadDrawAttrsTable(Stream strm, GuidList guidList, uint cbSize)
- // Create a new drawing attribute
- DrawingAttributes attributes = new DrawingAttributes();
- // pull off our defaults onthe drawing attribute as we need to
- // respect what the ISF has.
- attributes.DrawingFlags = 0;
- cb = DrawingAttributeSerializer.DecodeAsISF(strm, guidList, cbDA, attributes);
+ // Create a new drawing attribute
+ DrawingAttributes attributes = new DrawingAttributes
+ {
+ // pull off our defaults onthe drawing attribute as we need to
+ // respect what the ISF has.
+ DrawingFlags = 0
+ };
+ cb = DrawingAttributeSerializer.DecodeAsISF(strm, guidList, cbDA, attributes);
// Load the stream into this attribute
if (cbSize < cbDA)
@@ -1107,9 +1109,10 @@ private uint DecodeMetricBlock(Stream strm, uint cbSize, out MetricBlock block)
cbTotal -= cb;
// now create new metric entry
- MetricEntry entry = new MetricEntry();
-
- entry.Tag = (KnownTagCache.KnownTagIndex)dw;
+ MetricEntry entry = new MetricEntry
+ {
+ Tag = (KnownTagCache.KnownTagIndex)dw
+ };
byte[] data = new byte[size];
@@ -1237,8 +1240,10 @@ internal static uint ReliableRead(Stream stream, byte[] buffer, uint requestedCo
///
private uint DecodeTransformBlock(Stream strm, KnownTagCache.KnownTagIndex tag, uint cbSize, bool useDoubles, out TransformDescriptor xform)
{
- xform = new TransformDescriptor();
- xform.Tag = tag;
+ xform = new TransformDescriptor
+ {
+ Tag = tag
+ };
uint cbRead = 0;
uint cbTotal = cbSize;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs
index 0f1dca4e8bb..c0e25401384 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Lasso.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -575,8 +575,10 @@ public static LassoCrossing EmptyCrossing
{
get
{
- LassoCrossing crossing = new LassoCrossing();
- crossing.FIndices = StrokeFIndices.Empty;
+ LassoCrossing crossing = new LassoCrossing
+ {
+ FIndices = StrokeFIndices.Empty
+ };
return crossing;
}
}
@@ -714,9 +716,11 @@ protected override bool Filter(Point point)
if (!DoubleUtil.AreClose(i, intersection))
{
// Move points[i] to the intersection position
- Point intersectionPoint = new Point(0, 0);
- intersectionPoint.X = points[i].X + (intersection - i) * (points[i + 1].X - points[i].X);
- intersectionPoint.Y = points[i].Y + (intersection - i) * (points[i + 1].Y - points[i].Y);
+ Point intersectionPoint = new Point(0, 0)
+ {
+ X = points[i].X + (intersection - i) * (points[i + 1].X - points[i].X),
+ Y = points[i].Y + (intersection - i) * (points[i + 1].Y - points[i].Y)
+ };
points[i] = intersectionPoint;
IsIncrementalLassoDirty = true;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs
index f2f92b63c9c..ec612fa0012 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/Renderer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -658,8 +658,10 @@ private ContainerVisual GetContainerVisual(DrawingAttributes drawingAttributes)
_highlighters = new Dictionary();
}
- hcVisual = new HighlighterContainerVisual(color);
- hcVisual.Opacity = StrokeRenderer.HighlighterOpacity;
+ hcVisual = new HighlighterContainerVisual(color)
+ {
+ Opacity = StrokeRenderer.HighlighterOpacity
+ };
_highlightersRoot.Children.Add(hcVisual);
_highlighters.Add(color, hcVisual);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs
index d1b566bcb5b..378783d2b45 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Ink/StrokeRenderer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -37,8 +37,10 @@ internal static void CalcGeometryAndBoundsWithTransform(StrokeNodeIterator itera
Debug.Assert(iterator != null);
Debug.Assert(drawingAttributes != null);
- StreamGeometry streamGeometry = new StreamGeometry();
- streamGeometry.FillRule = FillRule.Nonzero;
+ StreamGeometry streamGeometry = new StreamGeometry
+ {
+ FillRule = FillRule.Nonzero
+ };
StreamGeometryContext context = streamGeometry.Open();
geometry = streamGeometry;
@@ -217,8 +219,10 @@ internal static void CalcGeometryAndBounds(StrokeNodeIterator iterator,
}
else
{
- StreamGeometry streamGeometry = new StreamGeometry();
- streamGeometry.FillRule = FillRule.Nonzero;
+ StreamGeometry streamGeometry = new StreamGeometry
+ {
+ FillRule = FillRule.Nonzero
+ };
StreamGeometryContext context = streamGeometry.Open();
geometry = streamGeometry;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs
index 24011ff32f6..09dad55d9d9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/Media3D/GeneralTransform2DTo3DTo2D.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -70,10 +70,12 @@ internal GeneralTransform2DTo3DTo2D(Viewport2DVisual3D visual3D, Visual fromVisu
// get a copy of the geometry information - we store our own model to reuse hit
// test code on the GeometryModel3D
- _geometry = new MeshGeometry3D();
- _geometry.Positions = visual3D.InternalPositionsCache;
- _geometry.TextureCoordinates = visual3D.InternalTextureCoordinatesCache;
- _geometry.TriangleIndices = visual3D.InternalTriangleIndicesCache;
+ _geometry = new MeshGeometry3D
+ {
+ Positions = visual3D.InternalPositionsCache,
+ TextureCoordinates = visual3D.InternalTextureCoordinatesCache,
+ TriangleIndices = visual3D.InternalTriangleIndicesCache
+ };
_geometry.Freeze();
Visual visual3Dchild = visual3D.Visual;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs
index 80e93d8eb58..1f819e46c59 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextBreakpoint.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -138,9 +138,11 @@ int breakIndex
//
// Client of text formatter would simply pass the value of TextBreakpoint.Width
// back to PTS pfnFormatLineVariants call.
- LsLineWidths lineWidths = new LsLineWidths();
- lineWidths.upLimLine = maxLineWidth;
- lineWidths.upStartMainText = fullText.TextStore.Settings.TextIndent;
+ LsLineWidths lineWidths = new LsLineWidths
+ {
+ upLimLine = maxLineWidth,
+ upStartMainText = fullText.TextStore.Settings.TextIndent
+ };
lineWidths.upStartMarker = lineWidths.upStartMainText;
lineWidths.upStartTrailing = lineWidths.upLimLine;
lineWidths.upMinStartTrailing = lineWidths.upStartTrailing;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs
index 652c874e001..5b469be1ee8 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextLine.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -161,8 +161,10 @@ private FullTextLine(TextFormattingMode textFormattingMode, bool justify, double
{
_statusFlags |= StatusFlags.IsJustified;
}
- _metrics = new TextMetrics();
- _metrics._pixelsPerDip = pixelsPerDip;
+ _metrics = new TextMetrics
+ {
+ _pixelsPerDip = pixelsPerDip
+ };
_ploline = IntPtr.Zero;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs
index 790e80df3bd..867ee0df0dc 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/FullTextState.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -199,8 +199,10 @@ internal void SetTabs(TextFormatterContext context)
}
else
{
- LsTbd markerRequiredLsTbd = new LsTbd();
- markerRequiredLsTbd.ur = settings.TextIndent; // marker requires a tab stop at text start position
+ LsTbd markerRequiredLsTbd = new LsTbd
+ {
+ ur = settings.TextIndent // marker requires a tab stop at text start position
+ };
context.SetTabs(incrementalTab, &markerRequiredLsTbd, 1);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs
index 37f2f2ad947..b058bf3b728 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/LineServicesCallbacks.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -626,8 +626,10 @@ out lsrunLength
alignment = LsKAlign.lskalRight;
- lschp = new LsChp();
- lschp.idObj = (ushort)TextStore.ObjectId.Text_chp;
+ lschp = new LsChp
+ {
+ idObj = (ushort)TextStore.ObjectId.Text_chp
+ };
SetChpFormat(lsrun.RunProp, ref lschp);
@@ -2313,9 +2315,11 @@ internal unsafe LsErr GetObjectHandlerInfo(
switch (objectId)
{
case (uint)TextStore.ObjectId.InlineObject:
- InlineInit inlineInit = new InlineInit();
- inlineInit.pfnFormat = this.InlineFormatDelegate;
- inlineInit.pfnDraw = this.InlineDrawDelegate;
+ InlineInit inlineInit = new InlineInit
+ {
+ pfnFormat = this.InlineFormatDelegate,
+ pfnDraw = this.InlineDrawDelegate
+ };
Marshal.StructureToPtr(inlineInit, (System.IntPtr)objectInfo, false);
break;
@@ -2379,8 +2383,10 @@ out LsBrkCond breakAfter // [out] break condition after this
rightMargin
);
- pobjDim = new ObjDim();
- pobjDim.dur = TextFormatterImp.RealToIdeal(metrics.Width);
+ pobjDim = new ObjDim
+ {
+ dur = TextFormatterImp.RealToIdeal(metrics.Width)
+ };
pobjDim.heightsRef.dvMultiLineHeight = TextFormatterImp.RealToIdeal(metrics.Height);
pobjDim.heightsRef.dvAscent = TextFormatterImp.RealToIdeal(metrics.Baseline);
pobjDim.heightsRef.dvDescent = pobjDim.heightsRef.dvMultiLineHeight - pobjDim.heightsRef.dvAscent;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs
index 84e2ce2c896..e23b0e6f894 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/MS/internal/TextFormatting/SimpleTextLine.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1610,8 +1610,10 @@ double pixelsPerDip
// a complex character, we need to do the same thing as the full shaping path and draw a space for each tab.
TextRun modifedTextRun = new TextCharacters(" ", textRun.Properties);
CharacterBufferRange characterBufferRange = new CharacterBufferRange(modifedTextRun);
- SimpleRun run = new SimpleRun(1, modifedTextRun, Flags.Tab, settings.Formatter, pixelsPerDip);
- run.CharBufferReference = characterBufferRange.CharacterBufferReference;
+ SimpleRun run = new SimpleRun(1, modifedTextRun, Flags.Tab, settings.Formatter, pixelsPerDip)
+ {
+ CharBufferReference = characterBufferRange.CharacterBufferReference
+ };
run.TextRun.Properties.Typeface.GetCharacterNominalWidthsAndIdealWidth(
characterBufferRange,
run.EmSize,
@@ -1661,9 +1663,11 @@ double pixelsPerDip
{
Invariant.Assert(textRun is TextCharacters);
- SimpleRun run = new SimpleRun(formatter, pixelsPerDip);
- run.CharBufferReference = charBufferRange.CharacterBufferReference;
- run.TextRun = textRun;
+ SimpleRun run = new SimpleRun(formatter, pixelsPerDip)
+ {
+ CharBufferReference = charBufferRange.CharacterBufferReference,
+ TextRun = textRun
+ };
if (!run.TextRun.Properties.Typeface.CheckFastPathNominalGlyphs(
charBufferRange,
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs
index 3dbc0bc6b97..e37bddcdf39 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Automation/Peers/AutomationPeer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -221,8 +221,10 @@ private HostedWindowWrapper()
internal static HostedWindowWrapper CreateInternal(IntPtr hwnd)
{
- HostedWindowWrapper wrapper = new HostedWindowWrapper();
- wrapper._hwnd = hwnd;
+ HostedWindowWrapper wrapper = new HostedWindowWrapper
+ {
+ _hwnd = hwnd
+ };
return wrapper;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs
index 238122fa46b..91a985424c0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/ClassHandlersStore.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -45,8 +45,10 @@ internal RoutedEventHandlerInfoList AddToExistingHandlers(
{
// Create a new node in the linked list of class
// handlers for this type and routed event.
- handlers = new RoutedEventHandlerInfoList();
- handlers.Handlers = new RoutedEventHandlerInfo[1];
+ handlers = new RoutedEventHandlerInfoList
+ {
+ Handlers = new RoutedEventHandlerInfo[1]
+ };
handlers.Handlers[0] = routedEventHandlerInfo;
handlers.Next = _eventHandlersList.List[index].Handlers;
_eventHandlersList.List[index].Handlers = handlers;
@@ -83,10 +85,12 @@ internal int CreateHandlersLink(RoutedEvent routedEvent, RoutedEventHandlerInfoL
{
Debug.Assert(GetHandlersIndex(routedEvent) == -1, "There should not exist a set of handlers for the given routedEvent");
- ClassHandlers classHandlers = new ClassHandlers();
- classHandlers.RoutedEvent = routedEvent;
- classHandlers.Handlers = handlers;
- classHandlers.HasSelfHandlers = false;
+ ClassHandlers classHandlers = new ClassHandlers
+ {
+ RoutedEvent = routedEvent,
+ Handlers = handlers,
+ HasSelfHandlers = false
+ };
_eventHandlersList.Add(classHandlers);
return _eventHandlersList.Count - 1;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs
index ca652f780f8..2f387cb790e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Duration.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -361,8 +361,10 @@ public static Duration Automatic
{
get
{
- Duration duration = new Duration();
- duration._durationType = DurationType.Automatic;
+ Duration duration = new Duration
+ {
+ _durationType = DurationType.Automatic
+ };
return duration;
}
@@ -376,8 +378,10 @@ public static Duration Forever
{
get
{
- Duration duration = new Duration();
- duration._durationType = DurationType.Forever;
+ Duration duration = new Duration
+ {
+ _durationType = DurationType.Forever
+ };
return duration;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs
index 50aa4789314..dfbd91bf5e1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -299,10 +299,12 @@ private void InvokeHandlersImpl(object source, RoutedEventArgs args, bool reRais
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public void PushBranchNode(object node, object source)
{
- BranchNode branchNode = new BranchNode();
- branchNode.Node = node;
- branchNode.Source = source;
-
+ BranchNode branchNode = new BranchNode
+ {
+ Node = node,
+ Source = source
+ };
+
(_branchNodeStack ??= new Stack(1)).Push(branchNode);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs
index 46686b6b6d5..8ebd9e33282 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Ink/StrokeCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -99,8 +99,10 @@ public void Save(Stream stream)
///
internal void SaveIsf(Stream stream, bool compress)
{
- StrokeCollectionSerializer serializer = new StrokeCollectionSerializer(this);
- serializer.CurrentCompressionMode = compress ? CompressionMode.Compressed : CompressionMode.NoCompression;
+ StrokeCollectionSerializer serializer = new StrokeCollectionSerializer(this)
+ {
+ CurrentCompressionMode = compress ? CompressionMode.Compressed : CompressionMode.NoCompression
+ };
serializer.EncodeISF(stream);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs
index 87eb798a510..821e1cc489a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandDevice.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -93,9 +93,11 @@ private void PostProcessInput( object sender, ProcessInputEventArgs e )
{
// Send the app command to the tree to be handled by UIElements and ContentElements
// that will forward the event to CommandManager.
- CommandDeviceEventArgs args = new CommandDeviceEventArgs(this, rawAppCommandInputReport.Timestamp, command);
- args.RoutedEvent = CommandDeviceEvent;
- args.Source = commandTarget;
+ CommandDeviceEventArgs args = new CommandDeviceEventArgs(this, rawAppCommandInputReport.Timestamp, command)
+ {
+ RoutedEvent = CommandDeviceEvent,
+ Source = commandTarget
+ };
e.PushInput(args, e.StagingItem);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs
index 3e5bba2084c..94d2d869926 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/CommandManager.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -506,16 +506,20 @@ internal static void OnCommandDevice(object sender, CommandDeviceEventArgs e)
{
if ((sender != null) && (e != null) && (e.Command != null))
{
- CanExecuteRoutedEventArgs canExecuteArgs = new CanExecuteRoutedEventArgs(e.Command, null /* parameter */);
- canExecuteArgs.RoutedEvent = CommandManager.CanExecuteEvent;
- canExecuteArgs.Source = sender;
+ CanExecuteRoutedEventArgs canExecuteArgs = new CanExecuteRoutedEventArgs(e.Command, null /* parameter */)
+ {
+ RoutedEvent = CommandManager.CanExecuteEvent,
+ Source = sender
+ };
OnCanExecute(sender, canExecuteArgs);
if (canExecuteArgs.CanExecute)
{
- ExecutedRoutedEventArgs executedArgs = new ExecutedRoutedEventArgs(e.Command, null /* parameter */);
- executedArgs.RoutedEvent = CommandManager.ExecutedEvent;
- executedArgs.Source = sender;
+ ExecutedRoutedEventArgs executedArgs = new ExecutedRoutedEventArgs(e.Command, null /* parameter */)
+ {
+ RoutedEvent = CommandManager.ExecutedEvent,
+ Source = sender
+ };
OnExecuted(sender, executedArgs);
if (executedArgs.Handled)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs
index 614f92089a5..384e7afc35a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/ComponentCommands.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -502,8 +502,10 @@ private static RoutedUICommand _EnsureCommand(CommandId idCommand)
{
if (_internalCommands[(int)idCommand] == null)
{
- RoutedUICommand newCommand = new RoutedUICommand(GetPropertyName(idCommand), typeof(ComponentCommands), (byte)idCommand);
- newCommand.AreInputGesturesDelayLoaded = true;
+ RoutedUICommand newCommand = new RoutedUICommand(GetPropertyName(idCommand), typeof(ComponentCommands), (byte)idCommand)
+ {
+ AreInputGesturesDelayLoaded = true
+ };
_internalCommands[(int)idCommand] = newCommand;
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs
index 4f709c4c537..69211c62f5e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/MediaCommands.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -441,8 +441,10 @@ private static RoutedUICommand _EnsureCommand(CommandId idCommand)
{
if (_internalCommands[(int)idCommand] == null)
{
- RoutedUICommand newCommand = new RoutedUICommand(GetPropertyName(idCommand), typeof(MediaCommands), (byte)idCommand);
- newCommand.AreInputGesturesDelayLoaded = true;
+ RoutedUICommand newCommand = new RoutedUICommand(GetPropertyName(idCommand), typeof(MediaCommands), (byte)idCommand)
+ {
+ AreInputGesturesDelayLoaded = true
+ };
_internalCommands[(int)idCommand] = newCommand;
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs
index e341cf3199e..561221d1bed 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/RoutedCommand.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -319,8 +319,10 @@ private bool CanExecuteImpl(object parameter, IInputElement target, bool trusted
if ((target != null) && !IsBlockedByRM)
{
// Raise the Preview Event, check the Handled value, and raise the regular event.
- CanExecuteRoutedEventArgs args = new CanExecuteRoutedEventArgs(this, parameter);
- args.RoutedEvent = CommandManager.PreviewCanExecuteEvent;
+ CanExecuteRoutedEventArgs args = new CanExecuteRoutedEventArgs(this, parameter)
+ {
+ RoutedEvent = CommandManager.PreviewCanExecuteEvent
+ };
CriticalCanExecuteWrapper(parameter, target, trusted, args);
if (!args.Handled)
{
@@ -378,9 +380,11 @@ private bool ExecuteImpl(object parameter, IInputElement target, bool userInitia
// Raise the Preview Event and check for Handled value, and
// Raise the regular ExecuteEvent.
- ExecutedRoutedEventArgs args = new ExecutedRoutedEventArgs(this, parameter);
- args.RoutedEvent = CommandManager.PreviewExecutedEvent;
-
+ ExecutedRoutedEventArgs args = new ExecutedRoutedEventArgs(this, parameter)
+ {
+ RoutedEvent = CommandManager.PreviewExecutedEvent
+ };
+
if (targetUIElement != null)
{
targetUIElement.RaiseEvent(args, userInitiated);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs
index 42844a31a4c..0d46c822ab6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs
@@ -855,8 +855,10 @@ private bool ProcessStagingArea()
{
InputReportEventArgs previewInputReport = (InputReportEventArgs) item.Input;
- InputReportEventArgs inputReport = new InputReportEventArgs(previewInputReport.Device, previewInputReport.Report);
- inputReport.RoutedEvent=InputManager.InputReportEvent;
+ InputReportEventArgs inputReport = new InputReportEventArgs(previewInputReport.Device, previewInputReport.Report)
+ {
+ RoutedEvent = InputManager.InputReportEvent
+ };
PushInput(inputReport, item);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs
index 5fecd80ac86..617cf5fef30 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputMethod.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1574,9 +1574,11 @@ private bool _ShowRegisterWordUI(UIElement element, bool fShow, string strRegist
bCanShown = true;
if (fShow)
{
- NativeMethods.REGISTERWORD regWord = new NativeMethods.REGISTERWORD();
- regWord.lpReading = null;
- regWord.lpWord = strRegister;
+ NativeMethods.REGISTERWORD regWord = new NativeMethods.REGISTERWORD
+ {
+ lpReading = null,
+ lpWord = strRegister
+ };
UnsafeNativeMethods.ImmConfigureIME(new HandleRef(this, hkl), new HandleRef(this, HwndFromInputElement(element)), NativeMethods.IME_CONFIG_REGISTERWORD, ref regWord);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs
index b9ba414bef3..8901125ac9a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -83,10 +83,12 @@ public bool ReportInput(InputReport inputReport)
bool handled = false;
- InputReportEventArgs input = new InputReportEventArgs(null, inputReport);
- input.RoutedEvent=InputManager.PreviewInputReportEvent;
+ InputReportEventArgs input = new InputReportEventArgs(null, inputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
- if(_inputManager is not null)
+ if (_inputManager is not null)
{
handled = _inputManager.ProcessInput(input);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs
index c2f98228f53..d108787734d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputScopeNameConverter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -102,9 +102,11 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
nameValue = Enum.Parse(stringSource);
}
}
-
- inputScopeName = new InputScopeName();
- inputScopeName.NameValue = nameValue;
+
+ inputScopeName = new InputScopeName
+ {
+ NameValue = nameValue
+ };
return inputScopeName;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs
index b59ac383148..89e51e3a826 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyboardDevice.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -275,9 +275,11 @@ private void TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider ke
// - no need to check "changeFocus" here as it was just previously unconditionally set to true
if(askOld && _focus != null)
{
- KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
- previewLostFocus.RoutedEvent=Keyboard.PreviewLostKeyboardFocusEvent;
- previewLostFocus.Source= _focus;
+ KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus)
+ {
+ RoutedEvent = Keyboard.PreviewLostKeyboardFocusEvent,
+ Source = _focus
+ };
_inputManager?.ProcessInput(previewLostFocus);
// is handled the right indication of canceled?
@@ -292,9 +294,11 @@ private void TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider ke
// above already cancelled it
if(askNew && changeFocus && newFocus != null)
{
- KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus);
- previewGotFocus.RoutedEvent=Keyboard.PreviewGotKeyboardFocusEvent;
- previewGotFocus.Source= newFocus;
+ KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus)
+ {
+ RoutedEvent = Keyboard.PreviewGotKeyboardFocusEvent,
+ Source = newFocus
+ };
_inputManager?.ProcessInput(previewGotFocus);
// is handled the right indication of canceled?
@@ -315,9 +319,11 @@ private void TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider ke
// element receiving focus have all agreed to the
// transaction. This is used by menus to configure the
// behavior of focus changes.
- KeyboardInputProviderAcquireFocusEventArgs acquireFocus = new KeyboardInputProviderAcquireFocusEventArgs(this, timeStamp, changeFocus);
- acquireFocus.RoutedEvent = Keyboard.PreviewKeyboardInputProviderAcquireFocusEvent;
- acquireFocus.Source= newFocus;
+ KeyboardInputProviderAcquireFocusEventArgs acquireFocus = new KeyboardInputProviderAcquireFocusEventArgs(this, timeStamp, changeFocus)
+ {
+ RoutedEvent = Keyboard.PreviewKeyboardInputProviderAcquireFocusEvent,
+ Source = newFocus
+ };
_inputManager?.ProcessInput(acquireFocus);
// Acquire focus through the input provider.
@@ -325,9 +331,11 @@ private void TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider ke
// Tell the element whether or not we were able to
// acquire focus through the input provider.
- acquireFocus = new KeyboardInputProviderAcquireFocusEventArgs(this, timeStamp, changeFocus);
- acquireFocus.RoutedEvent = Keyboard.KeyboardInputProviderAcquireFocusEvent;
- acquireFocus.Source= newFocus;
+ acquireFocus = new KeyboardInputProviderAcquireFocusEventArgs(this, timeStamp, changeFocus)
+ {
+ RoutedEvent = Keyboard.KeyboardInputProviderAcquireFocusEvent,
+ Source = newFocus
+ };
_inputManager?.ProcessInput(acquireFocus);
}
else
@@ -460,17 +468,21 @@ private void ChangeFocus(DependencyObject focus, int timestamp)
// Send the LostKeyboardFocus and GotKeyboardFocus events.
if(oldFocus != null)
{
- KeyboardFocusChangedEventArgs lostFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) focus);
- lostFocus.RoutedEvent=Keyboard.LostKeyboardFocusEvent;
- lostFocus.Source= oldFocus;
+ KeyboardFocusChangedEventArgs lostFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement)oldFocus, (IInputElement)focus)
+ {
+ RoutedEvent = Keyboard.LostKeyboardFocusEvent,
+ Source = oldFocus
+ };
_inputManager?.ProcessInput(lostFocus);
}
if(_focus != null)
{
- KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) _focus);
- gotFocus.RoutedEvent=Keyboard.GotKeyboardFocusEvent;
- gotFocus.Source= _focus;
+ KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement)oldFocus, (IInputElement)_focus)
+ {
+ RoutedEvent = Keyboard.GotKeyboardFocusEvent,
+ Source = _focus
+ };
_inputManager?.ProcessInput(gotFocus);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs
index a40f8ee8e15..8168c7c9ef4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/ManipulationLogic.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -244,8 +244,10 @@ internal void BeginInertia(ManipulationInertiaStartingEventArgs e)
e.ApplyParameters(_inertiaProcessor);
// Setup a timer to tick the inertia to completion
- _inertiaTimer = new DispatcherTimer();
- _inertiaTimer.Interval = TimeSpan.FromMilliseconds(15);
+ _inertiaTimer = new DispatcherTimer
+ {
+ Interval = TimeSpan.FromMilliseconds(15)
+ };
_inertiaTimer.Tick += new EventHandler(OnInertiaTick);
_inertiaTimer.Start();
}
@@ -413,8 +415,10 @@ internal void ReportFrame(ICollection manipulators)
private ManipulationStartingEventArgs RaiseStarting()
{
- ManipulationStartingEventArgs starting = new ManipulationStartingEventArgs(_manipulationDevice, Environment.TickCount);
- starting.ManipulationContainer = _manipulationDevice.Target;
+ ManipulationStartingEventArgs starting = new ManipulationStartingEventArgs(_manipulationDevice, Environment.TickCount)
+ {
+ ManipulationContainer = _manipulationDevice.Target
+ };
_manipulationDevice.ProcessManipulationInput(starting);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs
index f1945486638..84d2ff8b289 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/MouseDevice.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -891,11 +891,13 @@ public void Synchronize()
timeStamp,
activeSource,
RawMouseActions.AbsoluteMove,
- (int) ptClient.X,
- (int) ptClient.Y,
+ (int)ptClient.X,
+ (int)ptClient.Y,
0,
- IntPtr.Zero);
- report._isSynchronize = true;
+ IntPtr.Zero)
+ {
+ _isSynchronize = true
+ };
InputReportEventArgs inputReportEventArgs;
if (_stylusDevice != null)
@@ -934,9 +936,11 @@ public void UpdateCursor()
private bool UpdateCursorPrivate()
{
int timeStamp = Environment.TickCount;
- QueryCursorEventArgs queryCursor = new QueryCursorEventArgs(this, timeStamp);
- queryCursor.Cursor = Cursors.Arrow;
- queryCursor.RoutedEvent=Mouse.QueryCursorEvent;
+ QueryCursorEventArgs queryCursor = new QueryCursorEventArgs(this, timeStamp)
+ {
+ Cursor = Cursors.Arrow,
+ RoutedEvent = Mouse.QueryCursorEvent
+ };
//ProcessInput has a linkdemand
_inputManager.ProcessInput(queryCursor);
return queryCursor.Handled;
@@ -1123,17 +1127,21 @@ private void ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider
// Send the LostMouseCapture and GotMouseCapture events.
if (oldMouseCapture != null)
{
- MouseEventArgs lostCapture = new MouseEventArgs(this, timestamp, _stylusDevice);
- lostCapture.RoutedEvent=Mouse.LostMouseCaptureEvent;
- lostCapture.Source= oldMouseCapture;
+ MouseEventArgs lostCapture = new MouseEventArgs(this, timestamp, _stylusDevice)
+ {
+ RoutedEvent = Mouse.LostMouseCaptureEvent,
+ Source = oldMouseCapture
+ };
//ProcessInput has a linkdemand
_inputManager.ProcessInput(lostCapture);
}
if (_mouseCapture != null)
{
- MouseEventArgs gotCapture = new MouseEventArgs(this, timestamp, _stylusDevice);
- gotCapture.RoutedEvent=Mouse.GotMouseCaptureEvent;
- gotCapture.Source= _mouseCapture;
+ MouseEventArgs gotCapture = new MouseEventArgs(this, timestamp, _stylusDevice)
+ {
+ RoutedEvent = Mouse.GotMouseCaptureEvent,
+ Source = _mouseCapture
+ };
//ProcessInput has a linkdemand
_inputManager.ProcessInput(gotCapture);
}
@@ -1178,8 +1186,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
rawMouseInputReport.Y,
rawMouseInputReport.Wheel,
rawMouseInputReport.ExtraInformation);
- InputReportEventArgs actionsArgs = new InputReportEventArgs(inputReportEventArgs.Device, reportActions);
- actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent;
+ InputReportEventArgs actionsArgs = new InputReportEventArgs(inputReportEventArgs.Device, reportActions)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
e.PushInput(actionsArgs, null);
PushActivateInputReport(e, inputReportEventArgs, rawMouseInputReport, clearExtraInformation:false);
@@ -1262,8 +1272,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
0,
rawMouseInputReport.Wheel,
rawMouseInputReport.ExtraInformation);
- InputReportEventArgs actionsArgs = new InputReportEventArgs(inputDevice, reportActions);
- actionsArgs.RoutedEvent=InputManager.PreviewInputReportEvent;
+ InputReportEventArgs actionsArgs = new InputReportEventArgs(inputDevice, reportActions)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
e.PushInput(actionsArgs, null);
// Push a new RawMouseInputReport for the AbsoluteMove.
@@ -1275,8 +1287,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
rawMouseInputReport.Y,
0,
IntPtr.Zero);
- InputReportEventArgs moveArgs = new InputReportEventArgs(inputDevice, reportMove);
- moveArgs.RoutedEvent=InputManager.PreviewInputReportEvent;
+ InputReportEventArgs moveArgs = new InputReportEventArgs(inputDevice, reportMove)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
e.PushInput(moveArgs, null);
}
else
@@ -1316,8 +1330,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
// The mouse is not physically over the capture point (or
// subtree), so raise the PreviewMouseDownOutsideCapturedElement
// event first.
- MouseButtonEventArgs clickThrough = new MouseButtonEventArgs(this, mouseButtonEventArgs.Timestamp, mouseButtonEventArgs.ChangedButton, GetStylusDevice(e.StagingItem));
- clickThrough.RoutedEvent=Mouse.PreviewMouseDownOutsideCapturedElementEvent;
+ MouseButtonEventArgs clickThrough = new MouseButtonEventArgs(this, mouseButtonEventArgs.Timestamp, mouseButtonEventArgs.ChangedButton, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseDownOutsideCapturedElementEvent
+ };
//ProcessInput has a linkdemand
_inputManager.ProcessInput(clickThrough);
}
@@ -1332,8 +1348,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
// The mouse is not physically over the capture point (or
// subtree), so raise the PreviewMouseUpOutsideCapturedElement
// event first.
- MouseButtonEventArgs clickThrough = new MouseButtonEventArgs(this, mouseButtonEventArgs.Timestamp, mouseButtonEventArgs.ChangedButton, GetStylusDevice(e.StagingItem));
- clickThrough.RoutedEvent=Mouse.PreviewMouseUpOutsideCapturedElementEvent;
+ MouseButtonEventArgs clickThrough = new MouseButtonEventArgs(this, mouseButtonEventArgs.Timestamp, mouseButtonEventArgs.ChangedButton, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseUpOutsideCapturedElementEvent
+ };
//ProcessInput has a linkdemand
_inputManager.ProcessInput(clickThrough);
}
@@ -1361,8 +1379,10 @@ internal static void PushActivateInputReport(PreProcessInputEventArgs e, InputRe
extraInformation);
// Push a new RawMouseInputReport for the activate.
- InputReportEventArgs activateArgs = new InputReportEventArgs(inputReportEventArgs.Device, reportActivate);
- activateArgs.RoutedEvent=InputManager.PreviewInputReportEvent;
+ InputReportEventArgs activateArgs = new InputReportEventArgs(inputReportEventArgs.Device, reportActivate)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
e.PushInput(activateArgs, null);
}
@@ -1810,14 +1830,16 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
if (!e.StagingItem.Input.Handled)
{
MouseWheelEventArgs previewWheel = (MouseWheelEventArgs) e.StagingItem.Input;
- MouseWheelEventArgs wheel = new MouseWheelEventArgs(this, previewWheel.Timestamp, previewWheel.Delta);
- wheel.RoutedEvent=Mouse.MouseWheelEvent;
+ MouseWheelEventArgs wheel = new MouseWheelEventArgs(this, previewWheel.Timestamp, previewWheel.Delta)
+ {
+ RoutedEvent = Mouse.MouseWheelEvent
+ };
- #if SEND_WHEEL_EVENTS_TO_FOCUS
+#if SEND_WHEEL_EVENTS_TO_FOCUS
// wheel events are treated as if they came from the
// element with keyboard focus
wheel.Source = previewWheel.Source;
- #endif
+#endif
e.PushInput(wheel, e.StagingItem);
}
@@ -1829,9 +1851,11 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
if (!e.StagingItem.Input.Handled)
{
MouseButtonEventArgs previewDown = (MouseButtonEventArgs) e.StagingItem.Input;
- MouseButtonEventArgs down = new MouseButtonEventArgs(this, previewDown.Timestamp, previewDown.ChangedButton, GetStylusDevice(e.StagingItem));
- down.ClickCount = previewDown.ClickCount;
- down.RoutedEvent=Mouse.MouseDownEvent;
+ MouseButtonEventArgs down = new MouseButtonEventArgs(this, previewDown.Timestamp, previewDown.ChangedButton, GetStylusDevice(e.StagingItem))
+ {
+ ClickCount = previewDown.ClickCount,
+ RoutedEvent = Mouse.MouseDownEvent
+ };
e.PushInput(down, e.StagingItem);
}
}
@@ -1842,8 +1866,10 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
if (!e.StagingItem.Input.Handled)
{
MouseButtonEventArgs previewUp = (MouseButtonEventArgs) e.StagingItem.Input;
- MouseButtonEventArgs up = new MouseButtonEventArgs(this, previewUp.Timestamp, previewUp.ChangedButton, GetStylusDevice(e.StagingItem));
- up.RoutedEvent=Mouse.MouseUpEvent;
+ MouseButtonEventArgs up = new MouseButtonEventArgs(this, previewUp.Timestamp, previewUp.ChangedButton, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.MouseUpEvent
+ };
e.PushInput(up, e.StagingItem);
}
}
@@ -1854,8 +1880,10 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
if (!e.StagingItem.Input.Handled)
{
MouseEventArgs previewMove = (MouseEventArgs) e.StagingItem.Input;
- MouseEventArgs move = new MouseEventArgs(this, previewMove.Timestamp, GetStylusDevice(e.StagingItem));
- move.RoutedEvent=Mouse.MouseMoveEvent;
+ MouseEventArgs move = new MouseEventArgs(this, previewMove.Timestamp, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.MouseMoveEvent
+ };
e.PushInput(move, e.StagingItem);
}
}
@@ -1900,11 +1928,12 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
// HorizontalWheelRotate hasn't been handled yet
if ((actions & RawMouseActions.VerticalWheelRotate) == RawMouseActions.VerticalWheelRotate)
{
- MouseWheelEventArgs previewWheel = new MouseWheelEventArgs(this, rawMouseInputReport.Timestamp, rawMouseInputReport.Wheel);
-
- previewWheel.RoutedEvent=Mouse.PreviewMouseWheelEvent;
+ MouseWheelEventArgs previewWheel = new MouseWheelEventArgs(this, rawMouseInputReport.Timestamp, rawMouseInputReport.Wheel)
+ {
+ RoutedEvent = Mouse.PreviewMouseWheelEvent
+ };
- #if SEND_WHEEL_EVENTS_TO_FOCUS
+#if SEND_WHEEL_EVENTS_TO_FOCUS
// wheel events are treated as if they came from the
// element with keyboard focus
DependencyObject focus = Keyboard.FocusedElement as DependencyObject;
@@ -1912,7 +1941,7 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
{
previewWheel.Source = focus;
}
- #endif
+#endif
e.PushInput(previewWheel, e.StagingItem);
}
@@ -1920,90 +1949,100 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
// Raw --> PreviewMouseDown
if ((actions & RawMouseActions.Button1Press) == RawMouseActions.Button1Press)
{
- MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem));
-
- previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent;
+ MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseDownEvent
+ };
e.PushInput(previewDown, e.StagingItem);
}
// Raw --> PreviewMouseUp
if ((actions & RawMouseActions.Button1Release) == RawMouseActions.Button1Release)
{
- MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem));
-
- previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent;
+ MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Left, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseUpEvent
+ };
e.PushInput(previewUp, e.StagingItem);
}
// Raw --> PreviewMouseDown
if ((actions & RawMouseActions.Button2Press) == RawMouseActions.Button2Press)
{
- MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem));
-
- previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent;
+ MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseDownEvent
+ };
e.PushInput(previewDown, e.StagingItem);
}
// Raw --> PreviewMouseUp
if ((actions & RawMouseActions.Button2Release) == RawMouseActions.Button2Release)
{
- MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem));
-
- previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent;
+ MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Right, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseUpEvent
+ };
e.PushInput(previewUp, e.StagingItem);
}
// Raw --> PreviewMouseDown
if ((actions & RawMouseActions.Button3Press) == RawMouseActions.Button3Press)
{
- MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem));
-
- previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent;
+ MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseDownEvent
+ };
e.PushInput(previewDown, e.StagingItem);
}
// Raw --> PreviewMouseUp
if ((actions & RawMouseActions.Button3Release) == RawMouseActions.Button3Release)
{
- MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem));
-
- previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent;
+ MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.Middle, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseUpEvent
+ };
e.PushInput(previewUp, e.StagingItem);
}
// Raw --> PreviewMouseDown
if ((actions & RawMouseActions.Button4Press) == RawMouseActions.Button4Press)
{
- MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem));
-
- previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent;
+ MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseDownEvent
+ };
e.PushInput(previewDown, e.StagingItem);
}
// Raw --> PreviewMouseUp
if ((actions & RawMouseActions.Button4Release) == RawMouseActions.Button4Release)
{
- MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem));
-
- previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent;
+ MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton1, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseUpEvent
+ };
e.PushInput(previewUp, e.StagingItem);
}
// Raw --> PreviewMouseDown
if ((actions & RawMouseActions.Button5Press) == RawMouseActions.Button5Press)
{
- MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem));
-
- previewDown.RoutedEvent=Mouse.PreviewMouseDownEvent;
+ MouseButtonEventArgs previewDown = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseDownEvent
+ };
e.PushInput(previewDown, e.StagingItem);
}
// Raw --> PreviewMouseUp
if ((actions & RawMouseActions.Button5Release) == RawMouseActions.Button5Release)
{
- MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem));
-
- previewUp.RoutedEvent=Mouse.PreviewMouseUpEvent;
+ MouseButtonEventArgs previewUp = new MouseButtonEventArgs(this, rawMouseInputReport.Timestamp, MouseButton.XButton2, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseUpEvent
+ };
e.PushInput(previewUp, e.StagingItem);
}
@@ -2011,9 +2050,10 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
// RelativeMove, VirtualDesktopMove haven't been handled yet
if ((actions & RawMouseActions.AbsoluteMove) == RawMouseActions.AbsoluteMove)
{
- MouseEventArgs previewMove = new MouseEventArgs(this, rawMouseInputReport.Timestamp, GetStylusDevice(e.StagingItem));
-
- previewMove.RoutedEvent=Mouse.PreviewMouseMoveEvent;
+ MouseEventArgs previewMove = new MouseEventArgs(this, rawMouseInputReport.Timestamp, GetStylusDevice(e.StagingItem))
+ {
+ RoutedEvent = Mouse.PreviewMouseMoveEvent
+ };
e.PushInput(previewMove, e.StagingItem);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs
index adc7db49a73..b6316c9cdc1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/DynamicRenderer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -195,8 +195,10 @@ internal VisualTarget VisualTarget
{
if (_visualTarget == null)
{
- _visualTarget = new VisualTarget(this);
- _visualTarget.RootVisual = new ContainerVisual();
+ _visualTarget = new VisualTarget(this)
+ {
+ RootVisual = new ContainerVisual()
+ };
}
return _visualTarget;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs
index 0af13035643..31c77f019e0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusPointCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -632,8 +632,10 @@ private bool CanGoToZero()
return true;
}
- CancelEventArgs e = new CancelEventArgs();
- e.Cancel = false;
+ CancelEventArgs e = new CancelEventArgs
+ {
+ Cancel = false
+ };
//
// call the listeners
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs
index bfeaff90fa1..61b55541cfb 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerLogic.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -263,8 +263,10 @@ private void PreProcessMouseInput(PreProcessInputEventArgs e, InputReportEventAr
0,
IntPtr.Zero);
- InputReportEventArgs args = new InputReportEventArgs(CurrentStylusDevice.StylusDevice, cancelCaptureInputReport);
- args.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs args = new InputReportEventArgs(CurrentStylusDevice.StylusDevice, cancelCaptureInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_inputManager.ProcessInput(args);
// Cancel this so that it doesn't propagate further in the InputManager. We're ok to allow
@@ -1336,9 +1338,10 @@ private void GenerateGesture(RawStylusInputReport rawStylusInputReport, SystemGe
StylusDevice = stylusDevice.StylusDevice,
};
- InputReportEventArgs input = new InputReportEventArgs(stylusDevice.StylusDevice, inputReport);
-
- input.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs input = new InputReportEventArgs(stylusDevice.StylusDevice, inputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
// Process this directly instead of doing a push. We want this event to get
// to the user before the StylusUp and MouseUp event.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs
index 05ce0910000..9358608208d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Pointer/PointerStylusDevice.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -648,13 +648,15 @@ internal override void Synchronize()
() => { return PointerTabletDevice.StylusPointDescription; },
TabletDevice.Id,
Id,
- data);
-
-
- report.Synchronized = true;
+ data)
+ {
+ Synchronized = true
+ };
- InputReportEventArgs inputReportEventArgs = new InputReportEventArgs(StylusDevice, report);
- inputReportEventArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs inputReportEventArgs = new InputReportEventArgs(StylusDevice, report)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
InputManager.Current.ProcessInput(inputReportEventArgs);
}
@@ -1044,16 +1046,20 @@ internal void ChangeStylusCapture(IInputElement stylusCapture, CaptureMode captu
// Send the LostStylusCapture and GotStylusCapture events.
if (oldStylusCapture != null)
{
- StylusEventArgs lostCapture = new StylusEventArgs(StylusDevice, timestamp);
- lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent;
- lostCapture.Source = oldStylusCapture;
+ StylusEventArgs lostCapture = new StylusEventArgs(StylusDevice, timestamp)
+ {
+ RoutedEvent = Stylus.LostStylusCaptureEvent,
+ Source = oldStylusCapture
+ };
InputManager.UnsecureCurrent.ProcessInput(lostCapture);
}
if (_stylusCapture != null)
{
- StylusEventArgs gotCapture = new StylusEventArgs(StylusDevice, timestamp);
- gotCapture.RoutedEvent = Stylus.GotStylusCaptureEvent;
- gotCapture.Source = _stylusCapture;
+ StylusEventArgs gotCapture = new StylusEventArgs(StylusDevice, timestamp)
+ {
+ RoutedEvent = Stylus.GotStylusCaptureEvent,
+ Source = _stylusCapture
+ };
InputManager.UnsecureCurrent.ProcessInput(gotCapture);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs
index 32ef60cdb04..f1b6809428c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/PenThreadWorker.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -479,8 +479,10 @@ internal PenThreadWorker()
_workerOperation.Add((WorkerOperation)started);
}
- Thread thread = new Thread(new ThreadStart(ThreadProc));
- thread.IsBackground = true; // don't hold process open due to this thread.
+ Thread thread = new Thread(new ThreadStart(ThreadProc))
+ {
+ IsBackground = true // don't hold process open due to this thread.
+ };
thread.Start();
// Wait for this work to be completed (ie thread is started up).
@@ -850,9 +852,10 @@ internal void FireEvent(PenContext penContext, int evt, int stylusPointerId, int
///
private static TabletDeviceInfo GetTabletInfoHelper(IPimcTablet3 pimcTablet)
{
- TabletDeviceInfo tabletInfo = new TabletDeviceInfo();
-
- tabletInfo.PimcTablet = pimcTablet;
+ TabletDeviceInfo tabletInfo = new TabletDeviceInfo
+ {
+ PimcTablet = pimcTablet
+ };
pimcTablet.GetKey(out tabletInfo.Id);
pimcTablet.GetName(out tabletInfo.Name);
pimcTablet.GetPlugAndPlayId(out tabletInfo.PlugAndPlayId);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs
index 36ed19372e4..518bba79bb8 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispLogic.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -214,9 +214,10 @@ void CoalesceAndQueueStylusEvent(RawStylusInputReport inputReport)
coalescedMove.TabletDeviceId,
coalescedMove.StylusDeviceId,
mergedData
- );
-
- coalescedMove.StylusDevice = stylusDevice.StylusDevice;
+ )
+ {
+ StylusDevice = stylusDevice.StylusDevice
+ };
_coalescedMoves[stylusDevice] = coalescedMove;
}
@@ -355,8 +356,10 @@ internal object InputManagerProcessInput(object oInput)
}
// build InputReportEventArgs
- InputReportEventArgs input = new InputReportEventArgs(null, rawStylusInputReport);
- input.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs input = new InputReportEventArgs(null, rawStylusInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
// Set flag to prevent reentrancy due to wisptis mouse event getting triggered
// while processing this stylus event.
@@ -439,8 +442,10 @@ private void SendDeferredMouseEvent(bool sendInput)
!_deferredMouseMove.InputSource.CompositionTarget.IsDisposed)
{
// Process mouse move now since nothing else from stylus came through...
- InputReportEventArgs mouseArgs = new InputReportEventArgs(_inputManager.PrimaryMouseDevice, _deferredMouseMove);
- mouseArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs mouseArgs = new InputReportEventArgs(_inputManager.PrimaryMouseDevice, _deferredMouseMove)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_deferredMouseMove = null; // Clear this out before sending.
// This will cause _lastMoveFromStylus to be set to false.
_inputManager.ProcessInput(mouseArgs);
@@ -565,8 +570,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
0,
IntPtr.Zero);
- InputReportEventArgs args = new InputReportEventArgs(CurrentStylusDevice.StylusDevice, cancelCaptureInputReport);
- args.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs args = new InputReportEventArgs(CurrentStylusDevice.StylusDevice, cancelCaptureInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
e.Cancel();
_inputManager.ProcessInput(args);
}
@@ -611,8 +618,10 @@ private void PreProcessInput(object sender, PreProcessInputEventArgs e)
mouseInputReport.Wheel,
mouseInputReport.ExtraInformation);
- InputReportEventArgs args = new InputReportEventArgs(activateStylusDevice.StylusDevice, activateInputReport);
- args.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs args = new InputReportEventArgs(activateStylusDevice.StylusDevice, activateInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_inputManager.ProcessInput(args);
}
@@ -1289,8 +1298,10 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
0,
IntPtr.Zero);
- InputReportEventArgs actionsArgs = new InputReportEventArgs(stylusDevice.StylusDevice, newMouseInputReport);
- actionsArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs actionsArgs = new InputReportEventArgs(stylusDevice.StylusDevice, newMouseInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_inputManager.ProcessInput(actionsArgs);
}
}
@@ -1757,8 +1768,10 @@ private void PromoteMainToMouse(StagingAreaInputItem stagingItem)
InputMode.Foreground, stylusArgs.Timestamp, mouseInputSource,
actions, (int)pt.X, (int)pt.Y, 0, IntPtr.Zero);
- InputReportEventArgs inputReportArgs = new InputReportEventArgs(stylusDevice.StylusDevice, mouseInputReport);
- inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs inputReportArgs = new InputReportEventArgs(stylusDevice.StylusDevice, mouseInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_inputManager.ProcessInput(inputReportArgs);
}
}
@@ -2570,8 +2583,10 @@ private void GenerateInRange(RawStylusInputReport rawStylusInputReport)
stylusDevice.Id,
rawStylusInputReport.Data);
- InputReportEventArgs input = new InputReportEventArgs(stylusDevice, inputReport);
- input.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs input = new InputReportEventArgs(stylusDevice, inputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_inputManager.ProcessInput(input);
}
@@ -2794,10 +2809,14 @@ private void GenerateGesture(RawStylusInputReport rawStylusInputReport, SystemGe
gesture,
0, // Gesture X location (only used for flicks)
0, // Gesture Y location (only used for flicks)
- 0); // ButtonState (only used for flicks)
- inputReport.StylusDevice = stylusDevice;
- InputReportEventArgs input = new InputReportEventArgs(stylusDevice, inputReport);
- input.RoutedEvent = InputManager.PreviewInputReportEvent;
+ 0)
+ {
+ StylusDevice = stylusDevice
+ }; // ButtonState (only used for flicks)
+ InputReportEventArgs input = new InputReportEventArgs(stylusDevice, inputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
// Process this directly instead of doing a push. We want this event to get
// to the user before the StylusUp and MouseUp event.
InputManagerProcessInputEventArgs(input);
@@ -2847,8 +2866,10 @@ private void ProcessMouseMove(WispStylusDevice stylusDevice, int timestamp, bool
mouseInputReport._isSynchronize = true;
}
- InputReportEventArgs inputReportArgs = new InputReportEventArgs(stylusDevice.StylusDevice, mouseInputReport);
- inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs inputReportArgs = new InputReportEventArgs(stylusDevice.StylusDevice, mouseInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
// Process this directly instead of doing a push. We want this event to get
// to the user before the StylusUp and MouseUp event.
@@ -2890,8 +2911,10 @@ private void UpdateButtonStates(ProcessInputEventArgs e)
button.CachedButtonState = currentButtonState;
// do work to push Button event
- StylusButtonEventArgs args = new StylusButtonEventArgs(stylusDevice, report.Timestamp, button);
- args.InputReport = report;
+ StylusButtonEventArgs args = new StylusButtonEventArgs(stylusDevice, report.Timestamp, button)
+ {
+ InputReport = report
+ };
if (currentButtonState == StylusButtonState.Down)
{
args.RoutedEvent = Stylus.PreviewStylusButtonDownEvent;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs
index c038972f610..da3b6c3e5bf 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispStylusDevice.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -360,13 +360,15 @@ internal override void Synchronize()
InAir ? RawStylusActions.InAirMove : RawStylusActions.Move,
TabletDevice.Id,
Id,
- data);
-
-
- report.Synchronized = true;
+ data)
+ {
+ Synchronized = true
+ };
- InputReportEventArgs inputReportEventArgs = new InputReportEventArgs(StylusDevice, report);
- inputReportEventArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs inputReportEventArgs = new InputReportEventArgs(StylusDevice, report)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_stylusLogic.InputManagerProcessInputEventArgs(inputReportEventArgs);
}
@@ -625,16 +627,20 @@ internal void ChangeStylusCapture(IInputElement stylusCapture, CaptureMode captu
// Send the LostStylusCapture and GotStylusCapture events.
if (oldStylusCapture != null)
{
- StylusEventArgs lostCapture = new StylusEventArgs(StylusDevice, timestamp);
- lostCapture.RoutedEvent = Stylus.LostStylusCaptureEvent;
- lostCapture.Source = oldStylusCapture;
+ StylusEventArgs lostCapture = new StylusEventArgs(StylusDevice, timestamp)
+ {
+ RoutedEvent = Stylus.LostStylusCaptureEvent,
+ Source = oldStylusCapture
+ };
_stylusLogic.InputManagerProcessInputEventArgs(lostCapture);
}
if (_stylusCapture != null)
{
- StylusEventArgs gotCapture = new StylusEventArgs(StylusDevice, timestamp);
- gotCapture.RoutedEvent = Stylus.GotStylusCaptureEvent;
- gotCapture.Source = _stylusCapture;
+ StylusEventArgs gotCapture = new StylusEventArgs(StylusDevice, timestamp)
+ {
+ RoutedEvent = Stylus.GotStylusCaptureEvent,
+ Source = _stylusCapture
+ };
_stylusLogic.InputManagerProcessInputEventArgs(gotCapture);
}
@@ -1689,8 +1695,10 @@ internal void PlayBackCachedDownInputReport(int timestamp)
actions,
(int)pt.X, (int)pt.Y, 0, IntPtr.Zero);
- InputReportEventArgs inputReportArgs = new InputReportEventArgs(StylusDevice, mouseInputReport);
- inputReportArgs.RoutedEvent = InputManager.PreviewInputReportEvent;
+ InputReportEventArgs inputReportArgs = new InputReportEventArgs(StylusDevice, mouseInputReport)
+ {
+ RoutedEvent = InputManager.PreviewInputReportEvent
+ };
_stylusLogic.InputManagerProcessInputEventArgs(inputReportArgs);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs
index 7d6dcd13f33..e696adf36d9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Wisp/WispTabletDeviceCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -134,8 +134,10 @@ private static bool HasTabletDevices()
{
if (ridl[i].dwType == NativeMethods.RIM_TYPEHID)
{
- NativeMethods.RID_DEVICE_INFO deviceInfo = new NativeMethods.RID_DEVICE_INFO();
- deviceInfo.cbSize = (uint)Marshal.SizeOf(typeof(NativeMethods.RID_DEVICE_INFO));
+ NativeMethods.RID_DEVICE_INFO deviceInfo = new NativeMethods.RID_DEVICE_INFO
+ {
+ cbSize = (uint)Marshal.SizeOf(typeof(NativeMethods.RID_DEVICE_INFO))
+ };
uint cbSize = (uint)deviceInfo.cbSize;
int cBytes = (int)MS.Win32.UnsafeNativeMethods.GetRawInputDeviceInfo(ridl[i].hDevice, NativeMethods.RIDI_DEVICEINFO, ref deviceInfo, ref cbSize);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs
index bcdc12fcccc..69d0972767c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TextCompositionManager.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -310,9 +310,11 @@ private static bool UnsafeStartComposition(TextComposition composition)
}
composition.Stage = TextCompositionStage.Started;
- TextCompositionEventArgs textargs = new TextCompositionEventArgs(composition._InputDevice, composition);
- textargs.RoutedEvent=TextCompositionManager.PreviewTextInputStartEvent;
- textargs.Source= composition.Source;
+ TextCompositionEventArgs textargs = new TextCompositionEventArgs(composition._InputDevice, composition)
+ {
+ RoutedEvent = TextCompositionManager.PreviewTextInputStartEvent,
+ Source = composition.Source
+ };
return composition._InputManager.ProcessInput(textargs);
}
@@ -335,9 +337,11 @@ private static bool UnsafeUpdateComposition(TextComposition composition)
throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition"));
}
- TextCompositionEventArgs textargs = new TextCompositionEventArgs(composition._InputDevice, composition);
- textargs.RoutedEvent=TextCompositionManager.PreviewTextInputUpdateEvent;
- textargs.Source= composition.Source;
+ TextCompositionEventArgs textargs = new TextCompositionEventArgs(composition._InputDevice, composition)
+ {
+ RoutedEvent = TextCompositionManager.PreviewTextInputUpdateEvent,
+ Source = composition.Source
+ };
return composition._InputManager.ProcessInput(textargs);
}
@@ -361,9 +365,11 @@ private static bool UnsafeCompleteComposition(TextComposition composition)
}
composition.Stage = TextCompositionStage.Done;
- TextCompositionEventArgs textargs = new TextCompositionEventArgs(composition._InputDevice, composition);
- textargs.RoutedEvent=TextCompositionManager.PreviewTextInputEvent;
- textargs.Source= composition.Source;
+ TextCompositionEventArgs textargs = new TextCompositionEventArgs(composition._InputDevice, composition)
+ {
+ RoutedEvent = TextCompositionManager.PreviewTextInputEvent,
+ Source = composition.Source
+ };
return composition._InputManager.ProcessInput(textargs);
}
@@ -520,9 +526,11 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.Input;
if(!textArgs.Handled)
{
- TextCompositionEventArgs text = new TextCompositionEventArgs(textArgs.Device, textArgs.TextComposition);
- text.RoutedEvent=TextCompositionManager.TextInputStartEvent;
- text.Source= textArgs.TextComposition.Source;
+ TextCompositionEventArgs text = new TextCompositionEventArgs(textArgs.Device, textArgs.TextComposition)
+ {
+ RoutedEvent = TextCompositionManager.TextInputStartEvent,
+ Source = textArgs.TextComposition.Source
+ };
e.PushInput(text, e.StagingItem);
}
}
@@ -533,9 +541,11 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.Input;
if(!textArgs.Handled)
{
- TextCompositionEventArgs text = new TextCompositionEventArgs(textArgs.Device, textArgs.TextComposition);
- text.RoutedEvent=TextCompositionManager.TextInputUpdateEvent;
- text.Source= textArgs.TextComposition.Source;
+ TextCompositionEventArgs text = new TextCompositionEventArgs(textArgs.Device, textArgs.TextComposition)
+ {
+ RoutedEvent = TextCompositionManager.TextInputUpdateEvent,
+ Source = textArgs.TextComposition.Source
+ };
e.PushInput(text, e.StagingItem);
}
}
@@ -546,9 +556,11 @@ private void PostProcessInput(object sender, ProcessInputEventArgs e)
TextCompositionEventArgs textArgs = (TextCompositionEventArgs) e.StagingItem.Input;
if(!textArgs.Handled)
{
- TextCompositionEventArgs text = new TextCompositionEventArgs(textArgs.Device, textArgs.TextComposition);
- text.RoutedEvent=TextCompositionManager.TextInputEvent;
- text.Source= textArgs.TextComposition.Source;
+ TextCompositionEventArgs text = new TextCompositionEventArgs(textArgs.Device, textArgs.TextComposition)
+ {
+ RoutedEvent = TextCompositionManager.TextInputEvent,
+ Source = textArgs.TextComposition.Source
+ };
e.PushInput(text, e.StagingItem);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs
index cf7fdd99e84..9dddc5b6858 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/TouchDevice.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -937,8 +937,10 @@ private void RaiseTouchEnterOrLeave(DependencyObject element, bool isLeave)
private TouchEventArgs CreateEventArgs(RoutedEvent routedEvent)
{
// review timestamps
- TouchEventArgs touchEventArgs = new TouchEventArgs(this, Environment.TickCount);
- touchEventArgs.RoutedEvent = routedEvent;
+ TouchEventArgs touchEventArgs = new TouchEventArgs(this, Environment.TickCount)
+ {
+ RoutedEvent = routedEvent
+ };
return touchEventArgs;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs
index 6c18a0aaadd..582b63b6406 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -64,10 +64,12 @@ public HwndSource(
IntPtr parent)
{
- HwndSourceParameters param = new HwndSourceParameters(name);
- param.WindowClassStyle = classStyle;
- param.WindowStyle = style;
- param.ExtendedWindowStyle = exStyle;
+ HwndSourceParameters param = new HwndSourceParameters(name)
+ {
+ WindowClassStyle = classStyle,
+ WindowStyle = style,
+ ExtendedWindowStyle = exStyle
+ };
param.SetPosition(x, y);
param.ParentWindow = parent;
Initialize(param);
@@ -123,10 +125,12 @@ public HwndSource(int classStyle,
bool adjustSizingForNonClientArea)
{
- HwndSourceParameters parameters = new HwndSourceParameters(name, width, height);
- parameters.WindowClassStyle = classStyle;
- parameters.WindowStyle = style;
- parameters.ExtendedWindowStyle = exStyle;
+ HwndSourceParameters parameters = new HwndSourceParameters(name, width, height)
+ {
+ WindowClassStyle = classStyle,
+ WindowStyle = style,
+ ExtendedWindowStyle = exStyle
+ };
parameters.SetPosition(x, y);
parameters.ParentWindow = parent;
parameters.AdjustSizingForNonClientArea = adjustSizingForNonClientArea;
@@ -179,10 +183,12 @@ public HwndSource(
IntPtr parent)
{
- HwndSourceParameters parameters = new HwndSourceParameters(name, width, height);
- parameters.WindowClassStyle = classStyle;
- parameters.WindowStyle = style;
- parameters.ExtendedWindowStyle = exStyle;
+ HwndSourceParameters parameters = new HwndSourceParameters(name, width, height)
+ {
+ WindowClassStyle = classStyle,
+ WindowStyle = style,
+ ExtendedWindowStyle = exStyle
+ };
parameters.SetPosition(x, y);
parameters.ParentWindow = parent;
Initialize(parameters);
@@ -261,9 +267,11 @@ private void Initialize(HwndSourceParameters parameters)
parameters.ParentWindow,
wrapperHooks);
- _hwndTarget = new HwndTarget(_hwndWrapper.Handle);
- _hwndTarget.UsesPerPixelOpacity = parameters.EffectivePerPixelOpacity;
- if(_hwndTarget.UsesPerPixelOpacity)
+ _hwndTarget = new HwndTarget(_hwndWrapper.Handle)
+ {
+ UsesPerPixelOpacity = parameters.EffectivePerPixelOpacity
+ };
+ if (_hwndTarget.UsesPerPixelOpacity)
{
_hwndTarget.BackgroundColor = Colors.Transparent;
@@ -1734,16 +1742,18 @@ private void OnPreprocessMessageThunk(ref MSG msg, ref bool handled)
case WindowMessage.WM_SYSCHAR:
case WindowMessage.WM_DEADCHAR:
case WindowMessage.WM_SYSDEADCHAR:
- MSGDATA msgdata = new MSGDATA();
- msgdata.msg = msg;
- msgdata.handled = handled;
+ MSGDATA msgdata = new MSGDATA
+ {
+ msg = msg,
+ handled = handled
+ };
- // Do this under the exception filter/handlers of the
- // dispatcher for this thread.
- //
- // NOTE: we lose the "perf optimization" of passing everything
- // around by-ref since we have to call through a delegate.
- object result = Dispatcher.CurrentDispatcher.Invoke(
+ // Do this under the exception filter/handlers of the
+ // dispatcher for this thread.
+ //
+ // NOTE: we lose the "perf optimization" of passing everything
+ // around by-ref since we have to call through a delegate.
+ object result = Dispatcher.CurrentDispatcher.Invoke(
DispatcherPriority.Send,
new DispatcherOperationCallback(OnPreprocessMessage),
msgdata);
@@ -2376,21 +2386,25 @@ internal bool CriticalTranslateAccelerator(ref MSG msg, ModifierKeys modifiers)
if (focusElement != null)
{
- KeyEventArgs tunnelArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
- tunnelArgs.ScanCode = scanCode;
- tunnelArgs.IsExtendedKey = isExtendedKey;
- tunnelArgs.RoutedEvent = keyPreviewEvent;
+ KeyEventArgs tunnelArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key)
+ {
+ ScanCode = scanCode,
+ IsExtendedKey = isExtendedKey,
+ RoutedEvent = keyPreviewEvent
+ };
focusElement.RaiseEvent(tunnelArgs);
handled = tunnelArgs.Handled;
}
if (!handled)
{
- KeyEventArgs bubbleArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
- bubbleArgs.ScanCode = scanCode;
- bubbleArgs.IsExtendedKey = isExtendedKey;
- bubbleArgs.RoutedEvent=keyEvent;
- if(focusElement != null)
+ KeyEventArgs bubbleArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key)
+ {
+ ScanCode = scanCode,
+ IsExtendedKey = isExtendedKey,
+ RoutedEvent = keyEvent
+ };
+ if (focusElement != null)
{
focusElement.RaiseEvent(bubbleArgs);
handled = bubbleArgs.Handled;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs
index 7e0190fada4..0d096116e3f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndTarget.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2199,9 +2199,11 @@ private void UpdateWindowSettings(bool enableRenderTarget, DUCE.ChannelSet? chan
// on the screen. The best way to get rid of this is to just make the entire
// sprite transparent.
- NativeMethods.BLENDFUNCTION blend = new NativeMethods.BLENDFUNCTION();
- blend.BlendOp = NativeMethods.AC_SRC_OVER;
- blend.SourceConstantAlpha = 0; // transparent
+ NativeMethods.BLENDFUNCTION blend = new NativeMethods.BLENDFUNCTION
+ {
+ BlendOp = NativeMethods.AC_SRC_OVER,
+ SourceConstantAlpha = 0 // transparent
+ };
unsafe
{
UnsafeNativeMethods.UpdateLayeredWindow(_hWnd.h, IntPtr.Zero, null, null, IntPtr.Zero, null, 0, ref blend, NativeMethods.ULW_ALPHA);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs
index d6e29362957..5d96b5360d5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/LayoutManager.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -846,8 +846,10 @@ internal LayoutQueue()
Request r;
for(int i=0; i
- /// Gets a value indicating whether the Clock’s current time is inside the Active period
+ /// Gets a value indicating whether the Clock’s current time is inside the Active period
/// (meaning properties may change frame to frame), inside the Fill period, or Stopped.
///
///
- /// You can tell whether you’re in FillBegin or FillEnd by the value of CurrentProgress
+ /// You can tell whether you’re in FillBegin or FillEnd by the value of CurrentProgress
/// (0 for FillBegin, 1 for FillEnd).
///
public ClockState CurrentState
@@ -4187,8 +4187,10 @@ private void Debug_VerifyOffsetFromBegin(long inputTime, long optimizedInputTime
///
internal void Dump()
{
- System.Text.StringBuilder builder = new System.Text.StringBuilder();
- builder.Capacity = 1024;
+ System.Text.StringBuilder builder = new System.Text.StringBuilder
+ {
+ Capacity = 1024
+ };
builder.Append("======================================================================\n");
builder.Append("Clocks rooted at Clock ");
builder.Append(_debugIdentity);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs
index d70840fc440..463ff843840 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -695,8 +695,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs
index d7c6b5f6b10..cdbf9ca78a2 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static BooleanKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- BooleanKeyFrameCollection emptyCollection = new BooleanKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< BooleanKeyFrame>(0);
+ BooleanKeyFrameCollection emptyCollection = new BooleanKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs
index 0a3de5ce990..d7290b1710e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs
index 073a51b3c49..87880f6cb30 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static ByteKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- ByteKeyFrameCollection emptyCollection = new ByteKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< ByteKeyFrame>(0);
+ ByteKeyFrameCollection emptyCollection = new ByteKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs
index d93941bc490..1ba9a215220 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -694,8 +694,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs
index d72b0360043..01c0c75df22 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static CharKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- CharKeyFrameCollection emptyCollection = new CharKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< CharKeyFrame>(0);
+ CharKeyFrameCollection emptyCollection = new CharKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs
index 0c5c5836a70..1c50f9c8a66 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs
index 88a05ca5e23..ba4d5d86382 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static ColorKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- ColorKeyFrameCollection emptyCollection = new ColorKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< ColorKeyFrame>(0);
+ ColorKeyFrameCollection emptyCollection = new ColorKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs
index 4a40b81e8fb..b0313485279 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs
index 0fcbe541bec..7d2383ce27b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static DecimalKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- DecimalKeyFrameCollection emptyCollection = new DecimalKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< DecimalKeyFrame>(0);
+ DecimalKeyFrameCollection emptyCollection = new DecimalKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs
index e610f4c7d98..0d06e8fae41 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationClockResource.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -109,11 +109,12 @@ protected override void UpdateResource(
DUCE.ResourceHandle handle,
DUCE.Channel channel)
{
- DUCE.MILCMD_DOUBLERESOURCE cmd = new DUCE.MILCMD_DOUBLERESOURCE();
-
- cmd.Type = MILCMD.MilCmdDoubleResource;
- cmd.Handle = handle;
- cmd.Value = CurrentValue;
+ DUCE.MILCMD_DOUBLERESOURCE cmd = new DUCE.MILCMD_DOUBLERESOURCE
+ {
+ Type = MILCMD.MilCmdDoubleResource,
+ Handle = handle,
+ Value = CurrentValue
+ };
unsafe
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs
index d20661adbf2..5d93dc83c9c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs
index b480dc459f9..229abc202f7 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static DoubleKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- DoubleKeyFrameCollection emptyCollection = new DoubleKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< DoubleKeyFrame>(0);
+ DoubleKeyFrameCollection emptyCollection = new DoubleKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs
index 008f8e92e46..f44813122cc 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs
index 8ffbc156445..259fcea8bb0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16KeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static Int16KeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- Int16KeyFrameCollection emptyCollection = new Int16KeyFrameCollection();
-
- emptyCollection._keyFrames = new List< Int16KeyFrame>(0);
+ Int16KeyFrameCollection emptyCollection = new Int16KeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs
index d12ba49ee20..96ef609b17b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs
index 58612c6991a..3ff0a6364a3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32KeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static Int32KeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- Int32KeyFrameCollection emptyCollection = new Int32KeyFrameCollection();
-
- emptyCollection._keyFrames = new List< Int32KeyFrame>(0);
+ Int32KeyFrameCollection emptyCollection = new Int32KeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs
index f2d3d7804b2..a90051a4899 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs
index b80c049a0e9..b53e6383a20 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64KeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static Int64KeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- Int64KeyFrameCollection emptyCollection = new Int64KeyFrameCollection();
-
- emptyCollection._keyFrames = new List< Int64KeyFrame>(0);
+ Int64KeyFrameCollection emptyCollection = new Int64KeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs
index 133a001a7c3..c7583ee6126 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -694,8 +694,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs
index 08d518b328d..9986b35da21 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/MatrixKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static MatrixKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- MatrixKeyFrameCollection emptyCollection = new MatrixKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< MatrixKeyFrame>(0);
+ MatrixKeyFrameCollection emptyCollection = new MatrixKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs
index 4496d3ae1bb..83f6f5d549b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -694,8 +694,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs
index 2d654789035..323d21615a9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ObjectKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static ObjectKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- ObjectKeyFrameCollection emptyCollection = new ObjectKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< ObjectKeyFrame>(0);
+ ObjectKeyFrameCollection emptyCollection = new ObjectKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs
index e41b5f4d73b..624976940ba 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -788,8 +788,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs
index a6634400605..2bbc15ea388 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Point3DKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static Point3DKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- Point3DKeyFrameCollection emptyCollection = new Point3DKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< Point3DKeyFrame>(0);
+ Point3DKeyFrameCollection emptyCollection = new Point3DKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs
index 8c096e9773e..61652787cd3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationClockResource.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -109,11 +109,12 @@ protected override void UpdateResource(
DUCE.ResourceHandle handle,
DUCE.Channel channel)
{
- DUCE.MILCMD_POINTRESOURCE cmd = new DUCE.MILCMD_POINTRESOURCE();
-
- cmd.Type = MILCMD.MilCmdPointResource;
- cmd.Handle = handle;
- cmd.Value = CurrentValue;
+ DUCE.MILCMD_POINTRESOURCE cmd = new DUCE.MILCMD_POINTRESOURCE
+ {
+ Type = MILCMD.MilCmdPointResource,
+ Handle = handle,
+ Value = CurrentValue
+ };
unsafe
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs
index fd815a37fac..d6c5ff36b1e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs
index 4ba83907fd3..bd2e8d042bf 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/PointKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static PointKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- PointKeyFrameCollection emptyCollection = new PointKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< PointKeyFrame>(0);
+ PointKeyFrameCollection emptyCollection = new PointKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs
index 23cad6d0ac5..00b0894efe9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -788,8 +788,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs
index 67f6e48eda0..8966772fba0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/QuaternionKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static QuaternionKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- QuaternionKeyFrameCollection emptyCollection = new QuaternionKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< QuaternionKeyFrame>(0);
+ QuaternionKeyFrameCollection emptyCollection = new QuaternionKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs
index a835df3694d..770a4b4f4de 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationClockResource.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -109,11 +109,12 @@ protected override void UpdateResource(
DUCE.ResourceHandle handle,
DUCE.Channel channel)
{
- DUCE.MILCMD_RECTRESOURCE cmd = new DUCE.MILCMD_RECTRESOURCE();
-
- cmd.Type = MILCMD.MilCmdRectResource;
- cmd.Handle = handle;
- cmd.Value = CurrentValue;
+ DUCE.MILCMD_RECTRESOURCE cmd = new DUCE.MILCMD_RECTRESOURCE
+ {
+ Type = MILCMD.MilCmdRectResource,
+ Handle = handle,
+ Value = CurrentValue
+ };
unsafe
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs
index 77d10daa950..0e07b88a5d4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs
index 21ba329ff33..d0f88c07b4f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/RectKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static RectKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- RectKeyFrameCollection emptyCollection = new RectKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< RectKeyFrame>(0);
+ RectKeyFrameCollection emptyCollection = new RectKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs
index 99880a5948c..b3915deea4e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -788,8 +788,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs
index b41f5b6d1d8..f5e038dd21c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Rotation3DKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static Rotation3DKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- Rotation3DKeyFrameCollection emptyCollection = new Rotation3DKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< Rotation3DKeyFrame>(0);
+ Rotation3DKeyFrameCollection emptyCollection = new Rotation3DKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs
index ff06e9aa4d1..38d89ff2e7f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs
index a5e92cf962d..a23d57a0747 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SingleKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static SingleKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- SingleKeyFrameCollection emptyCollection = new SingleKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< SingleKeyFrame>(0);
+ SingleKeyFrameCollection emptyCollection = new SingleKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs
index ac68ccbe793..fcb40a2cb0f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationClockResource.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -109,11 +109,12 @@ protected override void UpdateResource(
DUCE.ResourceHandle handle,
DUCE.Channel channel)
{
- DUCE.MILCMD_SIZERESOURCE cmd = new DUCE.MILCMD_SIZERESOURCE();
-
- cmd.Type = MILCMD.MilCmdSizeResource;
- cmd.Handle = handle;
- cmd.Value = CurrentValue;
+ DUCE.MILCMD_SIZERESOURCE cmd = new DUCE.MILCMD_SIZERESOURCE
+ {
+ Type = MILCMD.MilCmdSizeResource,
+ Handle = handle,
+ Value = CurrentValue
+ };
unsafe
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs
index e308e9fb2a3..b1e3a1b6738 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs
index 812ba27f76e..c5212be0b20 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/SizeKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static SizeKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- SizeKeyFrameCollection emptyCollection = new SizeKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< SizeKeyFrame>(0);
+ SizeKeyFrameCollection emptyCollection = new SizeKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs
index 293b260cbd7..9c3732694cb 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -694,8 +694,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs
index 422f7667037..ab4be0bf4ba 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/StringKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static StringKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- StringKeyFrameCollection emptyCollection = new StringKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< StringKeyFrame>(0);
+ StringKeyFrameCollection emptyCollection = new StringKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs
index beff2073b49..442576b7ec1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -788,8 +788,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs
index 35c47fe8753..c139da06f18 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Vector3DKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static Vector3DKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- Vector3DKeyFrameCollection emptyCollection = new Vector3DKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< Vector3DKeyFrame>(0);
+ Vector3DKeyFrameCollection emptyCollection = new Vector3DKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs
index b162cbb08d9..10c654f5f99 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorAnimationUsingKeyFrames.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -787,8 +787,10 @@ private void ResolveKeyTimes()
hasPacedKeyTimes = true;
}
- KeyTimeBlock block = new KeyTimeBlock();
- block.BeginIndex = index;
+ KeyTimeBlock block = new KeyTimeBlock
+ {
+ BeginIndex = index
+ };
// NOTE: We don't want to go all the way up to the
// last frame because if it is Uniform or Paced its
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs
index 07d0b98d41f..639b9a70be0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/VectorKeyFrameCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -51,9 +51,10 @@ public static VectorKeyFrameCollection Empty
{
if (s_emptyCollection == null)
{
- VectorKeyFrameCollection emptyCollection = new VectorKeyFrameCollection();
-
- emptyCollection._keyFrames = new List< VectorKeyFrame>(0);
+ VectorKeyFrameCollection emptyCollection = new VectorKeyFrameCollection
+ {
+ _keyFrames = new List(0)
+ };
emptyCollection.Freeze();
s_emptyCollection = emptyCollection;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs
index 9adb22b3207..3933d267544 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/KeyTime.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -34,10 +34,11 @@ public static KeyTime FromPercent(double percent)
throw new ArgumentOutOfRangeException("percent", SR.Format(SR.Animation_KeyTime_InvalidPercentValue, percent));
}
- KeyTime keyTime = new KeyTime();
-
- keyTime._value = percent;
- keyTime._type = KeyTimeType.Percent;
+ KeyTime keyTime = new KeyTime
+ {
+ _value = percent,
+ _type = KeyTimeType.Percent
+ };
return keyTime;
}
@@ -53,10 +54,11 @@ public static KeyTime FromTimeSpan(TimeSpan timeSpan)
throw new ArgumentOutOfRangeException("timeSpan", SR.Format(SR.Animation_KeyTime_LessThanZero, timeSpan));
}
- KeyTime keyTime = new KeyTime();
-
- keyTime._value = timeSpan;
- keyTime._type = KeyTimeType.TimeSpan;
+ KeyTime keyTime = new KeyTime
+ {
+ _value = timeSpan,
+ _type = KeyTimeType.TimeSpan
+ };
return keyTime;
}
@@ -69,8 +71,10 @@ public static KeyTime Uniform
{
get
{
- KeyTime keyTime = new KeyTime();
- keyTime._type = KeyTimeType.Uniform;
+ KeyTime keyTime = new KeyTime
+ {
+ _type = KeyTimeType.Uniform
+ };
return keyTime;
}
@@ -84,8 +88,10 @@ public static KeyTime Paced
{
get
{
- KeyTime keyTime = new KeyTime();
- keyTime._type = KeyTimeType.Paced;
+ KeyTime keyTime = new KeyTime
+ {
+ _type = KeyTimeType.Paced
+ };
return keyTime;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs
index 580c21fc9c3..944a0eda469 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/RepeatBehavior.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -78,8 +78,10 @@ public static RepeatBehavior Forever
{
get
{
- RepeatBehavior forever = new RepeatBehavior();
- forever._type = RepeatBehaviorType.Forever;
+ RepeatBehavior forever = new RepeatBehavior
+ {
+ _type = RepeatBehaviorType.Forever
+ };
return forever;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs
index 3629831da69..83ca0589162 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Timeline.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -962,8 +962,10 @@ private void RemoveEventHandler(EventPrivateKey key, Delegate handler)
///
internal void Dump()
{
- System.Text.StringBuilder builder = new System.Text.StringBuilder();
- builder.Capacity = 1024;
+ System.Text.StringBuilder builder = new System.Text.StringBuilder
+ {
+ Capacity = 1024
+ };
builder.Append("========================================\n");
builder.Append("Timelines rooted at Timeline ");
builder.Append(_debugIdentity);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs
index 292f8eeecef..75b01671752 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/ByteStreamGeometryContext.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -206,8 +206,10 @@ public override void ArcTo(Point point, Size size, double rotationAngle, bool is
FinishSegment();
- MIL_SEGMENT_ARC arcToSegment = new MIL_SEGMENT_ARC();
- arcToSegment.Type = MIL_SEGMENT_TYPE.MilSegmentArc;
+ MIL_SEGMENT_ARC arcToSegment = new MIL_SEGMENT_ARC
+ {
+ Type = MIL_SEGMENT_TYPE.MilSegmentArc
+ };
arcToSegment.Flags |= isStroked ? 0 : MILCoreSegFlags.SegIsAGap;
arcToSegment.Flags |= isSmoothJoin ? MILCoreSegFlags.SegSmoothJoin : 0;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs
index b5e28430d3c..3526854d64a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs
@@ -35,9 +35,10 @@ public struct Color : IFormattable, IEquatable
///
private static Color FromProfile(Uri profileUri)
{
- Color c1 = new Color();
-
- c1.context = new ColorContext(profileUri);
+ Color c1 = new Color
+ {
+ context = new ColorContext(profileUri)
+ };
c1.scRgbColor.a = 1.0f;
c1.scRgbColor.r = 0.0f;
c1.scRgbColor.g = 0.0f;
@@ -408,10 +409,12 @@ public float[] GetNativeColorValues()
}
else if (color1.context == color2.context)
{
- Color c1 = new Color();
- c1.context = color1.context;
-
- #pragma warning suppress 6506 // c1.context is obviously not null - both color1.context AND color2.context are not null
+ Color c1 = new Color
+ {
+ context = color1.context
+ };
+
+#pragma warning suppress 6506 // c1.context is obviously not null - both color1.context AND color2.context are not null
c1.nativeColorValue = new float[c1.context.NumChannels];
for (int i = 0; i < c1.nativeColorValue.Length; i++)
{
@@ -527,10 +530,12 @@ public static Color Add(Color color1, Color color2)
}
else if (color1.context == color2.context)
{
- Color c1 = new Color();
- c1.context = color1.context;
+ Color c1 = new Color
+ {
+ context = color1.context
+ };
- #pragma warning suppress 6506 // c1.context is obviously not null - both color1.context AND color2.context are not null
+#pragma warning suppress 6506 // c1.context is obviously not null - both color1.context AND color2.context are not null
c1.nativeColorValue = new float[c1.context.NumChannels];
for (int i = 0; i < c1.nativeColorValue.Length; i++)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs
index b4f98cde756..83bf679df99 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/DrawingDrawingContext.cs
@@ -84,14 +84,15 @@ public override void DrawLine(
//
// Instantiate the geometry
- LineGeometry geometry = new LineGeometry(point0, point1);
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ LineGeometry geometry = new LineGeometry(point0, point1)
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- geometry.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
// Setup the geometries freezable-related state
SetupNewFreezable(
@@ -185,14 +186,15 @@ public override void DrawRectangle(
//
// Instantiate the geometry
- RectangleGeometry geometry = new RectangleGeometry(rectangle);
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ RectangleGeometry geometry = new RectangleGeometry(rectangle)
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- geometry.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
// Setup the geometries freezable-related state
SetupNewFreezable(
@@ -305,14 +307,15 @@ public override void DrawRoundedRectangle(
//
// Instantiate the geometry
- RectangleGeometry geometry = new RectangleGeometry(rectangle, radiusX, radiusY);
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ RectangleGeometry geometry = new RectangleGeometry(rectangle, radiusX, radiusY)
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- geometry.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
// Setup the geometries freezable-related state
SetupNewFreezable(
@@ -441,14 +444,15 @@ public override void DrawEllipse(
//
// Instantiate the geometry
- EllipseGeometry geometry = new EllipseGeometry(center, radiusX, radiusY);
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ EllipseGeometry geometry = new EllipseGeometry(center, radiusX, radiusY)
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- geometry.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
// Setup the geometries freezable-related state
SetupNewFreezable(
@@ -576,17 +580,18 @@ public override void DrawImage(
// Create a drawing & add animations if they exist
//
- ImageDrawing imageDrawing = new ImageDrawing();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ ImageDrawing imageDrawing = new ImageDrawing
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- imageDrawing.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext,
- imageDrawing.ImageSource = imageSource;
- imageDrawing.Rect = rectangle;
+ ImageSource = imageSource,
+ Rect = rectangle
+ };
SetupNewFreezable(
imageDrawing,
@@ -692,17 +697,18 @@ public override void DrawVideo(
// Create a drawing & add animations if they exist
//
- VideoDrawing videoDrawing = new VideoDrawing();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ VideoDrawing videoDrawing = new VideoDrawing
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- videoDrawing.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext,
- videoDrawing.Player = player;
- videoDrawing.Rect = rectangle;
+ Player = player,
+ Rect = rectangle
+ };
SetupNewFreezable(
videoDrawing,
@@ -1078,17 +1084,18 @@ public override void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun)
// Add a GlyphRunDrawing to the Drawing graph
- GlyphRunDrawing glyphRunDrawing = new GlyphRunDrawing();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ GlyphRunDrawing glyphRunDrawing = new GlyphRunDrawing
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- glyphRunDrawing.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext,
- glyphRunDrawing.ForegroundBrush = foregroundBrush;
- glyphRunDrawing.GlyphRun = glyphRun;
+ ForegroundBrush = foregroundBrush,
+ GlyphRun = glyphRun
+ };
SetupNewFreezable(
glyphRunDrawing,
@@ -1173,14 +1180,15 @@ protected override void DisposeCore()
// strictly needed for Append, but always using a collection
// simplifies the TransactionalAppend implementation (i.e.,
// a seperate implemention isn't needed for a single element)
- rootChildren = new DrawingCollection();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ rootChildren = new DrawingCollection
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- rootChildren.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
if (_rootDrawing != null)
{
@@ -1281,18 +1289,19 @@ private void AddNewGeometryDrawing(Brush brush, Pen pen, Geometry geometry)
Debug.Assert(geometry != null);
// Instantiate the GeometryDrawing
- GeometryDrawing geometryDrawing = new GeometryDrawing();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ GeometryDrawing geometryDrawing = new GeometryDrawing
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- geometryDrawing.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext,
- geometryDrawing.Brush = brush;
- geometryDrawing.Pen = pen;
- geometryDrawing.Geometry = geometry;
+ Brush = brush,
+ Pen = pen,
+ Geometry = geometry
+ };
// Setup it's Freezeable-related state
SetupNewFreezable(
@@ -1315,14 +1324,15 @@ private void AddNewGeometryDrawing(Brush brush, Pen pen, Geometry geometry)
private void PushNewDrawingGroup()
{
// Instantiate a new drawing group
- DrawingGroup drawingGroup = new DrawingGroup();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ DrawingGroup drawingGroup = new DrawingGroup
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- drawingGroup.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
// Setup it's freezable state
SetupNewFreezable(
@@ -1383,14 +1393,15 @@ private void AddDrawing(Drawing newDrawing)
// DrawingGroup as the root and add both drawings to it.
// Instantiate the DrawingGroup
- _currentDrawingGroup = new DrawingGroup();
-
- //
- // We may need to opt-out of inheritance through the new Freezable.
- // This is controlled by this.CanBeInheritanceContext.
- //
+ _currentDrawingGroup = new DrawingGroup
+ {
+ //
+ // We may need to opt-out of inheritance through the new Freezable.
+ // This is controlled by this.CanBeInheritanceContext.
+ //
- _currentDrawingGroup.CanBeInheritanceContext = CanBeInheritanceContext;
+ CanBeInheritanceContext = CanBeInheritanceContext
+ };
SetupNewFreezable(
_currentDrawingGroup,
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs
index 9fdb8c26ba5..ac9e5cf6d91 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EllipseGeometry.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -300,9 +300,11 @@ internal override PathGeometryData GetPathGeometryData()
return Geometry.GetEmptyPathGeometryData();
}
- PathGeometryData data = new PathGeometryData();
- data.FillRule = FillRule.EvenOdd;
- data.Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform);
+ PathGeometryData data = new PathGeometryData
+ {
+ FillRule = FillRule.EvenOdd,
+ Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform)
+ };
Point[] points = GetPointList();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs
index 1211eea8a75..d59b1ce1057 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/EventProxy.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -136,12 +136,13 @@ internal static SafeMILHandle CreateEventProxyWrapper(IInvokable invokable)
SafeMILHandle eventProxy = null;
EventProxyWrapper epw = new EventProxyWrapper(invokable);
- EventProxyDescriptor epd = new EventProxyDescriptor();
-
- epd.pfnDispose = EventProxyStaticPtrs.pfnDispose;
- epd.pfnRaiseEvent = EventProxyStaticPtrs.pfnRaiseEvent;
+ EventProxyDescriptor epd = new EventProxyDescriptor
+ {
+ pfnDispose = EventProxyStaticPtrs.pfnDispose,
+ pfnRaiseEvent = EventProxyStaticPtrs.pfnRaiseEvent,
- epd.m_handle = System.Runtime.InteropServices.GCHandle.Alloc(epw, System.Runtime.InteropServices.GCHandleType.Normal);
+ m_handle = System.Runtime.InteropServices.GCHandle.Alloc(epw, System.Runtime.InteropServices.GCHandleType.Normal)
+ };
HRESULT.Check(MILCreateEventProxy(ref epd, out eventProxy));
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs
index 53ae8f0a493..63e62f8abfc 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FormattedText.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1942,8 +1942,10 @@ private void CombineGeometryRecursive(Drawing drawing, ref GeometryGroup accumul
{
if (accumulatedGeometry == null)
{
- accumulatedGeometry = new GeometryGroup();
- accumulatedGeometry.FillRule = FillRule.Nonzero;
+ accumulatedGeometry = new GeometryGroup
+ {
+ FillRule = FillRule.Nonzero
+ };
}
accumulatedGeometry.Children.Add(glyphRunGeometry);
}
@@ -1982,8 +1984,10 @@ private void CombineGeometryRecursive(Drawing drawing, ref GeometryGroup accumul
}
if (accumulatedGeometry == null)
{
- accumulatedGeometry = new GeometryGroup();
- accumulatedGeometry.FillRule = FillRule.Nonzero;
+ accumulatedGeometry = new GeometryGroup
+ {
+ FillRule = FillRule.Nonzero
+ };
}
accumulatedGeometry.Children.Add(geometry);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs
index 1a1e8ad9597..5f6411720f5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Geometry.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -994,9 +994,11 @@ internal static PathGeometryData GetEmptyPathGeometryData()
private static PathGeometryData MakeEmptyPathGeometryData()
{
- PathGeometryData data = new PathGeometryData();
- data.FillRule = FillRule.EvenOdd;
- data.Matrix = CompositionResourceManager.MatrixToMilMatrix3x2D(Matrix.Identity);
+ PathGeometryData data = new PathGeometryData
+ {
+ FillRule = FillRule.EvenOdd,
+ Matrix = CompositionResourceManager.MatrixToMilMatrix3x2D(Matrix.Identity)
+ };
unsafe
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs
index 07bd1f1015c..13edabfc253 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphRun.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1599,8 +1599,10 @@ public Geometry BuildGeometry()
if (accumulatedGeometry == null)
{
- accumulatedGeometry = new GeometryGroup();
- accumulatedGeometry.FillRule = FillRule.Nonzero;
+ accumulatedGeometry = new GeometryGroup
+ {
+ FillRule = FillRule.Nonzero
+ };
}
accumulatedGeometry.Children.Add(glyphGeometry.GetOutlinedPathGeometry(RelativeFlatteningTolerance, ToleranceType.Relative));
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs
index 05a86e6f366..7d832123ed8 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/HitTestDrawingContextWalker.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -159,14 +159,15 @@ public override void DrawImage(
Rect rectangle)
{
// PERF: Consider ways to reduce the allocation of Geometries during managed hit test and bounds passes.
- ImageBrush imageBrush = new ImageBrush();
-
- // The ImageSource provided will be shared between the original location and the new ImageBrush
- // we're creating - this will by default break property inheritance, dynamic resource references
- // and databinding. To prevent this, we mark the new ImageBrush.CanBeInheritanceContext == false.
- imageBrush.CanBeInheritanceContext = false;
-
- imageBrush.ImageSource = imageSource;
+ ImageBrush imageBrush = new ImageBrush
+ {
+ // The ImageSource provided will be shared between the original location and the new ImageBrush
+ // we're creating - this will by default break property inheritance, dynamic resource references
+ // and databinding. To prevent this, we mark the new ImageBrush.CanBeInheritanceContext == false.
+ CanBeInheritanceContext = false,
+
+ ImageSource = imageSource
+ };
DrawGeometry(imageBrush, null /* pen */, new RectangleGeometry(rectangle));
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs
index e2aadb1d9a8..270416950d4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDownload.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -101,8 +101,10 @@ Stream stream
}
}
- entry = new QueueEntry();
- entry.decoders = new List();
+ entry = new QueueEntry
+ {
+ decoders = new List()
+ };
lock (_syncLock)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs
index ae8f0353562..8489509f54c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapMetadata.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1334,9 +1334,10 @@ public String DateTaken
set
{
DateTime dt = System.Convert.ToDateTime(value, CultureInfo.InvariantCulture);
- PROPVARIANT propVar= new PROPVARIANT();
-
- propVar.varType = (ushort)VarEnum.VT_FILETIME;
+ PROPVARIANT propVar = new PROPVARIANT
+ {
+ varType = (ushort)VarEnum.VT_FILETIME
+ };
long longFileTime = dt.ToFileTime();
propVar.filetime.dwLowDateTime = (Int32)longFileTime;
propVar.filetime.dwHighDateTime = (Int32)((longFileTime >> 32) & 0xFFFFFFFF);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs
index 51bd639ce78..f82d0bfff47 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapSizeOptions.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -88,12 +88,13 @@ public Rotation Rotation
///
public static BitmapSizeOptions FromEmptyOptions()
{
- BitmapSizeOptions sizeOptions = new BitmapSizeOptions();
-
- sizeOptions._rotationAngle = Rotation.Rotate0;
- sizeOptions._preservesAspectRatio = true;
- sizeOptions._pixelHeight = 0;
- sizeOptions._pixelWidth = 0;
+ BitmapSizeOptions sizeOptions = new BitmapSizeOptions
+ {
+ _rotationAngle = Rotation.Rotate0,
+ _preservesAspectRatio = true,
+ _pixelHeight = 0,
+ _pixelWidth = 0
+ };
return sizeOptions;
}
@@ -106,12 +107,13 @@ public static BitmapSizeOptions FromHeight(int pixelHeight)
{
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
- BitmapSizeOptions sizeOptions = new BitmapSizeOptions();
-
- sizeOptions._rotationAngle = Rotation.Rotate0;
- sizeOptions._preservesAspectRatio = true;
- sizeOptions._pixelHeight = pixelHeight;
- sizeOptions._pixelWidth = 0;
+ BitmapSizeOptions sizeOptions = new BitmapSizeOptions
+ {
+ _rotationAngle = Rotation.Rotate0,
+ _preservesAspectRatio = true,
+ _pixelHeight = pixelHeight,
+ _pixelWidth = 0
+ };
return sizeOptions;
}
@@ -124,12 +126,13 @@ public static BitmapSizeOptions FromWidth(int pixelWidth)
{
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth);
- BitmapSizeOptions sizeOptions = new BitmapSizeOptions();
-
- sizeOptions._rotationAngle = Rotation.Rotate0;
- sizeOptions._preservesAspectRatio = true;
- sizeOptions._pixelWidth = pixelWidth;
- sizeOptions._pixelHeight = 0;
+ BitmapSizeOptions sizeOptions = new BitmapSizeOptions
+ {
+ _rotationAngle = Rotation.Rotate0,
+ _preservesAspectRatio = true,
+ _pixelWidth = pixelWidth,
+ _pixelHeight = 0
+ };
return sizeOptions;
}
@@ -145,12 +148,13 @@ public static BitmapSizeOptions FromWidthAndHeight(int pixelWidth, int pixelHeig
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelWidth);
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(pixelHeight);
- BitmapSizeOptions sizeOptions = new BitmapSizeOptions();
-
- sizeOptions._rotationAngle = Rotation.Rotate0;
- sizeOptions._preservesAspectRatio = false;
- sizeOptions._pixelWidth = pixelWidth;
- sizeOptions._pixelHeight = pixelHeight;
+ BitmapSizeOptions sizeOptions = new BitmapSizeOptions
+ {
+ _rotationAngle = Rotation.Rotate0,
+ _preservesAspectRatio = false,
+ _pixelWidth = pixelWidth,
+ _pixelHeight = pixelHeight
+ };
return sizeOptions;
}
@@ -173,12 +177,13 @@ public static BitmapSizeOptions FromRotation(Rotation rotation)
throw new ArgumentException(SR.Image_SizeOptionsAngle, "rotation");
}
- BitmapSizeOptions sizeOptions = new BitmapSizeOptions();
-
- sizeOptions._rotationAngle = rotation;
- sizeOptions._preservesAspectRatio = true;
- sizeOptions._pixelWidth = 0;
- sizeOptions._pixelHeight = 0;
+ BitmapSizeOptions sizeOptions = new BitmapSizeOptions
+ {
+ _rotationAngle = rotation,
+ _preservesAspectRatio = true,
+ _pixelWidth = 0,
+ _pixelHeight = 0
+ };
return sizeOptions;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs
index 113f9d303fe..848ac4a1e99 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/LineGeometry.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -236,9 +236,11 @@ internal override PathGeometryData GetPathGeometryData()
return Geometry.GetEmptyPathGeometryData();
}
- PathGeometryData data = new PathGeometryData();
- data.FillRule = FillRule.EvenOdd;
- data.Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform);
+ PathGeometryData data = new PathGeometryData
+ {
+ FillRule = FillRule.EvenOdd,
+ Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform)
+ };
ByteStreamGeometryContext ctx = new ByteStreamGeometryContext();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs
index 8e6ec842f1a..4ed4ee29e0f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathGeometry.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -429,10 +429,11 @@ internal unsafe void AddFigureToList(bool isFilled, bool isClosed, MilPoint2F* p
{
if (pointCount >=1 && segmentCount >= 1)
{
- PathFigure figure = new PathFigure();
-
- figure.IsFilled = isFilled;
- figure.StartPoint = new Point(pPoints->X, pPoints->Y);
+ PathFigure figure = new PathFigure
+ {
+ IsFilled = isFilled,
+ StartPoint = new Point(pPoints->X, pPoints->Y)
+ };
int pointIndex = 1;
int sameSegCount = 0;
@@ -949,10 +950,12 @@ internal void SetDirty()
///
internal override PathGeometryData GetPathGeometryData()
{
- PathGeometryData data = new PathGeometryData();
- data.FillRule = FillRule;
- data.Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform);
-
+ PathGeometryData data = new PathGeometryData
+ {
+ FillRule = FillRule,
+ Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform)
+ };
+
if (IsObviouslyEmpty())
{
return Geometry.GetEmptyPathGeometryData();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs
index d77e471d8cf..f637354e572 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/PathStreamGeometryContext.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -243,10 +243,11 @@ public override void ArcTo(Point point, Size size, double rotationAngle, bool is
_currentFigure.Segments = _segments;
}
- ArcSegment segment = new ArcSegment();
-
- segment.Point = point;
- segment.Size = size;
+ ArcSegment segment = new ArcSegment
+ {
+ Point = point,
+ Size = size
+ };
if (isLargeArc != s_defaultValueForArcSegmentIsLargeArc)
{
@@ -376,49 +377,61 @@ private void FinishSegment()
case MIL_SEGMENT_TYPE.MilSegmentPolyLine:
if (count == 1)
{
- LineSegment lSegment = new LineSegment();
- lSegment.Point = _currentSegmentPoints[0];
+ LineSegment lSegment = new LineSegment
+ {
+ Point = _currentSegmentPoints[0]
+ };
segment = lSegment;
}
else
{
- PolyLineSegment pSegment = new PolyLineSegment();
- pSegment.Points = _currentSegmentPoints;
+ PolyLineSegment pSegment = new PolyLineSegment
+ {
+ Points = _currentSegmentPoints
+ };
segment = pSegment;
}
break;
case MIL_SEGMENT_TYPE.MilSegmentPolyBezier:
if (count == 3)
{
- BezierSegment bSegment = new BezierSegment();
- bSegment.Point1 = _currentSegmentPoints[0];
- bSegment.Point2 = _currentSegmentPoints[1];
- bSegment.Point3 = _currentSegmentPoints[2];
+ BezierSegment bSegment = new BezierSegment
+ {
+ Point1 = _currentSegmentPoints[0],
+ Point2 = _currentSegmentPoints[1],
+ Point3 = _currentSegmentPoints[2]
+ };
segment = bSegment;
}
else
{
Debug.Assert(count % 3 == 0);
- PolyBezierSegment pSegment = new PolyBezierSegment();
- pSegment.Points = _currentSegmentPoints;
+ PolyBezierSegment pSegment = new PolyBezierSegment
+ {
+ Points = _currentSegmentPoints
+ };
segment = pSegment;
}
break;
case MIL_SEGMENT_TYPE.MilSegmentPolyQuadraticBezier:
if (count == 2)
{
- QuadraticBezierSegment qSegment = new QuadraticBezierSegment();
- qSegment.Point1 = _currentSegmentPoints[0];
- qSegment.Point2 = _currentSegmentPoints[1];
+ QuadraticBezierSegment qSegment = new QuadraticBezierSegment
+ {
+ Point1 = _currentSegmentPoints[0],
+ Point2 = _currentSegmentPoints[1]
+ };
segment = qSegment;
}
else
{
Debug.Assert(count % 2 == 0);
- PolyQuadraticBezierSegment pSegment = new PolyQuadraticBezierSegment();
- pSegment.Points = _currentSegmentPoints;
+ PolyQuadraticBezierSegment pSegment = new PolyQuadraticBezierSegment
+ {
+ Points = _currentSegmentPoints
+ };
segment = pSegment;
}
break;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs
index 0bdd6e876df..5d37719cdfc 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/RectangleGeometry.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -397,9 +397,11 @@ internal override PathGeometryData GetPathGeometryData()
return Geometry.GetEmptyPathGeometryData();
}
- PathGeometryData data = new PathGeometryData();
- data.FillRule = FillRule.EvenOdd;
- data.Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform);
+ PathGeometryData data = new PathGeometryData
+ {
+ FillRule = FillRule.EvenOdd,
+ Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform)
+ };
double radiusX = RadiusX;
double radiusY = RadiusY;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs
index 62fd460f39d..4437b90b987 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamAsIStream.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -687,16 +687,17 @@ internal static IntPtr IStreamFrom(System.IO.Stream stream)
IntPtr pStream = IntPtr.Zero;
StreamAsIStream sais = new StreamAsIStream(stream);
- StreamDescriptor sd = new StreamDescriptor();
-
- sd.pfnDispose = StaticPtrs.pfnDispose;
+ StreamDescriptor sd = new StreamDescriptor
+ {
+ pfnDispose = StaticPtrs.pfnDispose,
- sd.pfnClone = StaticPtrs.pfnClone;
- sd.pfnCommit = StaticPtrs.pfnCommit;
- sd.pfnCopyTo = StaticPtrs.pfnCopyTo;
- sd.pfnLockRegion = StaticPtrs.pfnLockRegion;
- sd.pfnRead = StaticPtrs.pfnRead;
- sd.pfnRevert = StaticPtrs.pfnRevert;
+ pfnClone = StaticPtrs.pfnClone,
+ pfnCommit = StaticPtrs.pfnCommit,
+ pfnCopyTo = StaticPtrs.pfnCopyTo,
+ pfnLockRegion = StaticPtrs.pfnLockRegion,
+ pfnRead = StaticPtrs.pfnRead,
+ pfnRevert = StaticPtrs.pfnRevert
+ };
unsafe
{
sd.pfnSeek = StaticPtrs.pfnSeek;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs
index a9ff4b42c48..19fb3e76066 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/StreamGeometry.cs
@@ -343,10 +343,12 @@ internal override PathGeometryData GetPathGeometryData()
return Geometry.GetEmptyPathGeometryData();
}
- PathGeometryData data = new PathGeometryData();
- data.FillRule = FillRule;
- data.Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform);
- data.SerializedData = _data;
+ PathGeometryData data = new PathGeometryData
+ {
+ FillRule = FillRule,
+ Matrix = CompositionResourceManager.TransformToMilMatrix3x2D(Transform),
+ SerializedData = _data
+ };
return data;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs
index 056cee85b76..e508aaae149 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/mediaeventshelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -383,15 +383,16 @@ int stringLength
//
// Set the initial capacity of the string builder to stringLength
//
- StringBuilder stringBuilder = new StringBuilder(stringLength);
-
- //
- // Also set the actual length, this allows the string to be indexed
- // to that point.
- //
- stringBuilder.Length = stringLength;
+ StringBuilder stringBuilder = new StringBuilder(stringLength)
+ {
+ //
+ // Also set the actual length, this allows the string to be indexed
+ // to that point.
+ //
+ Length = stringLength
+ };
- for(int i = 0; i < stringLength; i++)
+ for (int i = 0; i < stringLength; i++)
{
stringBuilder[i] = (char)reader.ReadUInt16();
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs
index b1a4a451e82..bc6283502cd 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Matrix3D.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1363,8 +1363,10 @@ internal bool InvertCore()
private static Matrix3D CreateIdentity()
{
// Don't call this function, use s_identity.
- Matrix3D matrix = new Matrix3D(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1);
- matrix.IsDistinguishedIdentity = true;
+ Matrix3D matrix = new Matrix3D(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
+ {
+ IsDistinguishedIdentity = true
+ };
return matrix;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs
index f87269faeb2..bb540f77a66 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Quaternion.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -733,8 +733,10 @@ private static int GetIdentityHashCode()
private static Quaternion GetIdentity()
{
// This code is called only once.
- Quaternion q = new Quaternion(0,0,0,1);
- q.IsDistinguishedIdentity = true;
+ Quaternion q = new Quaternion(0, 0, 0, 1)
+ {
+ IsDistinguishedIdentity = true
+ };
return q;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs
index c3caa2ca8d8..807ca76fc87 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Rect3D.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -594,14 +594,16 @@ private bool ContainsInternal(double x, double y, double z)
private static Rect3D CreateEmptyRect3D()
{
- Rect3D empty = new Rect3D();
- empty._x = Double.PositiveInfinity;
- empty._y = Double.PositiveInfinity;
- empty._z = Double.PositiveInfinity;
- // Can't use setters because they throw on negative values
- empty._sizeX = Double.NegativeInfinity;
- empty._sizeY = Double.NegativeInfinity;
- empty._sizeZ = Double.NegativeInfinity;
+ Rect3D empty = new Rect3D
+ {
+ _x = Double.PositiveInfinity,
+ _y = Double.PositiveInfinity,
+ _z = Double.PositiveInfinity,
+ // Can't use setters because they throw on negative values
+ _sizeX = Double.NegativeInfinity,
+ _sizeY = Double.NegativeInfinity,
+ _sizeZ = Double.NegativeInfinity
+ };
return empty;
}
@@ -630,13 +632,15 @@ private static Rect3D CreateInfiniteRect3D()
// leaves us ample space to account for transforms, etc.
//
- Rect3D infinite = new Rect3D();
- infinite._x = -float.MaxValue;
- infinite._y = -float.MaxValue;
- infinite._z = -float.MaxValue;
- infinite._sizeX = float.MaxValue*2.0;
- infinite._sizeY = float.MaxValue*2.0;
- infinite._sizeZ = float.MaxValue*2.0;
+ Rect3D infinite = new Rect3D
+ {
+ _x = -float.MaxValue,
+ _y = -float.MaxValue,
+ _z = -float.MaxValue,
+ _sizeX = float.MaxValue * 2.0,
+ _sizeY = float.MaxValue * 2.0,
+ _sizeZ = float.MaxValue * 2.0
+ };
return infinite;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs
index 4c6eff1bb79..27a36f8081f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Size3D.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -171,11 +171,13 @@ public static explicit operator Point3D(Size3D size)
private static Size3D CreateEmptySize3D()
{
- Size3D empty = new Size3D();
- // Can't use setters because they throw on negative values
- empty._x = Double.NegativeInfinity;
- empty._y = Double.NegativeInfinity;
- empty._z = Double.NegativeInfinity;
+ Size3D empty = new Size3D
+ {
+ // Can't use setters because they throw on negative values
+ _x = Double.NegativeInfinity,
+ _y = Double.NegativeInfinity,
+ _z = Double.NegativeInfinity
+ };
return empty;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs
index 25e539a4598..45638d0dd74 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media3D/Viewport2DVisual3D.cs
@@ -28,9 +28,11 @@ public Viewport2DVisual3D()
// create holders for the content
// We don't want this model to set itself as the IC for Geometry and Material
// so we set to to not be able to be an inheritance context.
- GeometryModel3D model = new GeometryModel3D();
- model.CanBeInheritanceContext = false;
-
+ GeometryModel3D model = new GeometryModel3D
+ {
+ CanBeInheritanceContext = false
+ };
+
Visual3DModel = model;
}
@@ -414,14 +416,15 @@ private void RemoveVisualChild(Visual child)
/// The VisualBrush to hold the interactive 2D content
private VisualBrush CreateVisualBrush()
{
- VisualBrush vb = new VisualBrush();
+ VisualBrush vb = new VisualBrush
+ {
+ // We don't want the VisualBrush being the InheritanceContext for the Visual it contains. Rather we want
+ // that to be the Viewport2DVisual3D itself.
+ CanBeInheritanceContext = false,
- // We don't want the VisualBrush being the InheritanceContext for the Visual it contains. Rather we want
- // that to be the Viewport2DVisual3D itself.
- vb.CanBeInheritanceContext = false;
-
- vb.ViewportUnits = BrushMappingMode.Absolute;
- vb.TileMode = TileMode.None;
+ ViewportUnits = BrushMappingMode.Absolute,
+ TileMode = TileMode.None
+ };
// set any rendering options in the visual brush - we do this to still give access to these caching hints
// without exposing the visual brush
@@ -439,16 +442,17 @@ private VisualBrush CreateVisualBrush()
/// The BitmapCacheBrush to hold the interactive 2D content
private BitmapCacheBrush CreateBitmapCacheBrush()
{
- BitmapCacheBrush bcb = new BitmapCacheBrush();
+ BitmapCacheBrush bcb = new BitmapCacheBrush
+ {
+ // We don't want the cache brush being the InheritanceContext for the Visual it contains. Rather we want
+ // that to be the Viewport2DVisual3D itself.
+ CanBeInheritanceContext = false,
- // We don't want the cache brush being the InheritanceContext for the Visual it contains. Rather we want
- // that to be the Viewport2DVisual3D itself.
- bcb.CanBeInheritanceContext = false;
+ // Ensure that the brush supports rendering all properties on the Visual to match VisualBrush behavior.
+ AutoWrapTarget = true,
- // Ensure that the brush supports rendering all properties on the Visual to match VisualBrush behavior.
- bcb.AutoWrapTarget = true;
-
- bcb.BitmapCache = CacheMode as BitmapCache;
+ BitmapCache = CacheMode as BitmapCache
+ };
return bcb;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs
index 66aca09f565..965da92d3b0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/MouseOverProperty.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -44,8 +44,10 @@ internal override void FireNotifications(UIElement uie, ContentElement ce, UIEle
if (shouldFireNotification)
{
- MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, Environment.TickCount, Mouse.PrimaryDevice.StylusDevice);
- mouseEventArgs.RoutedEvent = oldValue ? Mouse.MouseLeaveEvent : Mouse.MouseEnterEvent;
+ MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, Environment.TickCount, Mouse.PrimaryDevice.StylusDevice)
+ {
+ RoutedEvent = oldValue ? Mouse.MouseLeaveEvent : Mouse.MouseEnterEvent
+ };
if (uie != null)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs
index 12efc822af0..e56dbf9df2a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Navigation/BaseUriHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -199,12 +199,13 @@ internal static void GetAssemblyAndPartNameFromPackAppUri(Uri uri, out Assembly
internal static Assembly GetLoadedAssembly(string assemblyName, string assemblyVersion, string assemblyKey)
{
Assembly assembly;
- AssemblyName asmName = new AssemblyName(assemblyName);
-
- // We always use the primary assembly (culture neutral) for resource manager.
- // if the required resource lives in satellite assembly, ResourceManager can find
- // the right satellite assembly later.
- asmName.CultureInfo = new CultureInfo(String.Empty);
+ AssemblyName asmName = new AssemblyName(assemblyName)
+ {
+ // We always use the primary assembly (culture neutral) for resource manager.
+ // if the required resource lives in satellite assembly, ResourceManager can find
+ // the right satellite assembly later.
+ CultureInfo = new CultureInfo(String.Empty)
+ };
if (!String.IsNullOrEmpty(assemblyVersion))
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs
index df763b6cb19..ae20d50b564 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/PresentationSource.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -698,9 +698,10 @@ private static bool UpdateSourceOfElement(DependencyObject doTarget,
{
doTarget.SetValue(CachedSourceProperty, realSource);
- SourceChangedEventArgs args = new SourceChangedEventArgs(cachedSource, realSource);
-
- args.RoutedEvent=SourceChangedEvent;
+ SourceChangedEventArgs args = new SourceChangedEventArgs(cachedSource, realSource)
+ {
+ RoutedEvent = SourceChangedEvent
+ };
if (doTarget is UIElement uiElement)
{
uiElement.RaiseEvent(args);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs
index f3f2dfd87d8..abc372b5dd5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/StylusOverProperty.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -35,9 +35,11 @@ internal override void FireNotifications(UIElement uie, ContentElement ce, UIEle
{
return;
}
-
- StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount);
- stylusEventArgs.RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent;
+
+ StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount)
+ {
+ RoutedEvent = oldValue ? Stylus.StylusLeaveEvent : Stylus.StylusEnterEvent
+ };
if (uie != null)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorations.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorations.cs
index b188d22acbe..28a39a77749 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorations.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/TextDecorations.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -20,29 +20,37 @@ public static class TextDecorations
static TextDecorations()
{
// Init Underline
- TextDecoration td = new TextDecoration();
- td.Location = TextDecorationLocation.Underline;
+ TextDecoration td = new TextDecoration
+ {
+ Location = TextDecorationLocation.Underline
+ };
underline = new TextDecorationCollection();
underline.Add(td);
underline.Freeze();
// Init strikethrough
- td = new TextDecoration();
- td.Location = TextDecorationLocation.Strikethrough;
+ td = new TextDecoration
+ {
+ Location = TextDecorationLocation.Strikethrough
+ };
strikethrough = new TextDecorationCollection();
strikethrough.Add(td);
strikethrough.Freeze();
-
+
// Init overline
- td = new TextDecoration();
- td.Location = TextDecorationLocation.OverLine;
+ td = new TextDecoration
+ {
+ Location = TextDecorationLocation.OverLine
+ };
overLine = new TextDecorationCollection();
overLine.Add(td);
overLine.Freeze();
// Init baseline
- td = new TextDecoration();
- td.Location = TextDecorationLocation.Baseline;
+ td = new TextDecoration
+ {
+ Location = TextDecorationLocation.Baseline
+ };
baseline = new TextDecorationCollection();
baseline.Add(td);
baseline.Freeze();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs
index ae5d79fad2b..91ca041cf68 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/dataobject.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2272,11 +2272,13 @@ internal FormatEnumerator(DataObject dataObject)
string format;
format = formats[i];
- temp = new FORMATETC();
- temp.cfFormat = (short)DataFormats.GetDataFormat(format).Id;
- temp.dwAspect = DVASPECT.DVASPECT_CONTENT;
- temp.ptd = IntPtr.Zero;
- temp.lindex = -1;
+ temp = new FORMATETC
+ {
+ cfFormat = (short)DataFormats.GetDataFormat(format).Id,
+ dwAspect = DVASPECT.DVASPECT_CONTENT,
+ ptd = IntPtr.Zero,
+ lindex = -1
+ };
if (IsFormatEqual(format, DataFormats.Bitmap))
{
@@ -2665,12 +2667,13 @@ private Object GetDataFromOleIStream(string format, DVASPECT aspect, int index)
FORMATETC formatetc;
STGMEDIUM medium;
- formatetc = new FORMATETC();
-
- formatetc.cfFormat = (short)DataFormats.GetDataFormat(format).Id;
- formatetc.dwAspect = aspect;
- formatetc.lindex = index;
- formatetc.tymed = TYMED.TYMED_ISTREAM;
+ formatetc = new FORMATETC
+ {
+ cfFormat = (short)DataFormats.GetDataFormat(format).Id,
+ dwAspect = aspect,
+ lindex = index,
+ tymed = TYMED.TYMED_ISTREAM
+ };
object outData = null;
@@ -2837,12 +2840,13 @@ private object GetDataFromOleHGLOBAL(string format, DVASPECT aspect, int index)
STGMEDIUM medium;
Object data;
- formatetc = new FORMATETC();
-
- formatetc.cfFormat = (short)DataFormats.GetDataFormat(format).Id;
- formatetc.dwAspect = aspect;
- formatetc.lindex = index;
- formatetc.tymed = TYMED.TYMED_HGLOBAL;
+ formatetc = new FORMATETC
+ {
+ cfFormat = (short)DataFormats.GetDataFormat(format).Id,
+ dwAspect = aspect,
+ lindex = index,
+ tymed = TYMED.TYMED_HGLOBAL
+ };
data = null;
@@ -3214,10 +3218,12 @@ private bool GetDataPresentInner(string format, DVASPECT aspect, int index)
FORMATETC formatetc;
int hr;
- formatetc = new FORMATETC();
- formatetc.cfFormat = (short)DataFormats.GetDataFormat(format).Id;
- formatetc.dwAspect = aspect;
- formatetc.lindex = index;
+ formatetc = new FORMATETC
+ {
+ cfFormat = (short)DataFormats.GetDataFormat(format).Id,
+ dwAspect = aspect,
+ lindex = index
+ };
for (int i=0; i
private ResolvingLocatorState ResolveSingleLocator(ref object selection, ref AttachmentLevel attachmentLevel, AttachmentLevel attemptedLevel, ContentLocator locator, int offset, DependencyObject startNode, bool skipStartNode)
{
- ResolvingLocatorState data = new ResolvingLocatorState();
- data.LocatorPartIndex = offset;
- data.ContentLocatorBase = locator;
+ ResolvingLocatorState data = new ResolvingLocatorState
+ {
+ LocatorPartIndex = offset,
+ ContentLocatorBase = locator
+ };
PrePostDescendentsWalker walker = new PrePostDescendentsWalker(TreeWalkPriority.VisualTree, ResolveLocatorPart, TerminateResolve, data);
walker.StartWalk(startNode, skipStartNode);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs
index 2cb4f878193..aa9efa128e3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Annotations/Component/MarkedHighlightComponent.cs
@@ -573,15 +573,21 @@ private void SetState()
/// The MarkerComponent
private Path CreateMarker(Geometry geometry)
{
- Path marker = new Path();
- marker.Data = geometry;
+ Path marker = new Path
+ {
+ Data = geometry
+ };
//set activation binding
- Binding markerStroke = new Binding("MarkerBrushProperty");
- markerStroke.Source = this;
+ Binding markerStroke = new Binding("MarkerBrushProperty")
+ {
+ Source = this
+ };
marker.SetBinding(Path.StrokeProperty, markerStroke);
- Binding markerStrokeThickness = new Binding("StrokeThicknessProperty");
- markerStrokeThickness.Source = this;
+ Binding markerStrokeThickness = new Binding("StrokeThicknessProperty")
+ {
+ Source = this
+ };
marker.SetBinding(Path.StrokeThicknessProperty, markerStrokeThickness);
marker.StrokeEndLineCap = PenLineCap.Round;
marker.StrokeStartLineCap = PenLineCap.Round;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs
index a8007a5505a..843c85e112e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppModelKnownContentFactory.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -53,10 +53,11 @@ internal static object BamlConverterCore(Stream stream, Uri baseUri, bool canUse
throw new InvalidOperationException(SR.BamlIsNotSupportedOutsideOfApplicationResources);
}
- ParserContext pc = new ParserContext();
-
- pc.BaseUri = baseUri;
- pc.SkipJournaledProperties = isJournalNavigation;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = baseUri,
+ SkipJournaledProperties = isJournalNavigation
+ };
return Application.LoadBamlStreamWithSyncInfo(stream, pc);
}
@@ -82,16 +83,19 @@ internal static object XamlConverterCore(Stream stream, Uri baseUri, bool canUse
stream.Close();
- WebBrowser webBrowser = new WebBrowser();
- webBrowser.Source = baseUri;
+ WebBrowser webBrowser = new WebBrowser
+ {
+ Source = baseUri
+ };
return webBrowser;
}
else
{
- ParserContext pc = new ParserContext();
-
- pc.BaseUri = baseUri;
- pc.SkipJournaledProperties = isJournalNavigation;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = baseUri,
+ SkipJournaledProperties = isJournalNavigation
+ };
if (allowAsync)
{
@@ -147,8 +151,10 @@ internal static object HtmlXappConverterCore(Stream stream, Uri baseUri, bool ca
stream.Close();
- WebBrowser webBrowser = new WebBrowser();
- webBrowser.Source = baseUri;
+ WebBrowser webBrowser = new WebBrowser
+ {
+ Source = baseUri
+ };
return webBrowser;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs
index cb7abdcb82a..de2621ee5e5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/IconHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -210,8 +210,10 @@ internal static NativeMethods.IconHandle CreateIconCursor(
width, // width
-height, // A negative value indicates the bitmap is top-down DIB
32 // biBitCount
- );
- bi.bmiHeader_biCompression = NativeMethods.BI_RGB;
+ )
+ {
+ bmiHeader_biCompression = NativeMethods.BI_RGB
+ };
IntPtr bits = IntPtr.Zero;
colorBitmap = MS.Win32.UnsafeNativeMethods.CreateDIBSection(
@@ -245,12 +247,14 @@ internal static NativeMethods.IconHandle CreateIconCursor(
}
// Now create HICON from two bitmaps.
- NativeMethods.ICONINFO iconInfo = new NativeMethods.ICONINFO();
- iconInfo.fIcon = isIcon; // fIcon == ture means creating an Icon, otherwise Cursor
- iconInfo.xHotspot = xHotspot;
- iconInfo.yHotspot = yHotspot;
- iconInfo.hbmMask = maskBitmap;
- iconInfo.hbmColor = colorBitmap;
+ NativeMethods.ICONINFO iconInfo = new NativeMethods.ICONINFO
+ {
+ fIcon = isIcon, // fIcon == ture means creating an Icon, otherwise Cursor
+ xHotspot = xHotspot,
+ yHotspot = yHotspot,
+ hbmMask = maskBitmap,
+ hbmColor = colorBitmap
+ };
return UnsafeNativeMethods.CreateIconIndirect(iconInfo);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs
index ef2e8d37411..7cf65defd42 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/InkCanvasSelectionAdorner.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -60,9 +60,11 @@ internal InkCanvasSelectionAdorner(UIElement adornedElement)
null,
new Rect(0.0, 0.0, 1f, 1f));
- Pen squareCapPen = new Pen(Brushes.Black, LineThickness);
- squareCapPen.StartLineCap = PenLineCap.Square;
- squareCapPen.EndLineCap = PenLineCap.Square;
+ Pen squareCapPen = new Pen(Brushes.Black, LineThickness)
+ {
+ StartLineCap = PenLineCap.Square,
+ EndLineCap = PenLineCap.Square
+ };
dc.DrawLine(squareCapPen,
new Point(1f, 0f), new Point(0f, 1f));
@@ -76,10 +78,12 @@ internal InkCanvasSelectionAdorner(UIElement adornedElement)
}
hatchDG.Freeze();
- DrawingBrush tileBrush = new DrawingBrush(hatchDG);
- tileBrush.TileMode = TileMode.Tile;
- tileBrush.Viewport = new Rect(0, 0, HatchBorderMargin, HatchBorderMargin);
- tileBrush.ViewportUnits = BrushMappingMode.Absolute;
+ DrawingBrush tileBrush = new DrawingBrush(hatchDG)
+ {
+ TileMode = TileMode.Tile,
+ Viewport = new Rect(0, 0, HatchBorderMargin, HatchBorderMargin),
+ ViewportUnits = BrushMappingMode.Absolute
+ };
tileBrush.Freeze();
_hatchPen = new Pen(tileBrush, HatchBorderMargin);
@@ -251,8 +255,10 @@ private void DrawBackgound(DrawingContext drawingContext)
if (hatchGeometry == null)
{
- PathFigure path = new PathFigure();
- path.StartPoint = new Point(hatchRect.Left, hatchRect.Top);
+ PathFigure path = new PathFigure
+ {
+ StartPoint = new Point(hatchRect.Left, hatchRect.Top)
+ };
PathSegmentCollection segments = new PathSegmentCollection();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs
index dea11cab1bc..b33727fbcfa 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Controls/TemplatedAdorner.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -41,12 +41,13 @@ public TemplatedAdorner(UIElement adornedElement, ControlTemplate adornerTemplat
Debug.Assert(adornedElement != null, "adornedElement should not be null");
Debug.Assert(adornerTemplate != null, "adornerTemplate should not be null");
- Control control = new Control();
-
- control.DataContext = Validation.GetErrors(adornedElement);
- //control.IsEnabled = false; // Hittest should not work on visual subtree
- control.IsTabStop = false; // Tab should not get into adorner layer
- control.Template = adornerTemplate;
+ Control control = new Control
+ {
+ DataContext = Validation.GetErrors(adornedElement),
+ //control.IsEnabled = false; // Hittest should not work on visual subtree
+ IsTabStop = false, // Tab should not get into adorner layer
+ Template = adornerTemplate
+ };
_child = control;
this.AddVisualChild(_child);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs
index b6ff14a8be8..0130da77aa5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DisplayMemberTemplateSelector.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -41,9 +41,11 @@ public override DataTemplate SelectTemplate(object item, DependencyObject contai
{
_xmlNodeContentTemplate = new DataTemplate();
FrameworkElementFactory text = ContentPresenter.CreateTextBlockFactory();
- Binding binding = new Binding();
- binding.XPath = _displayMemberPath;
- binding.StringFormat = _stringFormat;
+ Binding binding = new Binding
+ {
+ XPath = _displayMemberPath,
+ StringFormat = _stringFormat
+ };
text.SetBinding(TextBlock.TextProperty, binding);
_xmlNodeContentTemplate.VisualTree = text;
_xmlNodeContentTemplate.Seal();
@@ -56,9 +58,11 @@ public override DataTemplate SelectTemplate(object item, DependencyObject contai
{
_clrNodeContentTemplate = new DataTemplate();
FrameworkElementFactory text = ContentPresenter.CreateTextBlockFactory();
- Binding binding = new Binding();
- binding.Path = new PropertyPath(_displayMemberPath);
- binding.StringFormat = _stringFormat;
+ Binding binding = new Binding
+ {
+ Path = new PropertyPath(_displayMemberPath),
+ StringFormat = _stringFormat
+ };
text.SetBinding(TextBlock.TextProperty, binding);
_clrNodeContentTemplate.VisualTree = text;
_clrNodeContentTemplate.Seal();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs
index 684a8de9af0..356842fe3a9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingItem.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -108,8 +108,10 @@ internal void SetBinding(string path, DependencyProperty dp, bool oneTime = fals
Binding binding;
if (SystemXmlHelper.IsXmlNode(_item))
{
- binding = new Binding();
- binding.XPath = path;
+ binding = new Binding
+ {
+ XPath = path
+ };
}
else
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs
index a943bf8368b..5cc6363156a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/LiveShapingTree.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -25,8 +25,10 @@ internal LiveShapingBlock PlaceholderBlock
{
if (_placeholderBlock == null)
{
- _placeholderBlock = new LiveShapingBlock(false);
- _placeholderBlock.Parent = this;
+ _placeholderBlock = new LiveShapingBlock(false)
+ {
+ Parent = this
+ };
}
return _placeholderBlock;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs
index fe2cc0c5a02..2a01e66ee15 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/XmlBindingWorker.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -394,8 +394,10 @@ XmlDataCollection BuildQueriedCollection(XmlNodeList nodes)
ParentBindingExpression);
}
- QueriedCollection = new XmlDataCollection(XmlDataProvider);
- QueriedCollection.XmlNamespaceManager = NamespaceManager;
+ QueriedCollection = new XmlDataCollection(XmlDataProvider)
+ {
+ XmlNamespaceManager = NamespaceManager
+ };
QueriedCollection.SynchronizeCollection(nodes);
return QueriedCollection;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs
index 8478f0c95ee..54ee3da8fd1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeMap.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -559,9 +559,11 @@ private LocalizabilityAttribute DefaultAttribute
get
{
// if the value has no localizability attribute set, we default to all inherit.
- LocalizabilityAttribute attribute = new LocalizabilityAttribute(LocalizationCategory.Inherit);
- attribute.Modifiability = Modifiability.Inherit;
- attribute.Readability = Readability.Inherit;
+ LocalizabilityAttribute attribute = new LocalizabilityAttribute(LocalizationCategory.Inherit)
+ {
+ Modifiability = Modifiability.Inherit,
+ Readability = Readability.Inherit
+ };
return attribute;
}
}
@@ -583,8 +585,10 @@ private ElementComments LookupCommentForElement(BamlStartElementNode node)
}
}
- ElementComments comment = new ElementComments();
- comment.ElementId = node.Uid;
+ ElementComments comment = new ElementComments
+ {
+ ElementId = node.Uid
+ };
if (_commentsDocument != null)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs
index 300b1cffe31..4f173cad24a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/BamlTreeNode.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -73,9 +73,11 @@ internal BamlTree Copy()
// create a new copy of the tree.
CreateInternalIndex(ref newTreeRoot, ref newNodeList, true);
- BamlTree newTree = new BamlTree();
- newTree._root = newTreeRoot;
- newTree._nodeList = newNodeList;
+ BamlTree newTree = new BamlTree
+ {
+ _root = newTreeRoot,
+ _nodeList = newNodeList
+ };
return newTree;
}
@@ -392,9 +394,11 @@ public LocalizabilityAttribute InheritableAttribute
get
{
// return the default attribute as it is at the root of the inheritance
- LocalizabilityAttribute defaultAttribute = new LocalizabilityAttribute(LocalizationCategory.None);
- defaultAttribute.Readability = Readability.Readable;
- defaultAttribute.Modifiability = Modifiability.Modifiable;
+ LocalizabilityAttribute defaultAttribute = new LocalizabilityAttribute(LocalizationCategory.None)
+ {
+ Readability = Readability.Readable,
+ Modifiability = Modifiability.Modifiable
+ };
return defaultAttribute;
}
set { }
@@ -472,10 +476,12 @@ internal override void Serialize(BamlWriter writer)
internal override BamlTreeNode Copy()
{
- BamlStartElementNode node = new BamlStartElementNode(_assemblyName, _typeFullName, _isInjected, _useTypeConverter);
- node._content = _content;
- node._uid = _uid;
- node._inheritableAttribute = _inheritableAttribute;
+ BamlStartElementNode node = new BamlStartElementNode(_assemblyName, _typeFullName, _isInjected, _useTypeConverter)
+ {
+ _content = _content,
+ _uid = _uid,
+ _inheritableAttribute = _inheritableAttribute
+ };
return node;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs
index 34bdbe37ef7..fc0add90b60 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizableResourceBuilder.cs
@@ -113,13 +113,15 @@ internal BamlLocalizableResource BuildFromNode(BamlLocalizableResourceKey key, B
&& TryGetContent(key, node, out content))
{
// we only create one if it is localizable
- resource = new BamlLocalizableResource();
- resource.Readable = (localizability.Readability == Readability.Readable);
- resource.Modifiable = (localizability.Modifiability == Modifiability.Modifiable);
- resource.Category = localizability.Category;
- // continue to fill in content.
- resource.Content = content;
- resource.Comments = _resolver.GetStringComment(commentNode, commentTargetName);
+ resource = new BamlLocalizableResource
+ {
+ Readable = (localizability.Readability == Readability.Readable),
+ Modifiable = (localizability.Modifiability == Modifiability.Modifiable),
+ Category = localizability.Category,
+ // continue to fill in content.
+ Content = content,
+ Comments = _resolver.GetStringComment(commentNode, commentTargetName)
+ };
}
// return the resource
@@ -545,9 +547,11 @@ LocalizabilityAttribute inheritable
inheritable.Modifiability :
source.Modifiability;
- LocalizabilityAttribute attribute = new LocalizabilityAttribute(category);
- attribute.Readability = readability;
- attribute.Modifiability = modifiability;
+ LocalizabilityAttribute attribute = new LocalizabilityAttribute(category)
+ {
+ Readability = readability,
+ Modifiability = modifiability
+ };
return attribute;
}
@@ -601,9 +605,11 @@ LocalizabilityAttribute second
second.Category;
}
- LocalizabilityAttribute result = new LocalizabilityAttribute(category);
- result.Readability = readability;
- result.Modifiability = modifiability;
+ LocalizabilityAttribute result = new LocalizabilityAttribute(category)
+ {
+ Readability = readability,
+ Modifiability = modifiability
+ };
return result;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs
index 5e36615c7a9..3662fda40af 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Globalization/LocalizationComments.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -441,9 +441,11 @@ internal LocalizabilityAttribute Override(LocalizabilityAttribute attribute)
if (overridden)
{
- attribute = new LocalizabilityAttribute(category);
- attribute.Modifiability = modifiability;
- attribute.Readability = readability;
+ attribute = new LocalizabilityAttribute(category)
+ {
+ Modifiability = modifiability,
+ Readability = readability
+ };
}
return attribute;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs
index 0f9dc155c6b..5c902e04020 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/ManagedIStream.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -109,12 +109,14 @@ void IStream.SetSize(Int64 libNewSize)
///
void IStream.Stat(out System.Runtime.InteropServices.ComTypes.STATSTG streamStats, int grfStatFlag)
{
- streamStats = new System.Runtime.InteropServices.ComTypes.STATSTG();
- streamStats.type = NativeMethods.STGTY_STREAM;
- streamStats.cbSize = _ioStream.Length;
+ streamStats = new System.Runtime.InteropServices.ComTypes.STATSTG
+ {
+ type = NativeMethods.STGTY_STREAM,
+ cbSize = _ioStream.Length,
- // Return access information in grfMode.
- streamStats.grfMode = 0; // default value for each flag will be false
+ // Return access information in grfMode.
+ grfMode = 0 // default value for each flag will be false
+ };
if (_ioStream.CanRead && _ioStream.CanWrite)
{
streamStats.grfMode |= NativeMethods.STGM_READWRITE;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs
index efa3129eaac..38ef52e482d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/PackageFilter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -318,10 +318,11 @@ private void MoveToNextFilter()
IndexingFilterMarshaler corePropertiesFilterMarshaler
= new IndexingFilterMarshaler(
- new CorePropertiesFilter(_package.PackageProperties));
-
- // Avoid exception on end of chunks from part filter.
- corePropertiesFilterMarshaler.ThrowOnEndOfChunks = false;
+ new CorePropertiesFilter(_package.PackageProperties))
+ {
+ // Avoid exception on end of chunks from part filter.
+ ThrowOnEndOfChunks = false
+ };
_currentFilter = corePropertiesFilterMarshaler;
_currentFilter.Init(_grfFlags, _cAttributes, _aAttributes);
@@ -412,10 +413,11 @@ IndexingFilterMarshaler corePropertiesFilterMarshaler
}
IndexingFilterMarshaler xamlFilterMarshaler
- = new IndexingFilterMarshaler(new XamlFilter(_currentStream));
-
- // Avoid exception on end of chunks from part filter.
- xamlFilterMarshaler.ThrowOnEndOfChunks = false;
+ = new IndexingFilterMarshaler(new XamlFilter(_currentStream))
+ {
+ // Avoid exception on end of chunks from part filter.
+ ThrowOnEndOfChunks = false
+ };
_currentFilter = xamlFilterMarshaler;
_currentFilter.Init(_grfFlags, _cAttributes, _aAttributes);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs
index 45a720e31b3..09db59f5de3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/IO/Packaging/indexingfiltermarshaler.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -149,9 +149,10 @@ internal static void MarshalFullPropSpec(ManagedFullPropSpec fullPropSpec, ref F
/// An interop STAT_CHUNK from a ManagedChunk
internal static STAT_CHUNK MarshalChunk(ManagedChunk chunk)
{
- STAT_CHUNK native = new STAT_CHUNK();
-
- native.idChunk = chunk.ID;
+ STAT_CHUNK native = new STAT_CHUNK
+ {
+ idChunk = chunk.ID
+ };
Invariant.Assert(chunk.BreakType >= CHUNK_BREAKTYPE.CHUNK_NO_BREAK && chunk.BreakType <= CHUNK_BREAKTYPE.CHUNK_EOC);
native.breakType = chunk.BreakType;
Invariant.Assert(
@@ -185,15 +186,19 @@ internal static IntPtr MarshalPropVariant(Object obj)
if (obj is string)
{
pszVal = Marshal.StringToCoTaskMemAnsi((string)obj);
-
- v = new PROPVARIANT();
- v.vt = VARTYPE.VT_LPSTR;
+
+ v = new PROPVARIANT
+ {
+ vt = VARTYPE.VT_LPSTR
+ };
v.union.pszVal = pszVal;
}
else if (obj is DateTime)
{
- v = new PROPVARIANT();
- v.vt = VARTYPE.VT_FILETIME;
+ v = new PROPVARIANT
+ {
+ vt = VARTYPE.VT_FILETIME
+ };
long longFileTime = ((DateTime)obj).ToFileTime();
v.union.filetime.dwLowDateTime = (Int32)longFileTime;
v.union.filetime.dwHighDateTime = (Int32)((longFileTime >> 32) & 0xFFFFFFFF);
@@ -272,8 +277,10 @@ public STAT_CHUNK GetChunk()
// Return STAT_CHUNK with idChunk as 0.
- STAT_CHUNK chunk = new STAT_CHUNK();
- chunk.idChunk = 0;
+ STAT_CHUNK chunk = new STAT_CHUNK
+ {
+ idChunk = 0
+ };
return chunk;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs
index dd9fef6bdbe..da36cbbccba 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoHelper.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -303,8 +303,10 @@ private void EnsureReady()
//_linePen.Brush.Opacity = ConnectLineOpacity;
//_linePen.LineJoin = PenLineJoin.Round;
- _pen = new Pen(new SolidColorBrush(DotCircumferenceColor), DotCircumferenceThickness);
- _pen.LineJoin = PenLineJoin.Round;
+ _pen = new Pen(new SolidColorBrush(DotCircumferenceColor), DotCircumferenceThickness)
+ {
+ LineJoin = PenLineJoin.Round
+ };
_pen.Freeze();
_lasso = new List(100);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs
index 28ce02fb6df..ff7d8784870 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/LassoSelectionBehavior.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -386,8 +386,10 @@ private static ElementCornerPoints GetTransformedElementCornerPoints(InkCanvasIn
Debug.Assert(canvas.CheckAccess());
- ElementCornerPoints elementPoints = new ElementCornerPoints();
- elementPoints.Set = false;
+ ElementCornerPoints elementPoints = new ElementCornerPoints
+ {
+ Set = false
+ };
if (childElement.Visibility != Visibility.Visible)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs
index 2b7e87da383..d9a6db5018a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/PenCursorManager.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -246,10 +246,12 @@ private static Cursor CreateCursorFromDrawing(Drawing drawing, Point hotspot)
private static DrawingVisual CreateCursorDrawingVisual(Drawing drawing, int width, int height)
{
// Create a drawing brush with the drawing as its content.
- DrawingBrush db = new DrawingBrush(drawing);
- db.Stretch = Stretch.None;
- db.AlignmentX = AlignmentX.Center;
- db.AlignmentY = AlignmentY.Center;
+ DrawingBrush db = new DrawingBrush(drawing)
+ {
+ Stretch = Stretch.None,
+ AlignmentX = AlignmentX.Center,
+ AlignmentY = AlignmentY.Center
+ };
// Create a drawing visual with our drawing brush.
DrawingVisual drawingVisual = new DrawingVisual();
@@ -325,13 +327,15 @@ private static Drawing CreatePenDrawing(DrawingAttributes drawingAttributes, boo
StylusPointCollection stylusPoints = new StylusPointCollection();
stylusPoints.Add(new StylusPoint(0f, 0f));
- DrawingAttributes da = new DrawingAttributes();
- da.Color = drawingAttributes.Color;
- da.Width = drawingAttributes.Width;
- da.Height = drawingAttributes.Height;
- da.StylusTipTransform = drawingAttributes.StylusTipTransform;
- da.IsHighlighter = drawingAttributes.IsHighlighter;
- da.StylusTip = drawingAttributes.StylusTip;
+ DrawingAttributes da = new DrawingAttributes
+ {
+ Color = drawingAttributes.Color,
+ Width = drawingAttributes.Width,
+ Height = drawingAttributes.Height,
+ StylusTipTransform = drawingAttributes.StylusTipTransform,
+ IsHighlighter = drawingAttributes.IsHighlighter,
+ StylusTip = drawingAttributes.StylusTip
+ };
Stroke singleStroke = new Stroke(stylusPoints, da);
//
@@ -452,8 +456,10 @@ private static Drawing CreateStrokeEraserDrawing()
PathGeometry pathGeometry = new PathGeometry();
- PathFigure path = new PathFigure();
- path.StartPoint = new Point(5, 5);
+ PathFigure path = new PathFigure
+ {
+ StartPoint = new Point(5, 5)
+ };
LineSegment segment = new LineSegment(new Point(16, 5), true);
segment.Freeze();
@@ -476,8 +482,10 @@ private static Drawing CreateStrokeEraserDrawing()
pathGeometry.Figures.Add(path);
- path = new PathFigure();
- path.StartPoint = new Point(5, 5);
+ path = new PathFigure
+ {
+ StartPoint = new Point(5, 5)
+ };
segment = new LineSegment(new Point(5, 10), true);
segment.Freeze();
@@ -501,8 +509,10 @@ private static Drawing CreateStrokeEraserDrawing()
pathGeometry.Freeze();
PathGeometry pathGeometry1 = new PathGeometry();
- path = new PathFigure();
- path.StartPoint = new Point(15, 15);
+ path = new PathFigure
+ {
+ StartPoint = new Point(15, 15)
+ };
segment = new LineSegment(new Point(15, 19), true);
segment.Freeze();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs
index af10858317e..34c3f6584b2 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/TextClipboardData.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -81,10 +81,11 @@ protected override void DoPaste(IDataObject dataObject)
if ( !String.IsNullOrEmpty(text) )
{
// Now, create a text box and set the text to it.
- TextBox textBox = new TextBox();
-
- textBox.Text = text;
- textBox.TextWrapping = TextWrapping.Wrap;
+ TextBox textBox = new TextBox
+ {
+ Text = text,
+ TextWrapping = TextWrapping.Wrap
+ };
// Add the textbox to the internal array list.
ElementList.Add(textBox);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs
index 106456ae4a1..b5cde564094 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/LayoutDump.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -42,10 +42,11 @@ internal static class LayoutDump
internal static string DumpLayoutAndVisualTreeToString(string tagName, Visual root)
{
StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
- XmlTextWriter writer = new XmlTextWriter(stringWriter);
-
- writer.Formatting = Formatting.Indented;
- writer.Indentation = 2;
+ XmlTextWriter writer = new XmlTextWriter(stringWriter)
+ {
+ Formatting = Formatting.Indented,
+ Indentation = 2
+ };
DumpLayoutAndVisualTree(writer, tagName, root);
@@ -102,10 +103,11 @@ internal static void DumpLayoutTreeToFile(string tagName, UIElement root, string
internal static string DumpLayoutTreeToString(string tagName, UIElement root)
{
StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
- XmlTextWriter writer = new XmlTextWriter(stringWriter);
-
- writer.Formatting = Formatting.Indented;
- writer.Indentation = 2;
+ XmlTextWriter writer = new XmlTextWriter(stringWriter)
+ {
+ Formatting = Formatting.Indented,
+ Indentation = 2
+ };
DumpLayoutTree(writer, tagName, root);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs
index 6916ec355e2..82882492508 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Printing/PrintDlgExMarshaler.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -457,11 +457,13 @@ IntPtr unmanagedBuffer
{
if (!Is64Bit())
{
- NativeMethods.PRINTDLGEX32 pdex = new NativeMethods.PRINTDLGEX32();
- pdex.hwndOwner = _ownerHandle;
- pdex.nMinPage = _dialog.MinPage;
- pdex.nMaxPage = _dialog.MaxPage;
- pdex.Flags = defaultFlags;
+ NativeMethods.PRINTDLGEX32 pdex = new NativeMethods.PRINTDLGEX32
+ {
+ hwndOwner = _ownerHandle,
+ nMinPage = _dialog.MinPage,
+ nMaxPage = _dialog.MaxPage,
+ Flags = defaultFlags
+ };
if (_dialog.SelectedPagesEnabled)
{
@@ -534,11 +536,13 @@ IntPtr unmanagedBuffer
}
else
{
- NativeMethods.PRINTDLGEX64 pdex = new NativeMethods.PRINTDLGEX64();
- pdex.hwndOwner = _ownerHandle;
- pdex.nMinPage = _dialog.MinPage;
- pdex.nMaxPage = _dialog.MaxPage;
- pdex.Flags = defaultFlags;
+ NativeMethods.PRINTDLGEX64 pdex = new NativeMethods.PRINTDLGEX64
+ {
+ hwndOwner = _ownerHandle,
+ nMinPage = _dialog.MinPage,
+ nMaxPage = _dialog.MaxPage,
+ Flags = defaultFlags
+ };
if (_dialog.SelectedPagesEnabled)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs
index 313d1c0b1ab..a273b2359d0 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BackgroundFormatInfo.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -90,8 +90,10 @@ internal void ThrottleBackgroundFormatting()
// Start up a timer. Until the timer fires, we'll disable
// all background layout. This leaves the control responsive
// to user input.
- _throttleBackgroundTimer = new DispatcherTimer(DispatcherPriority.Background);
- _throttleBackgroundTimer.Interval = new TimeSpan(0, 0, (int)_throttleBackgroundSeconds);
+ _throttleBackgroundTimer = new DispatcherTimer(DispatcherPriority.Background)
+ {
+ Interval = new TimeSpan(0, 0, (int)_throttleBackgroundSeconds)
+ };
_throttleBackgroundTimer.Tick += new EventHandler(OnThrottleBackgroundTimeout);
}
else
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs
index cfbe01fcc51..9807041a618 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/BreakRecordTable.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -265,11 +265,13 @@ internal void UpdateEntry(int pageNumber, FlowDocumentPage page, PageBreakRecord
isClean = this.IsClean;
// Add new entry into BreakRecordTable
- entry = new BreakRecordTableEntry();
- entry.BreakRecord = brOut;
- entry.DocumentPage = new WeakReference(page);
- entry.TextSegments = textView.TextSegments;
- entry.DependentMax = dependentMax;
+ entry = new BreakRecordTableEntry
+ {
+ BreakRecord = brOut,
+ DocumentPage = new WeakReference(page),
+ TextSegments = textView.TextSegments,
+ DependentMax = dependentMax
+ };
if (pageNumber == _breakRecords.Count)
{
_breakRecords.Add(entry);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs
index c75b411089f..af2748f3c6c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ContainerParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1243,10 +1243,11 @@ private UpdateRecord UpdateRecordFromDtr(
DirtyTextRange dtr,
int dcpContent)
{
- UpdateRecord ur = new UpdateRecord();
-
- // (1) Initialize DTR
- ur.Dtr = dtr;
+ UpdateRecord ur = new UpdateRecord
+ {
+ // (1) Initialize DTR
+ Dtr = dtr
+ };
// (2) Find first paragraph affected by DTR
BaseParagraph para = _firstChild;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs
index 70d4cf98425..f3ff4703aac 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParaClient.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -138,12 +138,13 @@ internal override void UpdateViewport(ref PTS.FSRECT viewport)
PTS.FSSUBPAGEDETAILS subpageDetails;
PTS.Validate(PTS.FsQuerySubpageDetails(PtsContext.Context, _paraHandle, out subpageDetails));
- PTS.FSRECT viewportSubpage = new PTS.FSRECT();
-
- viewportSubpage.u = viewport.u - ContentRect.u;
- viewportSubpage.v = viewport.v - ContentRect.v;
- viewportSubpage.du = viewport.du;
- viewportSubpage.dv = viewport.dv;
+ PTS.FSRECT viewportSubpage = new PTS.FSRECT
+ {
+ u = viewport.u - ContentRect.u,
+ v = viewport.v - ContentRect.v,
+ du = viewport.du,
+ dv = viewport.dv
+ };
// Subpage content may be simple or complex -
// depending of set of features used in the content of the subpage.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs
index 044ff5f2b20..d4c70530ce6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FigureParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -401,9 +401,11 @@ by incorporating column gap information */
}
// Bounding box is equal to actual size of the figure.
- fsbbox = new PTS.FSBBOX();
- fsbbox.fDefined = PTS.True;
- fsbbox.fsrc = fsrcFlow;
+ fsbbox = new PTS.FSBBOX
+ {
+ fDefined = PTS.True,
+ fsrc = fsrcFlow
+ };
}
#endregion PTS callbacks
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs
index 481b283c52f..934c03b2de4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParaClient.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -123,12 +123,13 @@ internal override void UpdateViewport(ref PTS.FSRECT viewport)
PTS.FSSUBPAGEDETAILS subpageDetails;
PTS.Validate(PTS.FsQuerySubpageDetails(PtsContext.Context, _paraHandle, out subpageDetails));
- PTS.FSRECT viewportSubpage = new PTS.FSRECT();
-
- viewportSubpage.u = viewport.u - ContentRect.u;
- viewportSubpage.v = viewport.v - ContentRect.v;
- viewportSubpage.du = viewport.du;
- viewportSubpage.dv = viewport.dv;
+ PTS.FSRECT viewportSubpage = new PTS.FSRECT
+ {
+ u = viewport.u - ContentRect.u,
+ v = viewport.v - ContentRect.v,
+ du = viewport.du,
+ dv = viewport.dv
+ };
// Subpage content may be simple or complex -
// depending of set of features used in the content of the subpage.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs
index a245dc7294d..fad0fecf804 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/FloaterParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -120,9 +120,11 @@ internal override void GetFloaterProperties(
uint fswdirTrack, // IN: direction of track
out PTS.FSFLOATERPROPS fsfloaterprops) // OUT: properties of the floater
{
- fsfloaterprops = new PTS.FSFLOATERPROPS();
- fsfloaterprops.fFloat = PTS.True; // Floater
- fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty));
+ fsfloaterprops = new PTS.FSFLOATERPROPS
+ {
+ fFloat = PTS.True, // Floater
+ fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty))
+ };
// Get floater alignment from HorizontalAlignment of the floater element.
switch (HorizontalAlignment)
@@ -190,12 +192,16 @@ internal override void FormatFloaterContentFinite(
{
durFloaterWidth = dvrFloaterHeight = 0;
cPolygons = cVertices = 0;
- fsfmtr = new PTS.FSFMTR();
- fsfmtr.kstop = PTS.FSFMTRKSTOP.fmtrNoProgressOutOfSpace;
- fsfmtr.fContainsItemThatStoppedBeforeFootnote = PTS.False;
- fsfmtr.fForcedProgress = PTS.False;
- fsbbox = new PTS.FSBBOX();
- fsbbox.fDefined = PTS.False;
+ fsfmtr = new PTS.FSFMTR
+ {
+ kstop = PTS.FSFMTRKSTOP.fmtrNoProgressOutOfSpace,
+ fContainsItemThatStoppedBeforeFootnote = PTS.False,
+ fForcedProgress = PTS.False
+ };
+ fsbbox = new PTS.FSBBOX
+ {
+ fDefined = PTS.False
+ };
pbrkrecOut = IntPtr.Zero;
pfsFloatContent = IntPtr.Zero;
}
@@ -229,9 +235,11 @@ internal override void FormatFloaterContentFinite(
specifiedWidth = CalculateWidth(TextDpi.FromTextDpi(durAvailable));
AdjustDurAvailable(specifiedWidth, ref durAvailable, out subpageWidth);
subpageHeight = Math.Max(1, dvrAvailable - (mbp.MBPTop + mbp.MBPBottom));
- fsrcSubpageMargin = new PTS.FSRECT();
- fsrcSubpageMargin.du = subpageWidth;
- fsrcSubpageMargin.dv = subpageHeight;
+ fsrcSubpageMargin = new PTS.FSRECT
+ {
+ du = subpageWidth,
+ dv = subpageHeight
+ };
// Initialize column info. Floater always has just 1 column.
cColumns = 1;
@@ -400,8 +408,10 @@ internal override void FormatFloaterContentBottomless(
dvrFloaterHeight = dvrAvailable + 1;
cPolygons = cVertices = 0;
fsfmtrbl = PTS.FSFMTRBL.fmtrblInterrupted;
- fsbbox = new PTS.FSBBOX();
- fsbbox.fDefined = PTS.False;
+ fsbbox = new PTS.FSBBOX
+ {
+ fDefined = PTS.False
+ };
pfsFloatContent = IntPtr.Zero;
}
else
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs
index cc2afb77df6..a1936ae0906 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/ParagraphVisual.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -85,9 +85,11 @@ internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgr
// Initialize the first pen. Note that each pen is created via new()
// and frozen if possible. Doing this avoids the overhead of
// maintaining changed handlers.
- Pen pen = new Pen();
- pen.Brush = _borderBrush;
- pen.Thickness = _borderThickness.Left;
+ Pen pen = new Pen
+ {
+ Brush = _borderBrush,
+ Thickness = _borderThickness.Left
+ };
if (pen.CanFreeze) { pen.Freeze(); }
if (_borderThickness.IsUniform)
@@ -107,9 +109,11 @@ internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgr
}
if (DoubleUtil.GreaterThanZero(_borderThickness.Right))
{
- pen = new Pen();
- pen.Brush = _borderBrush;
- pen.Thickness = _borderThickness.Right;
+ pen = new Pen
+ {
+ Brush = _borderBrush,
+ Thickness = _borderThickness.Right
+ };
if (pen.CanFreeze) { pen.Freeze(); }
dc.DrawLine(pen,
@@ -118,9 +122,11 @@ internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgr
}
if (DoubleUtil.GreaterThanZero(_borderThickness.Top))
{
- pen = new Pen();
- pen.Brush = _borderBrush;
- pen.Thickness = _borderThickness.Top;
+ pen = new Pen
+ {
+ Brush = _borderBrush,
+ Thickness = _borderThickness.Top
+ };
if (pen.CanFreeze) { pen.Freeze(); }
dc.DrawLine(pen,
@@ -129,9 +135,11 @@ internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgr
}
if (DoubleUtil.GreaterThanZero(_borderThickness.Bottom))
{
- pen = new Pen();
- pen.Brush = _borderBrush;
- pen.Thickness = _borderThickness.Bottom;
+ pen = new Pen
+ {
+ Brush = _borderBrush,
+ Thickness = _borderThickness.Bottom
+ };
if (pen.CanFreeze) { pen.Freeze(); }
dc.DrawLine(pen,
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs
index 8808b0981db..efb87434d58 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/PtsCache.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -189,6 +189,7 @@ private PtsHost AcquireContextCore(PtsContext ptsContext, TextFormattingMode tex
}
}
+#pragma warning disable IDE0017
// Create new PTS Context, if cannot find free one.
if (index == _contextPool.Count)
{
@@ -197,6 +198,7 @@ private PtsHost AcquireContextCore(PtsContext ptsContext, TextFormattingMode tex
_contextPool[index].PtsHost = new PtsHost();
_contextPool[index].PtsHost.Context = CreatePTSContext(index, textFormattingMode);
}
+#pragma warning restore IDE0017
// Initialize TextFormatter, if optimal paragraph is enabled.
// Optimal paragraph requires new TextFormatter for every PTS Context.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs
index c4f65426d29..fd717a4a57f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/RowParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -123,13 +123,14 @@ internal void GetRowProperties(
GetRowHeight(out fskrowheight, out dvrAboveBelow);
// initialize output parameter(s)
- rowprops = new PTS.FSTABLEROWPROPS();
-
- rowprops.fskrowbreak = PTS.FSKROWBREAKRESTRICTION.fskrowbreakAnywhere;
- rowprops.fskrowheight = fskrowheight;
- rowprops.dvrRowHeightRestriction = 0;
- rowprops.dvrAboveRow = dvrAboveBelow;
- rowprops.dvrBelowRow = dvrAboveBelow;
+ rowprops = new PTS.FSTABLEROWPROPS
+ {
+ fskrowbreak = PTS.FSKROWBREAKRESTRICTION.fskrowbreakAnywhere,
+ fskrowheight = fskrowheight,
+ dvrRowHeightRestriction = 0,
+ dvrAboveRow = dvrAboveBelow,
+ dvrBelowRow = dvrAboveBelow
+ };
int cellSpacing = TextDpi.ToTextDpi(Table.InternalCellSpacing);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs
index f4ea1dfeae3..5f5f2093bd2 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/SubpageParaClient.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -417,12 +417,13 @@ internal override void UpdateViewport(ref PTS.FSRECT viewport)
PTS.FSSUBPAGEDETAILS subpageDetails;
PTS.Validate(PTS.FsQuerySubpageDetails(PtsContext.Context, _paraHandle, out subpageDetails));
- PTS.FSRECT viewportSubpage = new PTS.FSRECT();
-
- viewportSubpage.u = viewport.u - ContentRect.u;
- viewportSubpage.v = viewport.v - ContentRect.v;
- viewportSubpage.du = viewport.du;
- viewportSubpage.dv = viewport.dv;
+ PTS.FSRECT viewportSubpage = new PTS.FSRECT
+ {
+ u = viewport.u - ContentRect.u,
+ v = viewport.v - ContentRect.v,
+ du = viewport.du,
+ dv = viewport.dv
+ };
// Subpage content may be simple or complex -
// depending of set of features used in the content of the subpage.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs
index 3afeb3a2c06..3f20c7a768d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TableParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -149,18 +149,19 @@ internal void GetTableProperties(
uint fswdirTrack, // IN: direction of Track
out PTS.FSTABLEOBJPROPS fstableobjprops)// OUT: properties of the table
{
- fstableobjprops = new PTS.FSTABLEOBJPROPS();
-
- fstableobjprops.fskclear = PTS.FSKCLEAR.fskclearNone;
- fstableobjprops.ktablealignment = PTS.FSKTABLEOBJALIGNMENT.fsktableobjAlignLeft;
- fstableobjprops.fFloat = PTS.False;
- fstableobjprops.fskwr = PTS.FSKWRAP.fskwrBoth;
- fstableobjprops.fDelayNoProgress = PTS.False;
- fstableobjprops.dvrCaptionTop = 0;
- fstableobjprops.dvrCaptionBottom = 0;
- fstableobjprops.durCaptionLeft = 0;
- fstableobjprops.durCaptionRight = 0;
- fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
+ fstableobjprops = new PTS.FSTABLEOBJPROPS
+ {
+ fskclear = PTS.FSKCLEAR.fskclearNone,
+ ktablealignment = PTS.FSKTABLEOBJALIGNMENT.fsktableobjAlignLeft,
+ fFloat = PTS.False,
+ fskwr = PTS.FSKWRAP.fskwrBoth,
+ fDelayNoProgress = PTS.False,
+ dvrCaptionTop = 0,
+ dvrCaptionBottom = 0,
+ durCaptionLeft = 0,
+ durCaptionRight = 0,
+ fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))
+ };
}
///
@@ -550,7 +551,7 @@ private void TableStructureChanged(object sender, EventArgs e)
// - to create dirty text range corresponding to the Table content
// - notify formatter that Table's content is changed.
//
- int charCount = Table.SymbolCount - 2;// This is equivalent to (ContentEndOffset – ContentStartOffset) but is more performant.
+ int charCount = Table.SymbolCount - 2;// This is equivalent to (ContentEndOffset – ContentStartOffset) but is more performant.
if (charCount > 0)
{
DirtyTextRange dtr = new DirtyTextRange(Table.ContentStartOffset, charCount, charCount);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs
index 81e833ae5a8..4b755c8738f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/TextParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -533,8 +533,10 @@ internal void ReconstructLineVariant(
Line line = new Line(StructuralCache.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
#pragma warning restore 6518
- Line.FormattingContext ctx = new Line.FormattingContext(true, fClearOnLeft, fClearOnRight, _textRunCache);
- ctx.LineFormatLengthTarget = dcpLineIn;
+ Line.FormattingContext ctx = new Line.FormattingContext(true, fClearOnLeft, fClearOnRight, _textRunCache)
+ {
+ LineFormatLengthTarget = dcpLineIn
+ };
FormatLineCore(line, pbrlineIn, ctx, dcp, durLine, durTrack, fTreatAsFirstInPara, dcp);
// Retrieve line properties
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs
index 7a3c82043d5..40395c7de9a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/PtsHost/UIElementParagraph.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -144,16 +144,18 @@ internal override void GetFloaterProperties(
uint fswdirTrack, // IN: direction of track
out PTS.FSFLOATERPROPS fsfloaterprops) // OUT: properties of the floater
{
- fsfloaterprops = new PTS.FSFLOATERPROPS();
- fsfloaterprops.fFloat = PTS.False; // Floater
- fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty));
+ fsfloaterprops = new PTS.FSFLOATERPROPS
+ {
+ fFloat = PTS.False, // Floater
+ fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)),
- // Set alignment to left alignment. Do not allow text wrap on any side
- fsfloaterprops.fskfloatalignment = PTS.FSKFLOATALIGNMENT.fskfloatalignMin;
- fsfloaterprops.fskwr = PTS.FSKWRAP.fskwrNone;
+ // Set alignment to left alignment. Do not allow text wrap on any side
+ fskfloatalignment = PTS.FSKFLOATALIGNMENT.fskfloatalignMin,
+ fskwr = PTS.FSKWRAP.fskwrNone,
- // Always delay UIElement if there is no progress
- fsfloaterprops.fDelayNoProgress = PTS.True;
+ // Always delay UIElement if there is no progress
+ fDelayNoProgress = PTS.True
+ };
}
//-------------------------------------------------------------------
@@ -189,12 +191,16 @@ internal override void FormatFloaterContentFinite(
// Do not format if not at max width, and if fEmptyOk is true
durFloaterWidth = dvrFloaterHeight = 0;
cPolygons = cVertices = 0;
- fsfmtr = new PTS.FSFMTR();
- fsfmtr.kstop = PTS.FSFMTRKSTOP.fmtrNoProgressOutOfSpace;
- fsfmtr.fContainsItemThatStoppedBeforeFootnote = PTS.False;
- fsfmtr.fForcedProgress = PTS.False;
- fsbbox = new PTS.FSBBOX();
- fsbbox.fDefined = PTS.False;
+ fsfmtr = new PTS.FSFMTR
+ {
+ kstop = PTS.FSFMTRKSTOP.fmtrNoProgressOutOfSpace,
+ fContainsItemThatStoppedBeforeFootnote = PTS.False,
+ fForcedProgress = PTS.False
+ };
+ fsbbox = new PTS.FSBBOX
+ {
+ fDefined = PTS.False
+ };
pbrkrecOut = IntPtr.Zero;
pfsFloatContent = IntPtr.Zero;
}
@@ -216,9 +222,11 @@ internal override void FormatFloaterContentFinite(
ClearUIElementIsland();
MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip);
- fsbbox.fsrc = new PTS.FSRECT();
- fsbbox.fsrc.du = durAvailable;
- fsbbox.fsrc.dv = mbp.BPTop + mbp.BPBottom;
+ fsbbox.fsrc = new PTS.FSRECT
+ {
+ du = durAvailable,
+ dv = mbp.BPTop + mbp.BPBottom
+ };
}
durFloaterWidth = fsbbox.fsrc.du;
@@ -227,10 +235,14 @@ internal override void FormatFloaterContentFinite(
{
// Will not fit in available space. Since fEmptyOk is true, we can return null floater
durFloaterWidth = dvrFloaterHeight = 0;
- fsfmtr = new PTS.FSFMTR();
- fsfmtr.kstop = PTS.FSFMTRKSTOP.fmtrNoProgressOutOfSpace;
- fsbbox = new PTS.FSBBOX();
- fsbbox.fDefined = PTS.False;
+ fsfmtr = new PTS.FSFMTR
+ {
+ kstop = PTS.FSFMTRKSTOP.fmtrNoProgressOutOfSpace
+ };
+ fsbbox = new PTS.FSBBOX
+ {
+ fDefined = PTS.False
+ };
pfsFloatContent = IntPtr.Zero;
}
else
@@ -283,8 +295,10 @@ internal override void FormatFloaterContentBottomless(
dvrFloaterHeight = dvrAvailable + 1;
cPolygons = cVertices = 0;
fsfmtrbl = PTS.FSFMTRBL.fmtrblInterrupted;
- fsbbox = new PTS.FSBBOX();
- fsbbox.fDefined = PTS.False;
+ fsbbox = new PTS.FSBBOX
+ {
+ fDefined = PTS.False
+ };
pfsFloatContent = IntPtr.Zero;
}
else
@@ -309,9 +323,11 @@ internal override void FormatFloaterContentBottomless(
ClearUIElementIsland();
MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip);
- fsbbox.fsrc = new PTS.FSRECT();
- fsbbox.fsrc.du = durAvailable;
- fsbbox.fsrc.dv = mbp.BPTop + mbp.BPBottom;
+ fsbbox.fsrc = new PTS.FSRECT
+ {
+ du = durAvailable,
+ dv = mbp.BPTop + mbp.BPBottom
+ };
fsbbox.fDefined = PTS.True;
pfsFloatContent = paraClient.Handle;
fsfmtrbl = PTS.FSFMTRBL.fmtrblGoalReached;
@@ -403,12 +419,14 @@ private void FormatUIElement(int durAvailable, out PTS.FSBBOX fsbbox)
elementHeight = Math.Max(TextDpi.FromTextDpi(1), elementHeight - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom));
UIElementIsland.DoLayout(new Size(elementWidth, elementHeight), false, false);
-
+
// Create fsbbox. Set width to available width since we want block ui container to occupy the full column
// and UIElement to be algined within it. Set dv to elementHeight.
- fsbbox.fsrc = new PTS.FSRECT();
- fsbbox.fsrc.du = durAvailable;
- fsbbox.fsrc.dv = TextDpi.ToTextDpi(elementHeight) + mbp.BPTop + mbp.BPBottom;
+ fsbbox.fsrc = new PTS.FSRECT
+ {
+ du = durAvailable,
+ dv = TextDpi.ToTextDpi(elementHeight) + mbp.BPTop + mbp.BPBottom
+ };
fsbbox.fDefined = PTS.True;
}
else
@@ -433,9 +451,11 @@ private void FormatUIElement(int durAvailable, out PTS.FSBBOX fsbbox)
// Create fsbbox. Set width to available width since we want block ui container to occupy the full column
// and UIElement to be algined within it
- fsbbox.fsrc = new PTS.FSRECT();
- fsbbox.fsrc.du = durAvailable;
- fsbbox.fsrc.dv = TextDpi.ToTextDpi(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom;
+ fsbbox.fsrc = new PTS.FSRECT
+ {
+ du = durAvailable,
+ dv = TextDpi.ToTextDpi(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom
+ };
fsbbox.fDefined = PTS.True;
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs
index ee590c95e55..df2fcfd76ff 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/DynamicPropertyReader.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -316,11 +316,12 @@ internal static CultureInfo GetCultureInfo(DependencyObject element)
// ------------------------------------------------------------------
internal static NumberSubstitution GetNumberSubstitution(DependencyObject element)
{
- NumberSubstitution numberSubstitution = new NumberSubstitution();
-
- numberSubstitution.CultureSource = (NumberCultureSource)element.GetValue(NumberSubstitution.CultureSourceProperty);
- numberSubstitution.CultureOverride = (CultureInfo)element.GetValue(NumberSubstitution.CultureOverrideProperty);
- numberSubstitution.Substitution = (NumberSubstitutionMethod)element.GetValue(NumberSubstitution.SubstitutionProperty);
+ NumberSubstitution numberSubstitution = new NumberSubstitution
+ {
+ CultureSource = (NumberCultureSource)element.GetValue(NumberSubstitution.CultureSourceProperty),
+ CultureOverride = (CultureInfo)element.GetValue(NumberSubstitution.CultureOverrideProperty),
+ Substitution = (NumberSubstitutionMethod)element.GetValue(NumberSubstitution.SubstitutionProperty)
+ };
return numberSubstitution;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs
index edc7566b22f..4c8219e292b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Text/TextDpi.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -68,9 +68,11 @@ internal static double FromTextDpi(int i)
// ------------------------------------------------------------------
internal static PTS.FSPOINT ToTextPoint(Point point)
{
- PTS.FSPOINT fspoint = new PTS.FSPOINT();
- fspoint.u = ToTextDpi(point.X);
- fspoint.v = ToTextDpi(point.Y);
+ PTS.FSPOINT fspoint = new PTS.FSPOINT
+ {
+ u = ToTextDpi(point.X),
+ v = ToTextDpi(point.Y)
+ };
return fspoint;
}
@@ -79,9 +81,11 @@ internal static PTS.FSPOINT ToTextPoint(Point point)
// ------------------------------------------------------------------
internal static PTS.FSVECTOR ToTextSize(Size size)
{
- PTS.FSVECTOR fsvector = new PTS.FSVECTOR();
- fsvector.du = ToTextDpi(size.Width);
- fsvector.dv = ToTextDpi(size.Height);
+ PTS.FSVECTOR fsvector = new PTS.FSVECTOR
+ {
+ du = ToTextDpi(size.Width),
+ dv = ToTextDpi(size.Height)
+ };
return fsvector;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs
index f7acb0ce97a..cd00416afc5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGrid.cs
@@ -1429,9 +1429,11 @@ private void RecalculateVisualPages(double offset, Size constraint)
if (j < firstPage || j > lastPage || _childrenCollection.Count <= _firstPageVisualIndex)
{
//Create a new page and add it to our temporary visual collection.
- DocumentGridPage dp = new DocumentGridPage(Content);
- dp.ShowPageBorders = ShowPageBorders;
- dp.PageNumber = j;
+ DocumentGridPage dp = new DocumentGridPage(Content)
+ {
+ ShowPageBorders = ShowPageBorders,
+ PageNumber = j
+ };
//Attach the Loaded event handler
dp.PageLoaded += new EventHandler(OnPageLoaded);
@@ -1671,8 +1673,10 @@ private void ResetVisualTree(bool pruneOnly)
//We create a Border with a transparent background so that it can
//participate in Hit-Testing (which allows click events like those
//for our Context Menu to work).
- _documentGridBackground = new Border();
- _documentGridBackground.Background = Brushes.Transparent;
+ _documentGridBackground = new Border
+ {
+ Background = Brushes.Transparent
+ };
//Add the background in.
_childrenCollection.Add(_documentGridBackground);
@@ -2483,8 +2487,10 @@ private void Initialize()
_pageCache = new PageCache();
_childrenCollection = new VisualCollection(this);
- _rowCache = new RowCache();
- _rowCache.PageCache = _pageCache;
+ _rowCache = new RowCache
+ {
+ PageCache = _pageCache
+ };
_rowCache.RowCacheChanged += new RowCacheChangedEventHandler(OnRowCacheChanged);
_rowCache.RowLayoutCompleted += new RowLayoutCompletedEventHandler(OnRowLayoutCompleted);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs
index 147f4f10920..1d1ee2173c6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridContextMenu.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -90,9 +90,11 @@ private static void OnContextMenuOpening(object sender, ContextMenuEventArgs e)
return;
// It's a default null, so spin up a temporary ContextMenu now.
- contextMenu = new ViewerContextMenu();
- contextMenu.Placement = PlacementMode.RelativePoint;
- contextMenu.PlacementTarget = documentGrid;
+ contextMenu = new ViewerContextMenu
+ {
+ Placement = PlacementMode.RelativePoint,
+ PlacementTarget = documentGrid
+ };
((ViewerContextMenu)contextMenu).AddMenuItems(documentGrid, e.UserInitiated);
Point uiScopeMouseDownPoint;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs
index 3c546d95a88..9a3426d63a1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/DocumentGridPage.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -278,14 +278,18 @@ private void Init()
{
//Create the DocumentPageView, which will display our
//content.
- _documentPageView = new DocumentPageView();
- _documentPageView.ClipToBounds = true;
- _documentPageView.StretchDirection = StretchDirection.Both;
- _documentPageView.PageNumber = int.MaxValue;
+ _documentPageView = new DocumentPageView
+ {
+ ClipToBounds = true,
+ StretchDirection = StretchDirection.Both,
+ PageNumber = int.MaxValue
+ };
//Create the content control that contains the page content.
- _documentContainer = new ContentControl();
- _documentContainer.Content = _documentPageView;
+ _documentContainer = new ContentControl
+ {
+ Content = _documentPageView
+ };
_loaded = false;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs
index 083d273e04b..47fa63624ec 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/RowCache.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -669,7 +669,7 @@ private int RecalcRowsForDynamicPageSizes(int pivotPage, int columns)
//at the top and work our way down, we might not end up with the
//same pages on this row.
- //Store off the rows we calculate here, we’ll need them later.
+ //Store off the rows we calculate here, we’ll need them later.
List tempRows = new List(pivotPage / columns);
int currentPage = pivotPage;
while (currentPage > 0)
@@ -680,7 +680,7 @@ private int RecalcRowsForDynamicPageSizes(int pivotPage, int columns)
tempRows.Add(newRow);
}
- //We’ve made it to the top.
+ //We’ve made it to the top.
//Now we can calculate the offsets of each row and add them to the Row cache.
for (int i = tempRows.Count - 1; i >= 0; i--)
{
@@ -704,7 +704,7 @@ private int RecalcRowsForDynamicPageSizes(int pivotPage, int columns)
AddRow(newRow);
}
- //And we’re done. Whew.
+ //And we’re done. Whew.
return pivotRowIndex;
}
@@ -728,7 +728,7 @@ private RowInfo CreateDynamicRow(int startPage, double rowWidth, bool createForw
//Populate the struct with initial data.
RowInfo newRow = new RowInfo();
- //Each row is guaranteed to have at least one page, even if it’s wider
+ //Each row is guaranteed to have at least one page, even if it’s wider
//than the allotted size, so we add it here.
Size pageSize = GetScaledPageSize(startPage);
newRow.AddPage(pageSize);
@@ -743,7 +743,7 @@ private RowInfo CreateDynamicRow(int startPage, double rowWidth, bool createForw
//Grab the next page.
pageSize = GetScaledPageSize(startPage + newRow.PageCount);
- //We’re out of pages, or out of space.
+ //We’re out of pages, or out of space.
if (startPage + newRow.PageCount >= PageCache.PageCount ||
newRow.RowSize.Width + pageSize.Width > rowWidth)
{
@@ -755,7 +755,7 @@ private RowInfo CreateDynamicRow(int startPage, double rowWidth, bool createForw
//Grab the previous page.
pageSize = GetScaledPageSize(startPage - newRow.PageCount);
- //We’re out of pages, or out of space.
+ //We’re out of pages, or out of space.
if (startPage - newRow.PageCount < 0 ||
newRow.RowSize.Width + pageSize.Width > rowWidth)
{
@@ -832,15 +832,17 @@ private RowInfo CreateFixedRow(int startPage, int columns)
//calculate the width & height and return the resulting RowInfo struct
//Populate the struct with initial data
- RowInfo newRow = new RowInfo();
- newRow.FirstPage = startPage;
+ RowInfo newRow = new RowInfo
+ {
+ FirstPage = startPage
+ };
//Keep adding pages until we either:
// - run out of pages to add
// - add the appropriate number of pages
for (int i = startPage; i < startPage + columns; i++)
{
- //We’re out of pages.
+ //We’re out of pages.
if (i > PageCache.PageCount - 1)
break;
@@ -926,8 +928,10 @@ private RowCacheChange AddPageRange(int startPage, int count)
while (currentPage < lastPage)
{
//Build a new row.
- RowInfo newRow = new RowInfo();
- newRow.FirstPage = currentPage;
+ RowInfo newRow = new RowInfo
+ {
+ FirstPage = currentPage
+ };
//Add pages until we either run out of pages or need to start a new row.
do
@@ -1010,9 +1014,11 @@ private RowCacheChange UpdatePageRange(int startPage, int count)
RowInfo currentRow = _rowCache[rowIndex];
//Create a new row and copy pertinent data
//from the old one.
- RowInfo updatedRow = new RowInfo();
- updatedRow.VerticalOffset = currentRow.VerticalOffset;
- updatedRow.FirstPage = currentRow.FirstPage;
+ RowInfo updatedRow = new RowInfo
+ {
+ VerticalOffset = currentRow.VerticalOffset,
+ FirstPage = currentRow.FirstPage
+ };
//Now rebuild this row, thus recalculating the row's size
//based on the new page sizes.
@@ -1121,9 +1127,11 @@ private RowCacheChange TrimPageRange(int startPage)
if (oldRow.FirstPage < startPage)
{
- RowInfo updatedRow = new RowInfo();
- updatedRow.VerticalOffset = oldRow.VerticalOffset;
- updatedRow.FirstPage = oldRow.FirstPage;
+ RowInfo updatedRow = new RowInfo
+ {
+ VerticalOffset = oldRow.VerticalOffset,
+ FirstPage = oldRow.FirstPage
+ };
for (int i = oldRow.FirstPage; i < startPage; i++)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs
index 682dc5e7f46..c4e0deb0481 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/documents/TextBoxView.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1133,8 +1133,10 @@ void ITextView.ThrottleBackgroundTasksForUserInput()
// Start up a timer. Until the timer fires, we'll disable
// all background layout. This leaves the TextBox responsive
// to user input.
- _throttleBackgroundTimer = new DispatcherTimer(DispatcherPriority.Background);
- _throttleBackgroundTimer.Interval = new TimeSpan(0, 0, _throttleBackgroundSeconds);
+ _throttleBackgroundTimer = new DispatcherTimer(DispatcherPriority.Background)
+ {
+ Interval = new TimeSpan(0, 0, _throttleBackgroundSeconds)
+ };
_throttleBackgroundTimer.Tick += new EventHandler(OnThrottleBackgroundTimeout);
}
else
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs
index c8fa3aba558..6a3dce73073 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/AnnotationDocumentPaginator.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -292,12 +292,16 @@ private DocumentPage ComposePageWithAnnotationVisuals(int pageNumber, DocumentPa
// causes the page to be disposed
Size tempSize = page.Size;
- AdornerDecorator decorator = new AdornerDecorator();
- decorator.FlowDirection = _flowDirection;
- DocumentPageView dpv = new DocumentPageView();
- dpv.UseAsynchronousGetPage = false;
- dpv.DocumentPaginator = _originalPaginator;
- dpv.PageNumber = pageNumber;
+ AdornerDecorator decorator = new AdornerDecorator
+ {
+ FlowDirection = _flowDirection
+ };
+ DocumentPageView dpv = new DocumentPageView
+ {
+ UseAsynchronousGetPage = false,
+ DocumentPaginator = _originalPaginator,
+ PageNumber = pageNumber
+ };
decorator.Child = dpv;
// Arrange the first time to get the DPV setup right
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs
index dcb886b0ed4..f4de6e44da9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Annotations/Storage/XmlStreamStore.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -724,8 +724,10 @@ private void LoadStream(IDictionary> knownNamespaces)
lock (SyncRoot)
{
- _document = new XmlDocument();
- _document.PreserveWhitespace = false;
+ _document = new XmlDocument
+ {
+ PreserveWhitespace = false
+ };
if (_stream.Length == 0)
{
_document.LoadXml(
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs
index d9bfc038e08..90ec58c7561 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -370,9 +370,10 @@ public static void LoadComponent(Object component, Uri resourceLocator)
//
// Generate the ParserContext from packUri
//
- ParserContext pc = new ParserContext();
-
- pc.BaseUri = currentUri;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = currentUri
+ };
bool bCloseStream = true; // Whether or not to close the stream after LoadBaml is done.
@@ -477,9 +478,11 @@ internal static object LoadComponent(Uri resourceLocator, bool bSkipJournaledPro
ContentType contentType = new ContentType(part.ContentType);
Stream stream = part.GetSeekableStream();
- ParserContext pc = new ParserContext();
- pc.BaseUri = packUri;
- pc.SkipJournaledProperties = bSkipJournaledProperties;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = packUri,
+ SkipJournaledProperties = bSkipJournaledProperties
+ };
//
// The stream must be a BAML or XAML stream.
@@ -1577,8 +1580,10 @@ internal void DoStartup()
// this support when we can do breaking change. We need to understand what scenarios require
// the Application StartupUri to load content other than xaml/baml in the app resource or content file.
// If there are no interesting ones, we should remove this support.
- NavService = new NavigationService(null);
- NavService.AllowWindowNavigation = true;
+ NavService = new NavigationService(null)
+ {
+ AllowWindowNavigation = true
+ };
NavService.PreBPReady += new BPReadyEventHandler(OnPreBPReady);
NavService.Navigate(StartupUri);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs
index 63be66087db..56311ed2756 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/AccessText.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -553,9 +553,11 @@ private static Style AccessKeyStyle
if (_accessKeyStyle == null)
{
Style accessKeyStyle = new Style(typeof(Run));
- Trigger trigger = new Trigger();
- trigger.Property = KeyboardNavigation.ShowKeyboardCuesProperty;
- trigger.Value = true;
+ Trigger trigger = new Trigger
+ {
+ Property = KeyboardNavigation.ShowKeyboardCuesProperty,
+ Value = true
+ };
trigger.Setters.Add(new Setter(TextDecorationsProperty, System.Windows.TextDecorations.Underline));
accessKeyStyle.Triggers.Add(trigger);
accessKeyStyle.Seal();
@@ -585,8 +587,10 @@ private void UpdateAccessKey()
string keyText = StringInfo.GetNextTextElement(text, index + 1);
TextPointer keyEnd = navigator.GetPositionAtOffset(index + 1 + keyText.Length);
- _accessKey = new Run(keyText);
- _accessKey.Style = AccessKeyStyle;
+ _accessKey = new Run(keyText)
+ {
+ Style = AccessKeyStyle
+ };
RegisterAccessKey();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs
index 8d33efdd287..414a6e35687 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Border.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -403,8 +403,10 @@ protected override void OnRender(DrawingContext dc)
Pen pen = LeftPenCache;
if (pen == null)
{
- pen = new Pen();
- pen.Brush = borderBrush;
+ pen = new Pen
+ {
+ Brush = borderBrush
+ };
if (useLayoutRounding)
{
@@ -466,8 +468,10 @@ protected override void OnRender(DrawingContext dc)
pen = RightPenCache;
if (pen == null)
{
- pen = new Pen();
- pen.Brush = borderBrush;
+ pen = new Pen
+ {
+ Brush = borderBrush
+ };
if (useLayoutRounding)
{
@@ -498,8 +502,10 @@ protected override void OnRender(DrawingContext dc)
pen = TopPenCache;
if (pen == null)
{
- pen = new Pen();
- pen.Brush = borderBrush;
+ pen = new Pen
+ {
+ Brush = borderBrush
+ };
if (useLayoutRounding)
{
pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY);
@@ -529,8 +535,10 @@ protected override void OnRender(DrawingContext dc)
pen = BottomPenCache;
if (pen == null)
{
- pen = new Pen();
- pen.Brush = borderBrush;
+ pen = new Pen
+ {
+ Brush = borderBrush
+ };
if (useLayoutRounding)
{
pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs
index 8e856d7a7a4..bbd6fd85956 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/BorderGapMaskConverter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -78,9 +78,11 @@ values[1] is not double ||
lineWidth = (double)parameter;
}
- Grid grid = new Grid();
- grid.Width = borderWidth;
- grid.Height = borderHeight;
+ Grid grid = new Grid
+ {
+ Width = borderWidth,
+ Height = borderHeight
+ };
ColumnDefinition colDef1 = new ColumnDefinition();
ColumnDefinition colDef2 = new ColumnDefinition();
ColumnDefinition colDef3 = new ColumnDefinition();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs
index bc792c20ac2..4821330d96e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -896,16 +896,18 @@ private void UpdateSelectionBoxItem()
if (_clonedElement != null)
{
// Create visual copy of selected element
- VisualBrush visualBrush = new VisualBrush(_clonedElement);
- visualBrush.Stretch = Stretch.None;
+ VisualBrush visualBrush = new VisualBrush(_clonedElement)
+ {
+ Stretch = Stretch.None,
- //Set position and dimension of content
- visualBrush.ViewboxUnits = BrushMappingMode.Absolute;
- visualBrush.Viewbox = new Rect(_clonedElement.RenderSize);
+ //Set position and dimension of content
+ ViewboxUnits = BrushMappingMode.Absolute,
+ Viewbox = new Rect(_clonedElement.RenderSize),
- //Set position and dimension of tile
- visualBrush.ViewportUnits = BrushMappingMode.Absolute;
- visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
+ //Set position and dimension of tile
+ ViewportUnits = BrushMappingMode.Absolute,
+ Viewport = new Rect(_clonedElement.RenderSize)
+ };
// We need to check if the item acquires a mirror transform through the visual tree
// below the ComboBox. If it does then the same mirror transform needs to be applied
@@ -927,10 +929,12 @@ private void UpdateSelectionBoxItem()
}
// Apply visual brush to a rectangle
- Rectangle rect = new Rectangle();
- rect.Fill = visualBrush;
- rect.Width = _clonedElement.RenderSize.Width;
- rect.Height = _clonedElement.RenderSize.Height;
+ Rectangle rect = new Rectangle
+ {
+ Fill = visualBrush,
+ Width = _clonedElement.RenderSize.Width,
+ Height = _clonedElement.RenderSize.Height
+ };
_clonedElement.LayoutUpdated += CloneLayoutUpdated;
@@ -1203,8 +1207,10 @@ protected override void OnIsMouseCapturedChanged(DependencyPropertyChangedEventA
Debug.Assert(_autoScrollTimer == null, "IsMouseCaptured went from true to true");
if (_autoScrollTimer == null)
{
- _autoScrollTimer = new DispatcherTimer(DispatcherPriority.SystemIdle);
- _autoScrollTimer.Interval = AutoScrollTimeout;
+ _autoScrollTimer = new DispatcherTimer(DispatcherPriority.SystemIdle)
+ {
+ Interval = AutoScrollTimeout
+ };
_autoScrollTimer.Tick += new EventHandler(OnAutoScrollTimeout);
_autoScrollTimer.Start();
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs
index 63a8d42c2ee..3d044e1e176 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContentPresenter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -60,8 +60,10 @@ static ContentPresenter()
// Default template for XmlNodes
template = new DataTemplate();
text = CreateTextBlockFactory();
- binding = new Binding();
- binding.XPath = ".";
+ binding = new Binding
+ {
+ XPath = "."
+ };
text.SetBinding(TextBlock.TextProperty, binding);
template.VisualTree = text;
template.Seal();
@@ -699,14 +701,18 @@ DataTemplate FormattingAccessTextContentTemplate
DataTemplate template = AccessTextFormattingTemplateField.GetValue(this);
if (template == null)
{
- Binding binding = new Binding();
- binding.StringFormat = ContentStringFormat;
+ Binding binding = new Binding
+ {
+ StringFormat = ContentStringFormat
+ };
FrameworkElementFactory text = CreateAccessTextFactory();
text.SetBinding(AccessText.TextProperty, binding);
- template = new DataTemplate();
- template.VisualTree = text;
+ template = new DataTemplate
+ {
+ VisualTree = text
+ };
template.Seal();
AccessTextFormattingTemplateField.SetValue(this, template);
@@ -722,14 +728,18 @@ DataTemplate FormattingStringContentTemplate
DataTemplate template = StringFormattingTemplateField.GetValue(this);
if (template == null)
{
- Binding binding = new Binding();
- binding.StringFormat = ContentStringFormat;
+ Binding binding = new Binding
+ {
+ StringFormat = ContentStringFormat
+ };
FrameworkElementFactory text = CreateTextBlockFactory();
text.SetBinding(TextBlock.TextProperty, binding);
- template = new DataTemplate();
- template.VisualTree = text;
+ template = new DataTemplate
+ {
+ VisualTree = text
+ };
template.Seal();
StringFormattingTemplateField.SetValue(this, template);
@@ -745,15 +755,19 @@ DataTemplate FormattingXmlNodeContentTemplate
DataTemplate template = XMLFormattingTemplateField.GetValue(this);
if (template == null)
{
- Binding binding = new Binding();
- binding.XPath = ".";
- binding.StringFormat = ContentStringFormat;
+ Binding binding = new Binding
+ {
+ XPath = ".",
+ StringFormat = ContentStringFormat
+ };
FrameworkElementFactory text = CreateTextBlockFactory();
text.SetBinding(TextBlock.TextProperty, binding);
- template = new DataTemplate();
- template.VisualTree = text;
+ template = new DataTemplate
+ {
+ VisualTree = text
+ };
template.Seal();
XMLFormattingTemplateField.SetValue(this, template);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs
index 7725c3fe574..c379b0fddc2 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ContextMenu.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -480,9 +480,10 @@ private void HookupParentPopup()
{
Debug.Assert(_parentPopup == null, "_parentPopup should be null");
- _parentPopup = new Popup();
-
- _parentPopup.AllowsTransparency = true;
+ _parentPopup = new Popup
+ {
+ AllowsTransparency = true
+ };
// Coerce HasDropShadow property in case popup can't be transparent
CoerceValue(HasDropShadowProperty);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs
index d97b7fb193b..d6ff5deff69 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGrid.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1711,8 +1711,10 @@ private void StartAutoScroll()
// Same priority as ListBox. Currently choosing SystemIdle over ApplicationIdle since the layout
// manger will do some work (sometimes) at ApplicationIdle.
- _autoScrollTimer = new DispatcherTimer(DispatcherPriority.SystemIdle);
- _autoScrollTimer.Interval = AutoScrollTimeout;
+ _autoScrollTimer = new DispatcherTimer(DispatcherPriority.SystemIdle)
+ {
+ Interval = AutoScrollTimeout
+ };
_autoScrollTimer.Tick += new EventHandler(OnAutoScrollTimeout);
_autoScrollTimer.Start();
}
@@ -1931,8 +1933,10 @@ private void EnsureInternalScrollControls()
}
if (_internalScrollHost != null)
{
- Binding horizontalOffsetBinding = new Binding("ContentHorizontalOffset");
- horizontalOffsetBinding.Source = _internalScrollHost;
+ Binding horizontalOffsetBinding = new Binding("ContentHorizontalOffset")
+ {
+ Source = _internalScrollHost
+ };
SetBinding(HorizontalScrollOffsetProperty, horizontalOffsetBinding);
}
}
@@ -6932,8 +6936,10 @@ private string GetValue()
else
{
// lacking a cell, bind a dummy element directly to the data item
- target = new FrameworkElement();
- target.DataContext = _item;
+ target = new FrameworkElement
+ {
+ DataContext = _item
+ };
}
BindingOperations.SetBinding(target, CellContentProperty, _column.ClipboardContentBinding);
@@ -6968,8 +6974,10 @@ public object GetClipboardValue()
else
{
// lacking a cell, bind a dummy element directly to the data item
- target = new FrameworkElement();
- target.DataContext = _item;
+ target = new FrameworkElement
+ {
+ DataContext = _item
+ };
}
BindingOperations.SetBinding(target, CellClipboardProperty, _column.ClipboardContentBinding);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs
index d434e939c17..828e1704a1b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCell.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -864,8 +864,10 @@ protected override void OnRender(DrawingContext drawingContext)
if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ false))
{
double thickness = DataGridOwner.VerticalGridLineThickness;
- Rect rect = new Rect(new Size(thickness, RenderSize.Height));
- rect.X = RenderSize.Width - thickness;
+ Rect rect = new Rect(new Size(thickness, RenderSize.Height))
+ {
+ X = RenderSize.Width - thickness
+ };
drawingContext.DrawRectangle(DataGridOwner.VerticalGridLinesBrush, null, rect);
}
@@ -873,8 +875,10 @@ protected override void OnRender(DrawingContext drawingContext)
if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true))
{
double thickness = dataGrid.HorizontalGridLineThickness;
- Rect rect = new Rect(new Size(RenderSize.Width, thickness));
- rect.Y = RenderSize.Height - thickness;
+ Rect rect = new Rect(new Size(RenderSize.Width, thickness))
+ {
+ Y = RenderSize.Height - thickness
+ };
drawingContext.DrawRectangle(dataGrid.HorizontalGridLinesBrush, null, rect);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs
index 730afef12b4..8fff6f91bd2 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridCellsPanel.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1357,8 +1357,10 @@ protected override Size ArrangeOverride(Size arrangeSize)
{
IList children = RealizedChildren;
- ArrangeState arrangeState = new ArrangeState();
- arrangeState.ChildHeight = arrangeSize.Height;
+ ArrangeState arrangeState = new ArrangeState
+ {
+ ChildHeight = arrangeSize.Height
+ };
DataGrid parentDataGrid = ParentDataGrid;
/*
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs
index 1f2ce9b181a..9afe0a0eeb4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumn.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1160,8 +1160,10 @@ internal static DataGridColumn CreateDefaultColumn(ItemPropertyInfo itemProperty
// determine the type of column to be created and create one
if (propertyType.IsEnum)
{
- comboBoxColumn = new DataGridComboBoxColumn();
- comboBoxColumn.ItemsSource = Enum.GetValues(propertyType);
+ comboBoxColumn = new DataGridComboBoxColumn
+ {
+ ItemsSource = Enum.GetValues(propertyType)
+ };
dataGridColumn = comboBoxColumn;
}
else if (typeof(string).IsAssignableFrom(propertyType))
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs
index d44e2f808cd..2353acaf858 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DataGridColumnFloatingHeader.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -117,9 +117,10 @@ private void UpdateVisualBrush()
{
if (_referenceHeader != null && _visualBrushCanvas != null)
{
- VisualBrush visualBrush = new VisualBrush(_referenceHeader);
-
- visualBrush.ViewboxUnits = BrushMappingMode.Absolute;
+ VisualBrush visualBrush = new VisualBrush(_referenceHeader)
+ {
+ ViewboxUnits = BrushMappingMode.Absolute
+ };
double width = Width;
if (double.IsNaN(width))
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs
index 5b3bc2dadf5..690a6c42c0f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DatePicker.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1091,8 +1091,10 @@ private void InitializeCalendar()
private BindingBase GetDatePickerBinding(DependencyProperty property)
{
- Binding binding = new Binding(property.Name);
- binding.Source = this;
+ Binding binding = new Binding(property.Name)
+ {
+ Source = this
+ };
return binding;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs
index 478bb9988ea..55cf0579fdd 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/DocumentViewer.cs
@@ -1691,8 +1691,10 @@ private static void CreateCommandBindings()
//Bound to Ctrl+1.
InputBinding zoom100InputBinding =
new InputBinding(NavigationCommands.Zoom,
- new KeyGesture(Key.D1, ModifierKeys.Control));
- zoom100InputBinding.CommandParameter = 100.0;
+ new KeyGesture(Key.D1, ModifierKeys.Control))
+ {
+ CommandParameter = 100.0
+ };
CommandManager.RegisterClassInputBinding(typeof(DocumentViewer),
zoom100InputBinding);
@@ -1701,8 +1703,10 @@ private static void CreateCommandBindings()
//Bound to Ctrl+3.
InputBinding wholePageInputBinding =
new InputBinding(DocumentViewer.FitToMaxPagesAcrossCommand,
- new KeyGesture(Key.D3, ModifierKeys.Control));
- wholePageInputBinding.CommandParameter = 1;
+ new KeyGesture(Key.D3, ModifierKeys.Control))
+ {
+ CommandParameter = 1
+ };
CommandManager.RegisterClassInputBinding(typeof(DocumentViewer),
wholePageInputBinding);
@@ -1711,8 +1715,10 @@ private static void CreateCommandBindings()
//Bound to Ctrl+4.
InputBinding twoPagesInputBinding =
new InputBinding(DocumentViewer.FitToMaxPagesAcrossCommand,
- new KeyGesture(Key.D4, ModifierKeys.Control));
- twoPagesInputBinding.CommandParameter = 2;
+ new KeyGesture(Key.D4, ModifierKeys.Control))
+ {
+ CommandParameter = 2
+ };
CommandManager.RegisterClassInputBinding(typeof(DocumentViewer),
twoPagesInputBinding);
@@ -2051,8 +2057,10 @@ private void CreateIDocumentScrollInfo()
if (_documentScrollInfo == null)
{
// Construct IDocumentScrollInfo (DocumentGrid).
- _documentScrollInfo = new DocumentGrid();
- _documentScrollInfo.DocumentViewerOwner = this;
+ _documentScrollInfo = new DocumentGrid
+ {
+ DocumentViewerOwner = this
+ };
//If IDocumentScrollInfo is a FrameworkElement we can give it a
//Name for automation.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs
index 3feb40d7cdb..41e5e642d0e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Expander.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -268,9 +268,11 @@ internal override void ChangeVisualState(bool useTransitions)
///
protected virtual void OnExpanded()
{
- RoutedEventArgs args = new RoutedEventArgs();
- args.RoutedEvent = Expander.ExpandedEvent;
- args.Source = this;
+ RoutedEventArgs args = new RoutedEventArgs
+ {
+ RoutedEvent = Expander.ExpandedEvent,
+ Source = this
+ };
RaiseEvent(args);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs
index ecc5835a7eb..58aac318777 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentReader.cs
@@ -1122,9 +1122,11 @@ private void AttachViewer(IFlowDocumentViewer viewer)
///
private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
{
- Binding binding = new Binding(propertyPath);
- binding.Mode = BindingMode.TwoWay;
- binding.Source = this;
+ Binding binding = new Binding(propertyPath)
+ {
+ Mode = BindingMode.TwoWay,
+ Source = this
+ };
fe.SetBinding(dp, binding);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs
index c5d1202c56f..940ddabbd90 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/FlowDocumentScrollViewer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -556,12 +556,14 @@ protected virtual void OnPrintCommand()
// Store the current state of the document in the PrintingState
paginator = ((IDocumentPaginatorSource)Document).DocumentPaginator as FlowDocumentPaginator;
- _printingState = new FlowDocumentPrintingState();
- _printingState.XpsDocumentWriter = docWriter;
- _printingState.PageSize = paginator.PageSize;
- _printingState.PagePadding = Document.PagePadding;
- _printingState.IsSelectionEnabled = IsSelectionEnabled;
- _printingState.ColumnWidth = Document.ColumnWidth;
+ _printingState = new FlowDocumentPrintingState
+ {
+ XpsDocumentWriter = docWriter,
+ PageSize = paginator.PageSize,
+ PagePadding = Document.PagePadding,
+ IsSelectionEnabled = IsSelectionEnabled,
+ ColumnWidth = Document.ColumnWidth
+ };
// Since _printingState value is used to determine CanExecute state, we must invalidate that state.
CommandManager.InvalidateRequerySuggested();
@@ -989,9 +991,11 @@ private void AttachTextEditor()
RenderScope != null &&
Document.StructuralCache.TextContainer.TextSelection == null)
{
- _textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false);
- _textEditor.IsReadOnly = !IsEditingEnabled;
- _textEditor.TextView = textView;
+ _textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false)
+ {
+ IsReadOnly = !IsEditingEnabled,
+ TextView = textView
+ };
}
//restore AnnotationsService state
@@ -1303,9 +1307,11 @@ private IContentHost GetIContentHost()
///
private void CreateTwoWayBinding(FrameworkElement fe, DependencyProperty dp, string propertyPath)
{
- Binding binding = new Binding(propertyPath);
- binding.Mode = BindingMode.TwoWay;
- binding.Source = this;
+ Binding binding = new Binding(propertyPath)
+ {
+ Mode = BindingMode.TwoWay,
+ Source = this
+ };
fe.SetBinding(dp, binding);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs
index 6ec3217cb97..a05e33c5131 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Frame.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1217,17 +1217,18 @@ CustomJournalStateInternal IJournalState.GetJournalState(JournalReason journalRe
return null;
}
- FramePersistState state = new FramePersistState();
-
- // Save a JournalEntry for the current content.
- state.JournalEntry = _navigationService.MakeJournalEntry(JournalReason.NewContentNavigation);
- // The current Content may be null or may not want to be journaled (=> JournalEntry=null).
- // But we still need to save and then restore the NS GUID - there may be other JEs keyed
- // by this GUID value.
- // i. There is a somewhat similar case in ApplicationProxyInternal._GetSaveHistoryBytesDelegate().
- state.NavSvcGuid = _navigationService.GuidId;
-
- state.JournalOwnership = _journalOwnership;
+ FramePersistState state = new FramePersistState
+ {
+ // Save a JournalEntry for the current content.
+ JournalEntry = _navigationService.MakeJournalEntry(JournalReason.NewContentNavigation),
+ // The current Content may be null or may not want to be journaled (=> JournalEntry=null).
+ // But we still need to save and then restore the NS GUID - there may be other JEs keyed
+ // by this GUID value.
+ // i. There is a somewhat similar case in ApplicationProxyInternal._GetSaveHistoryBytesDelegate().
+ NavSvcGuid = _navigationService.GuidId,
+
+ JournalOwnership = _journalOwnership
+ };
if (_ownJournalScope != null)
{
Debug.Assert(_journalOwnership == JournalOwnership.OwnsJournal);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs
index a5bea90178f..3ba0e22e386 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Grid.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -896,19 +896,20 @@ private void ValidateCellsCore()
continue;
}
- CellCache cell = new CellCache();
-
- //
- // read and cache child positioning properties
- //
+ CellCache cell = new CellCache
+ {
+ //
+ // read and cache child positioning properties
+ //
- // read indices from the corresponding properties
- // clamp to value < number_of_columns
- // column >= 0 is guaranteed by property value validation callback
- cell.ColumnIndex = Math.Min(GetColumn(child), DefinitionsU.Length - 1);
- // clamp to value < number_of_rows
- // row >= 0 is guaranteed by property value validation callback
- cell.RowIndex = Math.Min(GetRow(child), DefinitionsV.Length - 1);
+ // read indices from the corresponding properties
+ // clamp to value < number_of_columns
+ // column >= 0 is guaranteed by property value validation callback
+ ColumnIndex = Math.Min(GetColumn(child), DefinitionsU.Length - 1),
+ // clamp to value < number_of_rows
+ // row >= 0 is guaranteed by property value validation callback
+ RowIndex = Math.Min(GetRow(child), DefinitionsV.Length - 1)
+ };
// read span properties
// clamp to not exceed beyond right side of the grid
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs
index c15d32a7baa..c3b8f9aa616 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridSplitter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -389,16 +389,20 @@ public PreviewAdorner(GridSplitter gridSplitter, Style previewStyle)
: base(gridSplitter)
{
// Create a preview control to overlay on top of the GridSplitter
- Control previewControl = new Control();
- previewControl.Style = previewStyle;
- previewControl.IsEnabled = false;
+ Control previewControl = new Control
+ {
+ Style = previewStyle,
+ IsEnabled = false
+ };
// Add a decorator to perform translations
- Translation = new TranslateTransform();
- _decorator = new Decorator();
- _decorator.Child = previewControl;
- _decorator.RenderTransform = Translation;
-
+ Translation = new TranslateTransform();
+ _decorator = new Decorator
+ {
+ Child = previewControl,
+ RenderTransform = Translation
+ };
+
this.AddVisualChild(_decorator);
}
@@ -490,10 +494,12 @@ private void InitializeData(bool ShowsPreview)
if (grid != null)
{
// Setup data used for resizing
- _resizeData = new ResizeData();
- _resizeData.Grid = grid;
- _resizeData.ShowsPreview = ShowsPreview;
- _resizeData.ResizeDirection = GetEffectiveResizeDirection();
+ _resizeData = new ResizeData
+ {
+ Grid = grid,
+ ShowsPreview = ShowsPreview,
+ ResizeDirection = GetEffectiveResizeDirection()
+ };
_resizeData.ResizeBehavior = GetEffectiveResizeBehavior(_resizeData.ResizeDirection);
_resizeData.SplitterLength = Math.Min(ActualWidth, ActualHeight);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs
index ab1cba19494..23fd339741d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridView.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -226,11 +226,12 @@ public GridViewColumnCollection Columns
{
if (_columns == null)
{
- _columns = new GridViewColumnCollection();
-
- // Give the collection a back-link, this is used for the inheritance context
- _columns.Owner = this;
- _columns.InViewMode = true;
+ _columns = new GridViewColumnCollection
+ {
+ // Give the collection a back-link, this is used for the inheritance context
+ Owner = this,
+ InViewMode = true
+ };
}
return _columns;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs
index ebbc6e017bd..4ba31019bb7 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewColumnHeader.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -843,11 +843,12 @@ private void UpdateFloatingHeaderCanvas()
// map the appropriate area(viewbox) in the source header to visual brush
// to avoid a distorded image on the floating header.
Vector offsetVector = VisualTreeHelper.GetOffset(FloatSourceHeader);
- VisualBrush visualBrush = new VisualBrush(FloatSourceHeader);
-
- // set visual brush's mapping
- visualBrush.ViewboxUnits = BrushMappingMode.Absolute;
- visualBrush.Viewbox = new Rect(offsetVector.X, offsetVector.Y, FloatSourceHeader.ActualWidth, FloatSourceHeader.ActualHeight);
+ VisualBrush visualBrush = new VisualBrush(FloatSourceHeader)
+ {
+ // set visual brush's mapping
+ ViewboxUnits = BrushMappingMode.Absolute,
+ Viewbox = new Rect(offsetVector.X, offsetVector.Y, FloatSourceHeader.ActualWidth, FloatSourceHeader.ActualHeight)
+ };
_floatingHeaderCanvas.Background = visualBrush;
FloatSourceHeader = null;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs
index 559d22fda9d..3a24218ba39 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewHeaderRowPresenter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -962,8 +962,10 @@ private GridViewColumnHeader CreateAndInsertHeader(GridViewColumn column, int in
if (headerContainer == null)
{
- headerContainer = new GridViewColumnHeader();
- headerContainer.IsInternalGenerated = true;
+ headerContainer = new GridViewColumnHeader
+ {
+ IsInternalGenerated = true
+ };
}
// Pass column reference to GridViewColumnHeader
@@ -1110,8 +1112,10 @@ private void OnHeaderScrollChanged(object sender, ScrollChangedEventArgs e)
// Create the last padding column header in GridViewHeaderRowPresenter
private void AddPaddingColumnHeader()
{
- GridViewColumnHeader paddingHeader = new GridViewColumnHeader();
- paddingHeader.IsInternalGenerated = true;
+ GridViewColumnHeader paddingHeader = new GridViewColumnHeader
+ {
+ IsInternalGenerated = true
+ };
paddingHeader.SetValue(GridViewColumnHeader.RolePropertyKey, GridViewColumnHeaderRole.Padding);
paddingHeader.Content = null;
@@ -1135,29 +1139,33 @@ private void AddPaddingColumnHeader()
// Create the indicator for column re-ordering
private void AddIndicator()
{
- Separator indicator = new Separator();
- indicator.Visibility = Visibility.Hidden;
+ Separator indicator = new Separator
+ {
+ Visibility = Visibility.Hidden,
- // Indicator style:
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- indicator.Margin = new Thickness(0);
- indicator.Width = 2.0;
+ // Indicator style:
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+
+ Margin = new Thickness(0),
+ Width = 2.0
+ };
FrameworkElementFactory border = new FrameworkElementFactory(typeof(Border));
border.SetValue(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
- ControlTemplate template = new ControlTemplate(typeof(Separator));
- template.VisualTree = border;
+ ControlTemplate template = new ControlTemplate(typeof(Separator))
+ {
+ VisualTree = border
+ };
template.Seal();
indicator.Template = template;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs
index d776aa0be8e..0e92eac9046 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/GridViewRowPresenter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -581,18 +581,21 @@ private FrameworkElement CreateCell(GridViewColumn column)
if ((binding = column.DisplayMemberBinding) != null)
{
- cell = new TextBlock();
-
- // Needed this. Otherwise can't size to content at startup time.
- // The reason is cell.Text is empty after the first round of measure.
- cell.DataContext = Content;
+ cell = new TextBlock
+ {
+ // Needed this. Otherwise can't size to content at startup time.
+ // The reason is cell.Text is empty after the first round of measure.
+ DataContext = Content
+ };
cell.SetBinding(TextBlock.TextProperty, binding);
}
else
{
- ContentPresenter cp = new ContentPresenter();
- cp.Content = Content;
+ ContentPresenter cp = new ContentPresenter
+ {
+ Content = Content
+ };
DataTemplate dt;
DataTemplateSelector dts;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs
index 96af9a7be73..91ceb2d4d93 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/InkCanvas.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -104,22 +104,30 @@ static InkCanvas()
defaultStyle.Setters.Add(new Setter(Stylus.IsTouchFeedbackEnabledProperty, false));
// Set MinWidth to 350d if Width is set to Auto
- Trigger trigger = new Trigger();
- trigger.Property = WidthProperty;
- trigger.Value = double.NaN;
- Setter setter = new Setter();
- setter.Property = MinWidthProperty;
- setter.Value = 350d;
+ Trigger trigger = new Trigger
+ {
+ Property = WidthProperty,
+ Value = double.NaN
+ };
+ Setter setter = new Setter
+ {
+ Property = MinWidthProperty,
+ Value = 350d
+ };
trigger.Setters.Add(setter);
defaultStyle.Triggers.Add(trigger);
// Set MinHeight to 250d if Height is set to Auto
- trigger = new Trigger();
- trigger.Property = HeightProperty;
- trigger.Value = double.NaN;
- setter = new Setter();
- setter.Property = MinHeightProperty;
- setter.Value = 250d;
+ trigger = new Trigger
+ {
+ Property = HeightProperty,
+ Value = double.NaN
+ };
+ setter = new Setter
+ {
+ Property = MinHeightProperty,
+ Value = 250d
+ };
trigger.Setters.Add(setter);
defaultStyle.Triggers.Add(trigger);
@@ -148,8 +156,10 @@ private void Initialize()
//
// instance the DynamicRenderer and add it to the StylusPlugIns
//
- _dynamicRenderer = new DynamicRenderer();
- _dynamicRenderer.Enabled = false;
+ _dynamicRenderer = new DynamicRenderer
+ {
+ Enabled = false
+ };
this.StylusPlugIns.Add(_dynamicRenderer);
//
@@ -632,11 +642,13 @@ internal InkCanvasSelectionAdorner SelectionAdorner
// Bind the InkCanvas.ActiveEditingModeProperty
// to SelectionAdorner.VisibilityProperty.
- Binding activeEditingModeBinding = new Binding();
- activeEditingModeBinding.Path = new PropertyPath(InkCanvas.ActiveEditingModeProperty);
- activeEditingModeBinding.Mode = BindingMode.OneWay;
- activeEditingModeBinding.Source = this;
- activeEditingModeBinding.Converter = new ActiveEditingMode2VisibilityConverter();
+ Binding activeEditingModeBinding = new Binding
+ {
+ Path = new PropertyPath(InkCanvas.ActiveEditingModeProperty),
+ Mode = BindingMode.OneWay,
+ Source = this,
+ Converter = new ActiveEditingMode2VisibilityConverter()
+ };
_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding);
}
@@ -2018,10 +2030,12 @@ protected InkPresenter InkPresenter
_inkPresenter = new InkPresenter();
// Bind the InkPresenter.Strokes to InkCanvas.Strokes
- Binding strokes = new Binding();
- strokes.Path = new PropertyPath(InkCanvas.StrokesProperty);
- strokes.Mode = BindingMode.OneWay;
- strokes.Source = this;
+ Binding strokes = new Binding
+ {
+ Path = new PropertyPath(InkCanvas.StrokesProperty),
+ Mode = BindingMode.OneWay,
+ Source = this
+ };
_inkPresenter.SetBinding(InkPresenter.StrokesProperty, strokes);
}
return _inkPresenter;
@@ -2185,10 +2199,12 @@ internal InkCanvasInnerCanvas InnerCanvas
_innerCanvas = new InkCanvasInnerCanvas(this);
// Bind the inner Canvas' Background to InkCanvas' Background
- Binding background = new Binding();
- background.Path = new PropertyPath(InkCanvas.BackgroundProperty);
- background.Mode = BindingMode.OneWay;
- background.Source = this;
+ Binding background = new Binding
+ {
+ Path = new PropertyPath(InkCanvas.BackgroundProperty),
+ Mode = BindingMode.OneWay,
+ Source = this
+ };
_innerCanvas.SetBinding(Panel.BackgroundProperty, background);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs
index 00671ad061b..de29516b749 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2490,8 +2490,10 @@ void OnItemAdded(object item, int index)
// otherwise, create a new unrealized block
else
{
- uib = new UnrealizedItemBlock();
- uib.ItemCount = 1;
+ uib = new UnrealizedItemBlock
+ {
+ ItemCount = 1
+ };
// split the current realized block, if necessary
RealizedItemBlock rib;
@@ -2707,8 +2709,10 @@ void OnItemMoved(object item, int oldIndex, int newIndex)
// otherwise, create a new unrealized block
else
{
- uib = new UnrealizedItemBlock();
- uib.ItemCount = 1;
+ uib = new UnrealizedItemBlock
+ {
+ ItemCount = 1
+ };
// split the current realized block, if necessary
if (offsetFromBlockStart > 0 && (rib = block as RealizedItemBlock) != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs
index 761c7b4089a..eddda7a4748 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ListBox.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -617,8 +617,10 @@ protected override void OnIsMouseCapturedChanged(DependencyPropertyChangedEventA
Debug.Assert(_autoScrollTimer == null, "IsMouseCaptured went from true to true");
if (_autoScrollTimer == null)
{
- _autoScrollTimer = new DispatcherTimer(DispatcherPriority.SystemIdle);
- _autoScrollTimer.Interval = AutoScrollTimeout;
+ _autoScrollTimer = new DispatcherTimer(DispatcherPriority.SystemIdle)
+ {
+ Interval = AutoScrollTimeout
+ };
_autoScrollTimer.Tick += new EventHandler(OnAutoScrollTimeout);
_autoScrollTimer.Start();
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs
index 97cf59acf26..9cbb51b9e56 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/MenuItem.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2140,10 +2140,12 @@ protected internal override void OnVisualParentChanged(DependencyObject oldParen
// get it to work anyway.
if (Parent != null && newParent != null && Parent != newParent)
{
- Binding binding = new Binding();
- binding.Path = new PropertyPath(DefinitionBase.PrivateSharedSizeScopeProperty);
- binding.Mode = BindingMode.OneWay;
- binding.Source = newParent;
+ Binding binding = new Binding
+ {
+ Path = new PropertyPath(DefinitionBase.PrivateSharedSizeScopeProperty),
+ Mode = BindingMode.OneWay,
+ Source = newParent
+ };
BindingOperations.SetBinding(this, DefinitionBase.PrivateSharedSizeScopeProperty, binding);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs
index 71705186aca..85fc8514e25 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PopupControlService.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -384,8 +384,10 @@ private void BeginShowToolTip(DependencyObject o, ToolTipService.TriggerAction t
}
else
{
- PendingToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal);
- PendingToolTipTimer.Interval = TimeSpan.FromMilliseconds(showDelay);
+ PendingToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal)
+ {
+ Interval = TimeSpan.FromMilliseconds(showDelay)
+ };
PendingToolTipTimer.Tick += new EventHandler((s, e) => { PromotePendingToolTipToCurrent(triggerAction); });
PendingToolTipTimer.Tag = BooleanBoxes.Box(useShortDelay);
PendingToolTipTimer.Start();
@@ -443,10 +445,12 @@ private void ShowToolTip(DependencyObject o, bool fromKeyboard)
_currentToolTip.SetValue(ServiceOwnedProperty, BooleanBoxes.TrueBox);
// Bind the content of the tooltip to the ToolTip attached property
- Binding binding = new Binding();
- binding.Path = new PropertyPath(ToolTipService.ToolTipProperty);
- binding.Mode = BindingMode.OneWay;
- binding.Source = o;
+ Binding binding = new Binding
+ {
+ Path = new PropertyPath(ToolTipService.ToolTipProperty),
+ Mode = BindingMode.OneWay,
+ Source = o
+ };
_currentToolTip.SetBinding(ToolTip.ContentProperty, binding);
}
@@ -474,8 +478,10 @@ private void ShowToolTip(DependencyObject o, bool fromKeyboard)
SetSafeArea(_currentToolTip);
}
- CurrentToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal);
- CurrentToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetShowDuration(o));
+ CurrentToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal)
+ {
+ Interval = TimeSpan.FromMilliseconds(ToolTipService.GetShowDuration(o))
+ };
CurrentToolTipTimer.Tick += new EventHandler(OnShowDurationTimerExpired);
CurrentToolTipTimer.Start();
}
@@ -592,8 +598,10 @@ private void CloseToolTip(ToolTip tooltip)
tooltip.IsOpen = false;
// allow time for the popup's fade-out or slide animation
- _forceCloseTimer = new DispatcherTimer(DispatcherPriority.Normal);
- _forceCloseTimer.Interval = Popup.AnimationDelayTime;
+ _forceCloseTimer = new DispatcherTimer(DispatcherPriority.Normal)
+ {
+ Interval = Popup.AnimationDelayTime
+ };
_forceCloseTimer.Tick += new EventHandler(OnForceClose);
_forceCloseTimer.Tag = tooltip;
_forceCloseTimer.Start();
@@ -604,8 +612,10 @@ private void CloseToolTip(ToolTip tooltip)
_quickShow = (betweenShowDelay > 0);
if (_quickShow)
{
- CurrentToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal);
- CurrentToolTipTimer.Interval = TimeSpan.FromMilliseconds(betweenShowDelay);
+ CurrentToolTipTimer = new DispatcherTimer(DispatcherPriority.Normal)
+ {
+ Interval = TimeSpan.FromMilliseconds(betweenShowDelay)
+ };
CurrentToolTipTimer.Tick += new EventHandler(OnBetweenShowDelay);
CurrentToolTipTimer.Start();
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs
index 05681d4109d..84b513fe09c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/CalendarItem.cs
@@ -961,9 +961,10 @@ private void PopulateGrids()
{
for (int j = 0; j < COLS; j++)
{
- CalendarDayButton dayCell = new CalendarDayButton();
-
- dayCell.Owner = this.Owner;
+ CalendarDayButton dayCell = new CalendarDayButton
+ {
+ Owner = this.Owner
+ };
dayCell.SetValue(Grid.RowProperty, i);
dayCell.SetValue(Grid.ColumnProperty, j);
dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle"));
@@ -987,9 +988,10 @@ private void PopulateGrids()
{
for (int j = 0; j < YEAR_COLS; j++)
{
- monthCell = new CalendarButton();
-
- monthCell.Owner = this.Owner;
+ monthCell = new CalendarButton
+ {
+ Owner = this.Owner
+ };
monthCell.SetValue(Grid.RowProperty, i);
monthCell.SetValue(Grid.ColumnProperty, j);
monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
@@ -1403,8 +1405,10 @@ private int GetNumberOfDisplayedDaysFromPreviousMonth(DateTime firstOfMonth)
///
private BindingBase GetOwnerBinding(string propertyName)
{
- Binding result = new Binding(propertyName);
- result.Source = this.Owner;
+ Binding result = new Binding(propertyName)
+ {
+ Source = this.Owner
+ };
return result;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs
index 22d9b6291a4..c99c0f9aca6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridCellsPresenter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -478,8 +478,10 @@ protected override void OnRender(DrawingContext drawingContext)
if (DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true))
{
double thickness = dataGrid.HorizontalGridLineThickness;
- Rect rect = new Rect(new Size(RenderSize.Width, thickness));
- rect.Y = RenderSize.Height - thickness;
+ Rect rect = new Rect(new Size(RenderSize.Width, thickness))
+ {
+ Y = RenderSize.Height - thickness
+ };
drawingContext.DrawRectangle(dataGrid.HorizontalGridLinesBrush, null, rect);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs
index b38d3c6087b..26b12704dba 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridColumnHeadersPresenter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -751,8 +751,10 @@ private Control CreateColumnHeaderDragIndicator()
{
Debug.Assert(_draggingSrcColumnHeader != null, "Dragging header is null");
- DataGridColumnFloatingHeader floatingHeader = new DataGridColumnFloatingHeader();
- floatingHeader.ReferenceHeader = _draggingSrcColumnHeader;
+ DataGridColumnFloatingHeader floatingHeader = new DataGridColumnFloatingHeader
+ {
+ ReferenceHeader = _draggingSrcColumnHeader
+ };
return floatingHeader;
}
@@ -782,8 +784,10 @@ private Control CreateColumnHeaderDropIndicator()
{
Debug.Assert(_draggingSrcColumnHeader != null, "Dragging header is null");
- DataGridColumnDropSeparator indicator = new DataGridColumnDropSeparator();
- indicator.ReferenceHeader = _draggingSrcColumnHeader;
+ DataGridColumnDropSeparator indicator = new DataGridColumnDropSeparator
+ {
+ ReferenceHeader = _draggingSrcColumnHeader
+ };
return indicator;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs
index 2359d66a8e2..939ea429282 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DataGridDetailsPresenter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -288,8 +288,10 @@ protected override void OnRender(DrawingContext drawingContext)
DataGridHelper.IsGridLineVisible(dataGrid, /*isHorizontal = */ true))
{
double thickness = dataGrid.HorizontalGridLineThickness;
- Rect rect = new Rect(new Size(RenderSize.Width, thickness));
- rect.Y = RenderSize.Height - thickness;
+ Rect rect = new Rect(new Size(RenderSize.Width, thickness))
+ {
+ Y = RenderSize.Height - thickness
+ };
drawingContext.DrawRectangle(dataGrid.HorizontalGridLinesBrush, null, rect);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs
index 4384de82715..019fb1d8442 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DatePickerTextBox.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -88,8 +88,10 @@ public override void OnApplyTemplate()
// mimc SL. Hence setting the binding in code rather than in control template.
if (elementContent != null)
{
- Binding watermarkBinding = new Binding("Watermark");
- watermarkBinding.Source = this;
+ Binding watermarkBinding = new Binding("Watermark")
+ {
+ Source = this
+ };
elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs
index d95c6e90848..92a182a4f57 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentPageView.cs
@@ -237,14 +237,18 @@ protected override sealed Size MeasureOverride(Size availableSize)
pageSize = _documentPaginator.PageSize;
if (Double.IsInfinity(availableSize.Width))
{
- newPageSize = new Size();
- newPageSize.Height = availableSize.Height / _pageZoom;
+ newPageSize = new Size
+ {
+ Height = availableSize.Height / _pageZoom
+ };
newPageSize.Width = newPageSize.Height * (pageSize.Width / pageSize.Height); // Keep aspect ratio.
}
else if (Double.IsInfinity(availableSize.Height))
{
- newPageSize = new Size();
- newPageSize.Width = availableSize.Width / _pageZoom;
+ newPageSize = new Size
+ {
+ Width = availableSize.Width / _pageZoom
+ };
newPageSize.Height = newPageSize.Width * (pageSize.Height / pageSize.Width); // Keep aspect ratio.
}
else
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs
index db8160a70fe..0f4a0ecb710 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/DocumentViewerBase.cs
@@ -1034,9 +1034,11 @@ private void AttachTextEditor()
if (textContainer != null && this.TextEditorRenderScope != null && textContainer.TextSelection == null)
{
_textView = new MultiPageTextView(this, this.TextEditorRenderScope, textContainer);
- _textEditor = new TextEditor(textContainer, this, false);
- _textEditor.IsReadOnly = !IsEditingEnabled;
- _textEditor.TextView = _textView;
+ _textEditor = new TextEditor(textContainer, this, false)
+ {
+ IsReadOnly = !IsEditingEnabled,
+ TextView = _textView
+ };
textContainer.TextView = _textView;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs
index 82f6cfbd3d0..1852273d7fa 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Popup.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -904,9 +904,11 @@ internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool
// lookups can work. The Popup for tooltip and context menu isn't in the tree
// so FE relies on GetUIParentCore to return the placement target as the
// effective logical parent
- Binding binding = new Binding("PlacementTarget");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ Binding binding = new Binding("PlacementTarget")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(PlacementTargetProperty, binding);
// NOTE: this will hook up child as a logical child of Popup.
@@ -916,48 +918,64 @@ internal static void CreateRootPopupInternal(Popup popup, UIElement child, bool
// the tree into the child (unless at a later date an alternate method has been created).
popup.Child = child;
- binding = new Binding("VerticalOffset");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("VerticalOffset")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(VerticalOffsetProperty, binding);
- binding = new Binding("HorizontalOffset");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("HorizontalOffset")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(HorizontalOffsetProperty, binding);
- binding = new Binding("PlacementRectangle");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("PlacementRectangle")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(PlacementRectangleProperty, binding);
- binding = new Binding("Placement");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("Placement")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(PlacementProperty, binding);
- binding = new Binding("StaysOpen");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("StaysOpen")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(StaysOpenProperty, binding);
- binding = new Binding("CustomPopupPlacementCallback");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("CustomPopupPlacementCallback")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(CustomPopupPlacementCallbackProperty, binding);
if (bindTreatMousePlacementAsBottomProperty)
{
- binding = new Binding("FromKeyboard");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("FromKeyboard")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(TreatMousePlacementAsBottomProperty, binding);
}
// Note: IsOpen should always be last in this method
- binding = new Binding("IsOpen");
- binding.Mode = BindingMode.OneWay;
- binding.Source = child;
+ binding = new Binding("IsOpen")
+ {
+ Mode = BindingMode.OneWay,
+ Source = child
+ };
popup.SetBinding(IsOpenProperty, binding);
}
@@ -1298,8 +1316,10 @@ void IAddChild.AddChild(Object value)
///
void IAddChild.AddText(string text)
{
- TextBlock lbl = new TextBlock();
- lbl.Text = text;
+ TextBlock lbl = new TextBlock
+ {
+ Text = text
+ };
Child = lbl;
}
@@ -2661,9 +2681,10 @@ private Rect GetScreenBounds(Rect boundingBox, Point p)
if (monitor != IntPtr.Zero)
{
- NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX();
-
- monitorInfo.cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX));
+ NativeMethods.MONITORINFOEX monitorInfo = new NativeMethods.MONITORINFOEX
+ {
+ cbSize = Marshal.SizeOf(typeof(NativeMethods.MONITORINFOEX))
+ };
SafeNativeMethods.GetMonitorInfo(new HandleRef(null, monitor), monitorInfo);
//If this is a pop up for a menu or ToolTip then respect the work area if opening in the work area.
@@ -3326,10 +3347,12 @@ internal void BuildWindow(int x, int y, Visual placementTarget,
}
// set window parameters
- HwndSourceParameters param = new HwndSourceParameters(String.Empty);
- param.WindowClassStyle = classStyle;
- param.WindowStyle = style;
- param.ExtendedWindowStyle = styleEx;
+ HwndSourceParameters param = new HwndSourceParameters(String.Empty)
+ {
+ WindowClassStyle = classStyle,
+ WindowStyle = style,
+ ExtendedWindowStyle = styleEx
+ };
param.SetPosition(x, y);
if (IsChildPopup)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs
index 10bcc4b1a26..fd4d51488ed 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/PopupRoot.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -247,34 +247,46 @@ protected override Size ArrangeOverride(Size arrangeSize)
/// The parent Popup.
internal void SetupLayoutBindings(Popup popup)
{
- Binding binding = new Binding("Width");
- binding.Mode = BindingMode.OneWay;
- binding.Source = popup;
+ Binding binding = new Binding("Width")
+ {
+ Mode = BindingMode.OneWay,
+ Source = popup
+ };
_adornerDecorator.SetBinding(WidthProperty, binding);
- binding = new Binding("Height");
- binding.Mode = BindingMode.OneWay;
- binding.Source = popup;
+ binding = new Binding("Height")
+ {
+ Mode = BindingMode.OneWay,
+ Source = popup
+ };
_adornerDecorator.SetBinding(HeightProperty, binding);
- binding = new Binding("MinWidth");
- binding.Mode = BindingMode.OneWay;
- binding.Source = popup;
+ binding = new Binding("MinWidth")
+ {
+ Mode = BindingMode.OneWay,
+ Source = popup
+ };
_adornerDecorator.SetBinding(MinWidthProperty, binding);
- binding = new Binding("MinHeight");
- binding.Mode = BindingMode.OneWay;
- binding.Source = popup;
+ binding = new Binding("MinHeight")
+ {
+ Mode = BindingMode.OneWay,
+ Source = popup
+ };
_adornerDecorator.SetBinding(MinHeightProperty, binding);
- binding = new Binding("MaxWidth");
- binding.Mode = BindingMode.OneWay;
- binding.Source = popup;
+ binding = new Binding("MaxWidth")
+ {
+ Mode = BindingMode.OneWay,
+ Source = popup
+ };
_adornerDecorator.SetBinding(MaxWidthProperty, binding);
- binding = new Binding("MaxHeight");
- binding.Mode = BindingMode.OneWay;
- binding.Source = popup;
+ binding = new Binding("MaxHeight")
+ {
+ Mode = BindingMode.OneWay,
+ Source = popup
+ };
_adornerDecorator.SetBinding(MaxHeightProperty, binding);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs
index 54078514bb5..44c42937d62 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/RangeBase.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -243,8 +243,10 @@ private static void OnValueChanged(DependencyObject d, DependencyPropertyChanged
/// The new value of the Value property.
protected virtual void OnValueChanged(double oldValue, double newValue)
{
- RoutedPropertyChangedEventArgs args = new RoutedPropertyChangedEventArgs(oldValue, newValue);
- args.RoutedEvent=RangeBase.ValueChangedEvent;
+ RoutedPropertyChangedEventArgs args = new RoutedPropertyChangedEventArgs(oldValue, newValue)
+ {
+ RoutedEvent = RangeBase.ValueChangedEvent
+ };
RaiseEvent(args);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs
index c4402b425c7..5f4a8e330ea 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ScrollBar.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -462,8 +462,10 @@ internal void ScrollToLastMousePoint()
internal void RaiseScrollEvent(ScrollEventType scrollEventType)
{
- ScrollEventArgs newEvent = new ScrollEventArgs(scrollEventType, Value);
- newEvent.Source=this;
+ ScrollEventArgs newEvent = new ScrollEventArgs(scrollEventType, Value)
+ {
+ Source = this
+ };
RaiseEvent(newEvent);
}
@@ -881,15 +883,19 @@ private static ContextMenu HorizontalContextMenuRTL
private static MenuItem CreateMenuItem(string name, string automationId, RoutedCommand command)
{
- MenuItem menuItem = new MenuItem();
- menuItem.Header = SR.GetResourceString(name);
- menuItem.Command = command;
+ MenuItem menuItem = new MenuItem
+ {
+ Header = SR.GetResourceString(name),
+ Command = command
+ };
AutomationProperties.SetAutomationId(menuItem, automationId);
- Binding binding = new Binding();
- binding.Path = new PropertyPath(ContextMenu.PlacementTargetProperty);
- binding.Mode = BindingMode.OneWay;
- binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
+ Binding binding = new Binding
+ {
+ Path = new PropertyPath(ContextMenu.PlacementTargetProperty),
+ Mode = BindingMode.OneWay,
+ RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1)
+ };
menuItem.SetBinding(MenuItem.CommandTargetProperty, binding);
return menuItem;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs
index dd9c56b17d1..30fea12be3a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/SelectiveScrollingGrid.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -75,16 +75,20 @@ private static void OnSelectiveScrollingOrientationChanged(DependencyObject d, D
// Add binding to XProperty of transform if orientation is not horizontal
if (orientation != SelectiveScrollingOrientation.Horizontal)
{
- Binding horizontalBinding = new Binding("ContentHorizontalOffset");
- horizontalBinding.Source = scrollViewer;
+ Binding horizontalBinding = new Binding("ContentHorizontalOffset")
+ {
+ Source = scrollViewer
+ };
BindingOperations.SetBinding(translateTransform, TranslateTransform.XProperty, horizontalBinding);
}
// Add binding to YProperty of transfrom if orientation is not vertical
if (orientation != SelectiveScrollingOrientation.Vertical)
{
- Binding verticalBinding = new Binding("ContentVerticalOffset");
- verticalBinding.Source = scrollViewer;
+ Binding verticalBinding = new Binding("ContentVerticalOffset")
+ {
+ Source = scrollViewer
+ };
BindingOperations.SetBinding(translateTransform, TranslateTransform.YProperty, verticalBinding);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs
index 28b1e971527..84e7e52ea67 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Selector.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -746,10 +746,11 @@ private BindingExpression PrepareItemValueBinding(object item)
if (bindingExpr == null)
{
// create the binding
- binding = new Binding();
-
- // Set source to null so binding does not use ambient DataContext
- binding.Source = null;
+ binding = new Binding
+ {
+ // Set source to null so binding does not use ambient DataContext
+ Source = null
+ };
if (useXml)
{
@@ -1767,9 +1768,10 @@ internal void UpdatePublicSelectionProperties()
///
private void InvokeSelectionChanged(List unselectedInfos, List selectedInfos)
{
- SelectionChangedEventArgs selectionChanged = new SelectionChangedEventArgs(unselectedInfos, selectedInfos);
-
- selectionChanged.Source=this;
+ SelectionChangedEventArgs selectionChanged = new SelectionChangedEventArgs(unselectedInfos, selectedInfos)
+ {
+ Source = this
+ };
OnSelectionChanged(selectionChanged);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs
index 9c22125cd9e..3df14f1523c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TabPanel.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -200,9 +200,11 @@ protected override Geometry GetLayoutClip(Size layoutSlotSize)
private Size GetDesiredSizeWithoutMargin(UIElement element)
{
Thickness margin = (Thickness)element.GetValue(MarginProperty);
- Size desiredSizeWithoutMargin = new Size();
- desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom);
- desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right);
+ Size desiredSizeWithoutMargin = new Size
+ {
+ Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom),
+ Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right)
+ };
return desiredSizeWithoutMargin;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs
index 0ffd61dd279..9b8bd4919cf 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TextBoxBase.cs
@@ -105,8 +105,10 @@ public void AppendText(string textData)
return;
}
- TextRange range = new TextRange(_textContainer.End, _textContainer.End);
- range.Text = textData; // Note that in RichTextBox this assignment will convert NewLines into Paragraphs
+ TextRange range = new TextRange(_textContainer.End, _textContainer.End)
+ {
+ Text = textData // Note that in RichTextBox this assignment will convert NewLines into Paragraphs
+ };
}
///
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs
index 48b1c4d80c6..59c50dd102d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/TickBar.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -661,9 +661,11 @@ private void BindToTemplatedParent(DependencyProperty target, DependencyProperty
{
if (!HasNonDefaultValue(target))
{
- Binding binding = new Binding();
- binding.RelativeSource = RelativeSource.TemplatedParent;
- binding.Path = new PropertyPath(source);
+ Binding binding = new Binding
+ {
+ RelativeSource = RelativeSource.TemplatedParent,
+ Path = new PropertyPath(source)
+ };
SetBinding(target, binding);
}
}
@@ -690,8 +692,10 @@ internal override void OnPreApplyTemplate()
if (!HasNonDefaultValue(ReservedSpaceProperty) && parent.Track != null)
{
- Binding binding = new Binding();
- binding.Source = parent.Track.Thumb;
+ Binding binding = new Binding
+ {
+ Source = parent.Track.Thumb
+ };
if (parent.Orientation == Orientation.Horizontal)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs
index 798216911d1..186a6b99c56 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/ToolBarPanel.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -327,9 +327,11 @@ internal override void OnPreApplyTemplate()
if (TemplatedParent is ToolBar && !HasNonDefaultValue(OrientationProperty))
{
- Binding binding = new Binding();
- binding.RelativeSource = RelativeSource.TemplatedParent;
- binding.Path = new PropertyPath(ToolBar.OrientationProperty);
+ Binding binding = new Binding
+ {
+ RelativeSource = RelativeSource.TemplatedParent,
+ Path = new PropertyPath(ToolBar.OrientationProperty)
+ };
SetBinding(OrientationProperty, binding);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs
index 4a6d3a01e2b..2f72f98960c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Primitives/Track.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -683,9 +683,11 @@ private void BindToTemplatedParent(DependencyProperty target, DependencyProperty
{
if (!HasNonDefaultValue(target))
{
- Binding binding = new Binding();
- binding.RelativeSource = RelativeSource.TemplatedParent;
- binding.Path = new PropertyPath(source);
+ Binding binding = new Binding
+ {
+ RelativeSource = RelativeSource.TemplatedParent,
+ Path = new PropertyPath(source)
+ };
SetBinding(target, binding);
}
}
@@ -695,9 +697,11 @@ private void BindChildToTemplatedParent(FrameworkElement element, DependencyProp
{
if (element != null && !element.HasNonDefaultValue(target))
{
- Binding binding = new Binding();
- binding.Source = this.TemplatedParent;
- binding.Path = new PropertyPath(source);
+ Binding binding = new Binding
+ {
+ Source = this.TemplatedParent,
+ Path = new PropertyPath(source)
+ };
element.SetBinding(target, binding);
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs
index c6dcd83b70e..d5a4d1a4afa 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/PrintDialog.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -288,14 +288,15 @@ public PrintTicket PrintTicket
ShowDialog()
{
- Win32PrintDialog dlg = new Win32PrintDialog();
-
- //
- // Setup the old values if any exist.
- //
- dlg.PrintTicket = _printTicket;
- dlg.PrintQueue = _printQueue;
- dlg.MinPage = Math.Max(1, Math.Min(_minPage, _maxPage));
+ Win32PrintDialog dlg = new Win32PrintDialog
+ {
+ //
+ // Setup the old values if any exist.
+ //
+ PrintTicket = _printTicket,
+ PrintQueue = _printQueue,
+ MinPage = Math.Max(1, Math.Min(_minPage, _maxPage))
+ };
dlg.MaxPage = Math.Max(dlg.MinPage, Math.Max(_minPage, _maxPage));
dlg.PageRangeEnabled = _userPageRangeEnabled;
dlg.SelectedPagesEnabled = _selectedPagesEnabled;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs
index 994cfa55330..338f5ead6d3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ProgressBar.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -190,11 +190,12 @@ private void SetProgressBarGlowElementBrush()
{
Color color = ((SolidColorBrush)this.Foreground).Color;
//Create the gradient
- LinearGradientBrush b = new LinearGradientBrush();
-
- b.StartPoint = new Point(0,0);
- b.EndPoint = new Point(1,0);
-
+ LinearGradientBrush b = new LinearGradientBrush
+ {
+ StartPoint = new Point(0, 0),
+ EndPoint = new Point(1, 0)
+ };
+
b.GradientStops.Add(new GradientStop(Colors.Transparent, 0.0));
b.GradientStops.Add(new GradientStop(color, 0.4));
b.GradientStops.Add(new GradientStop(color, 0.6));
@@ -204,9 +205,11 @@ private void SetProgressBarGlowElementBrush()
else
{
// This is not a solid color brush so we will need an opacity mask.
- LinearGradientBrush mask= new LinearGradientBrush();
- mask.StartPoint = new Point(0,0);
- mask.EndPoint = new Point(1,0);
+ LinearGradientBrush mask = new LinearGradientBrush
+ {
+ StartPoint = new Point(0, 0),
+ EndPoint = new Point(1, 0)
+ };
mask.GradientStops.Add(new GradientStop(Colors.Transparent, 0.0));
mask.GradientStops.Add(new GradientStop(Colors.Black, 0.4));
mask.GradientStops.Add(new GradientStop(Colors.Black, 0.6));
@@ -244,12 +247,13 @@ private void UpdateAnimation()
startTime = TimeSpan.Zero;
}
- ThicknessAnimationUsingKeyFrames animation = new ThicknessAnimationUsingKeyFrames();
-
- animation.BeginTime = startTime;
- animation.Duration = new Duration(translateTime + pauseTime);
- animation.RepeatBehavior = RepeatBehavior.Forever;
-
+ ThicknessAnimationUsingKeyFrames animation = new ThicknessAnimationUsingKeyFrames
+ {
+ BeginTime = startTime,
+ Duration = new Duration(translateTime + pauseTime),
+ RepeatBehavior = RepeatBehavior.Forever
+ };
+
//Start with the glow hidden on the left.
animation.KeyFrames.Add(new LinearThicknessKeyFrame(new Thickness(startPos,0,0,0), TimeSpan.FromSeconds(0)));
//Move to the glow hidden on the right.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs
index a574e738b1c..3d7b3d6fb70 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/RichTextBox.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -314,8 +314,10 @@ protected override Size MeasureOverride(Size constraint)
// Allocates the initial render scope for this control.
internal override FrameworkElement CreateRenderScope()
{
- FlowDocumentView renderScope = new FlowDocumentView();
- renderScope.Document = this.Document;
+ FlowDocumentView renderScope = new FlowDocumentView
+ {
+ Document = this.Document
+ };
// Set a margin so that the BiDi Or Italic caret has room to render at the edges of content.
// Otherwise, anti-aliasing or italic causes the caret to be partially clipped.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs
index 46ae5bbb35f..acacc5d81e5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ScrollViewer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1330,9 +1330,11 @@ private void BindToTemplatedParent(DependencyProperty property)
{
if (!HasNonDefaultValue(property))
{
- Binding binding = new Binding();
- binding.RelativeSource = RelativeSource.TemplatedParent;
- binding.Path = new PropertyPath(property);
+ Binding binding = new Binding
+ {
+ RelativeSource = RelativeSource.TemplatedParent,
+ Path = new PropertyPath(property)
+ };
SetBinding(property, binding);
}
}
@@ -2402,9 +2404,11 @@ private void OnLayoutUpdated(object sender, EventArgs e)
new Size(ExtentWidth, ExtentHeight),
new Vector(ExtentWidth - oldExtentWidth, ExtentHeight - oldExtentHeight),
new Size(ViewportWidth, ViewportHeight),
- new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight));
- args.RoutedEvent = ScrollChangedEvent;
- args.Source = this;
+ new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight))
+ {
+ RoutedEvent = ScrollChangedEvent,
+ Source = this
+ };
try
{
@@ -2677,12 +2681,16 @@ private static ControlTemplate CreateDefaultControlTemplate()
// Bind Actual HorizontalOffset to HorizontalScrollBar.Value
// Bind Actual VerticalOffset to VerticalScrollbar.Value
- Binding bindingHorizontalOffset = new Binding("HorizontalOffset");
- bindingHorizontalOffset.Mode = BindingMode.OneWay;
- bindingHorizontalOffset.RelativeSource = RelativeSource.TemplatedParent;
- Binding bindingVerticalOffset = new Binding("VerticalOffset");
- bindingVerticalOffset.Mode = BindingMode.OneWay;
- bindingVerticalOffset.RelativeSource = RelativeSource.TemplatedParent;
+ Binding bindingHorizontalOffset = new Binding("HorizontalOffset")
+ {
+ Mode = BindingMode.OneWay,
+ RelativeSource = RelativeSource.TemplatedParent
+ };
+ Binding bindingVerticalOffset = new Binding("VerticalOffset")
+ {
+ Mode = BindingMode.OneWay,
+ RelativeSource = RelativeSource.TemplatedParent
+ };
grid.SetValue(Grid.BackgroundProperty, new TemplateBindingExtension(BackgroundProperty));
grid.AppendChild(gridColumn1);
@@ -2731,8 +2739,10 @@ private static ControlTemplate CreateDefaultControlTemplate()
corner.SetValue(Grid.RowProperty, 1);
corner.SetResourceReference(Rectangle.FillProperty, SystemColors.ControlBrushKey);
- template = new ControlTemplate(typeof(ScrollViewer));
- template.VisualTree = grid;
+ template = new ControlTemplate(typeof(ScrollViewer))
+ {
+ VisualTree = grid
+ };
template.Seal();
return (template);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs
index 6b801d3b099..cd762776334 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/SinglePageViewer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -665,11 +665,13 @@ protected override void OnPrintCommand()
{
// Store the current state of the document in the PrintingState
paginator = ((IDocumentPaginatorSource)document).DocumentPaginator as FlowDocumentPaginator;
- _printingState = new FlowDocumentPrintingState();
- _printingState.XpsDocumentWriter = docWriter;
- _printingState.PageSize = paginator.PageSize;
- _printingState.PagePadding = document.PagePadding;
- _printingState.IsSelectionEnabled = IsSelectionEnabled;
+ _printingState = new FlowDocumentPrintingState
+ {
+ XpsDocumentWriter = docWriter,
+ PageSize = paginator.PageSize,
+ PagePadding = document.PagePadding,
+ IsSelectionEnabled = IsSelectionEnabled
+ };
// Since _printingState value is used to determine CanExecute state, we must invalidate that state.
CommandManager.InvalidateRequerySuggested();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs
index 1aa5dccf1f3..ab9ac3ce50d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/Slider.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -836,10 +836,12 @@ protected virtual void OnThumbDragStarted(DragStartedEventArgs e)
if (_autoToolTip == null)
{
- _autoToolTip = new ToolTip();
- _autoToolTip.Placement = PlacementMode.Custom;
- _autoToolTip.PlacementTarget = thumb;
- _autoToolTip.CustomPopupPlacementCallback = new CustomPopupPlacementCallback(this.AutoToolTipCustomPlacementCallback);
+ _autoToolTip = new ToolTip
+ {
+ Placement = PlacementMode.Custom,
+ PlacementTarget = thumb,
+ CustomPopupPlacementCallback = new CustomPopupPlacementCallback(this.AutoToolTipCustomPlacementCallback)
+ };
}
thumb.ToolTip = _autoToolTip;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs
index ca3ea271756..132b83c2c0f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/StickyNote.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1467,20 +1467,26 @@ private void BindContentControlProperties()
// both StickyNoteControl.InkEditingMode and StickyNoteControl.IsKeyboardFocusWithin
// If StickyNoteControl.IsKeyboardFocusWithin is false, the InkCanvas.EditingMode should be none.
// Otherwise InkCanvas.EditingMode is same as the StickyNoteControl.InkEditingMode.
- MultiBinding inkCanvasEditingMode = new MultiBinding();
- inkCanvasEditingMode.Mode = BindingMode.TwoWay;
- inkCanvasEditingMode.Converter = new InkEditingModeIsKeyboardFocusWithin2EditingMode();
+ MultiBinding inkCanvasEditingMode = new MultiBinding
+ {
+ Mode = BindingMode.TwoWay,
+ Converter = new InkEditingModeIsKeyboardFocusWithin2EditingMode()
+ };
- Binding stickyNoteInkEditingMode = new Binding();
- stickyNoteInkEditingMode.Mode = BindingMode.TwoWay;
- stickyNoteInkEditingMode.Path = new PropertyPath(StickyNoteControl.InkEditingModeProperty);
- stickyNoteInkEditingMode.Source = this;
+ Binding stickyNoteInkEditingMode = new Binding
+ {
+ Mode = BindingMode.TwoWay,
+ Path = new PropertyPath(StickyNoteControl.InkEditingModeProperty),
+ Source = this
+ };
inkCanvasEditingMode.Bindings.Add(stickyNoteInkEditingMode);
- Binding stickyNoteIsKeyboardFocusWithin = new Binding();
- stickyNoteIsKeyboardFocusWithin.Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty);
- stickyNoteIsKeyboardFocusWithin.Source = this;
+ Binding stickyNoteIsKeyboardFocusWithin = new Binding
+ {
+ Path = new PropertyPath(UIElement.IsKeyboardFocusWithinProperty),
+ Source = this
+ };
inkCanvasEditingMode.Bindings.Add(stickyNoteIsKeyboardFocusWithin);
@@ -1633,11 +1639,13 @@ private void SetupMenu()
if (inkMenuItem != null)
{
// Bind the EditingMode to item's IsChecked DP.
- Binding checkedBind = new Binding("InkEditingMode");
- checkedBind.Mode = BindingMode.OneWay;
- checkedBind.RelativeSource = RelativeSource.TemplatedParent;
- checkedBind.Converter = new InkEditingModeConverter();
- checkedBind.ConverterParameter = InkCanvasEditingMode.Ink;
+ Binding checkedBind = new Binding("InkEditingMode")
+ {
+ Mode = BindingMode.OneWay,
+ RelativeSource = RelativeSource.TemplatedParent,
+ Converter = new InkEditingModeConverter(),
+ ConverterParameter = InkCanvasEditingMode.Ink
+ };
inkMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind);
}
@@ -1645,11 +1653,13 @@ private void SetupMenu()
if (selectMenuItem != null)
{
// Bind the EditingMode to item's IsChecked DP.
- Binding checkedBind = new Binding("InkEditingMode");
- checkedBind.Mode = BindingMode.OneWay;
- checkedBind.RelativeSource = RelativeSource.TemplatedParent;
- checkedBind.Converter = new InkEditingModeConverter();
- checkedBind.ConverterParameter = InkCanvasEditingMode.Select;
+ Binding checkedBind = new Binding("InkEditingMode")
+ {
+ Mode = BindingMode.OneWay,
+ RelativeSource = RelativeSource.TemplatedParent,
+ Converter = new InkEditingModeConverter(),
+ ConverterParameter = InkCanvasEditingMode.Select
+ };
selectMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind);
}
@@ -1657,11 +1667,13 @@ private void SetupMenu()
if (eraseMenuItem != null)
{
// Bind the EditingMode to item's IsChecked DP.
- Binding checkedBind = new Binding("InkEditingMode");
- checkedBind.Mode = BindingMode.OneWay;
- checkedBind.RelativeSource = RelativeSource.TemplatedParent;
- checkedBind.Converter = new InkEditingModeConverter();
- checkedBind.ConverterParameter = InkCanvasEditingMode.EraseByStroke;
+ Binding checkedBind = new Binding("InkEditingMode")
+ {
+ Mode = BindingMode.OneWay,
+ RelativeSource = RelativeSource.TemplatedParent,
+ Converter = new InkEditingModeConverter(),
+ ConverterParameter = InkCanvasEditingMode.EraseByStroke
+ };
eraseMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs
index 048b3bb90a5..4c44a84e21b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TabItem.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -111,8 +111,10 @@ private static void OnIsSelectedChanged(DependencyObject d, DependencyPropertyCh
// Because TabItem use negative margins some TabItems overlap which would changes the directional navigation if we don't reduce the bounding box
if (isSelected)
{
- Binding binding = new Binding("Margin");
- binding.Source = tabItem;
+ Binding binding = new Binding("Margin")
+ {
+ Source = tabItem
+ };
BindingOperations.SetBinding(tabItem, KeyboardNavigation.DirectionalNavigationMarginProperty, binding);
}
else
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs
index 248f183287d..259f794b8f2 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBlock.cs
@@ -3022,9 +3022,11 @@ private void EnsureTextBlockCache()
{
if (null == _textBlockCache)
{
- _textBlockCache = new TextBlockCache();
- _textBlockCache._lineProperties = GetLineProperties();
- _textBlockCache._textRunCache = new TextRunCache();
+ _textBlockCache = new TextBlockCache
+ {
+ _lineProperties = GetLineProperties(),
+ _textRunCache = new TextRunCache()
+ };
}
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs
index fec869ef9bd..c623c2cfa2d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextBox.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -86,8 +86,10 @@ public TextBox() : base()
TextEditor.RegisterCommandHandlers(typeof(TextBox), /*acceptsRichContent:*/false, /*readOnly*/false, /*registerEventListeners*/false);
// Create TextContainer and TextEditor associated with it
- TextContainer container = new TextContainer(this, true /* plainTextOnly */);
- container.CollectTextChanges = true;
+ TextContainer container = new TextContainer(this, true /* plainTextOnly */)
+ {
+ CollectTextChanges = true
+ };
InitializeTextContainer(container);
// TextBox only accepts plain text, so change TextEditor's default to that.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs
index 4e9e92ebe98..433a1770864 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ToolTip.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -500,13 +500,14 @@ private void HookupParentPopup()
{
Debug.Assert(_parentPopup == null, "_parentPopup should be null");
- _parentPopup = new Popup();
-
- _parentPopup.AllowsTransparency = true;
+ _parentPopup = new Popup
+ {
+ AllowsTransparency = true,
- // When StaysOpen is true (default), make the popup window WS_EX_Transparent
- // to allow mouse input to go through the tooltip
- _parentPopup.HitTestable = !StaysOpen;
+ // When StaysOpen is true (default), make the popup window WS_EX_Transparent
+ // to allow mouse input to go through the tooltip
+ HitTestable = !StaysOpen
+ };
// Coerce HasDropShadow property in case popup can't be transparent
CoerceValue(HasDropShadowProperty);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs
index 0ca1fa64b57..44456352f91 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TreeView.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -314,8 +314,10 @@ private BindingExpression PrepareSelectedValuePathBindingExpression(object item)
if (bindingExpr == null)
{
// create the binding
- binding = new Binding();
- binding.Source = null;
+ binding = new Binding
+ {
+ Source = null
+ };
if (useXml)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs
index 0a802b95c6f..cafa43aecd8 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ViewPort3D.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -52,16 +52,17 @@ static Viewport3D()
///
public Viewport3D()
{
- _viewport3DVisual = new Viewport3DVisual();
-
- // The value for the Camera property and the Children property on Viewport3D
- // will also be the value for these properties on the Viewport3DVisual we
- // create as an internal Visual child. This then will cause these values to
- // be shared, which will break property inheritance, dynamic resource references
- // and databinding. To prevent this, we mark the internal
- // Viewport3DVisual.CanBeInheritanceContext to be false, allowing Camera and
- // Children to only pick up value context from the Viewport3D (this).
- _viewport3DVisual.CanBeInheritanceContext = false;
+ _viewport3DVisual = new Viewport3DVisual
+ {
+ // The value for the Camera property and the Children property on Viewport3D
+ // will also be the value for these properties on the Viewport3DVisual we
+ // create as an internal Visual child. This then will cause these values to
+ // be shared, which will break property inheritance, dynamic resource references
+ // and databinding. To prevent this, we mark the internal
+ // Viewport3DVisual.CanBeInheritanceContext to be false, allowing Camera and
+ // Children to only pick up value context from the Viewport3D (this).
+ CanBeInheritanceContext = false
+ };
this.AddVisualChild(_viewport3DVisual);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs
index 4fcd3453d05..dbedb26fe56 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/VirtualizingStackPanel.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2091,10 +2091,12 @@ private Size RealMeasureOverride(Size constraint)
// when IsScrollActive is set to false (asynchronously).
if (IsScrollActive)
{
- info = new OffsetInformation();
- info.previouslyMeasuredOffsets = previouslyMeasuredOffsets;
- info.lastPageSafeOffset = lastPageSafeOffset;
- info.lastPagePixelSize = lastPagePixelSize;
+ info = new OffsetInformation
+ {
+ previouslyMeasuredOffsets = previouslyMeasuredOffsets,
+ lastPageSafeOffset = lastPageSafeOffset,
+ lastPagePixelSize = lastPagePixelSize
+ };
OffsetInformationField.SetValue(this, info);
}
@@ -6811,8 +6813,10 @@ private void SetViewportForChild(
HierarchicalVirtualizationConstraints constraints = new HierarchicalVirtualizationConstraints(
childCacheSize,
childCacheUnit,
- childViewport);
- constraints.ScrollGeneration = scrollGeneration;
+ childViewport)
+ {
+ ScrollGeneration = scrollGeneration
+ };
virtualizingChild.Constraints = constraints;
virtualizingChild.InBackgroundLayout = MeasureCaches;
virtualizingChild.MustDisableVirtualization = mustDisableVirtualization;
@@ -9445,8 +9449,10 @@ private bool NotifyCleanupItem(int childIndex, UIElementCollection children, Ite
private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl)
{
- CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.ItemFromContainer(child), child);
- e.Source = this;
+ CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.ItemFromContainer(child), child)
+ {
+ Source = this
+ };
OnCleanUpVirtualizedItem(e);
return !e.Cancel;
@@ -12989,11 +12995,13 @@ private Snapshot TakeSnapshot()
if (IsScrolling)
{
- s._scrollData = new ScrollData();
- s._scrollData._offset = _scrollData._offset;
- s._scrollData._extent = _scrollData._extent;
- s._scrollData._computedOffset = _scrollData._computedOffset;
- s._scrollData._viewport = _scrollData._viewport;
+ s._scrollData = new ScrollData
+ {
+ _offset = _scrollData._offset,
+ _extent = _scrollData._extent,
+ _computedOffset = _scrollData._computedOffset,
+ _viewport = _scrollData._viewport
+ };
}
s._boolFieldStore = _boolFieldStore;
@@ -13027,11 +13035,13 @@ private Snapshot TakeSnapshot()
List list = new List();
foreach (UIElement child in RealizedChildren)
{
- ChildInfo info = new ChildInfo();
- info._itemIndex = g.IndexFromContainer(child, returnLocalIndex:true);
- info._desiredSize = child.DesiredSize;
- info._arrangeRect = child.PreviousArrangeRect;
- info._inset = (Thickness)child.GetValue(ItemsHostInsetProperty);
+ ChildInfo info = new ChildInfo
+ {
+ _itemIndex = g.IndexFromContainer(child, returnLocalIndex: true),
+ _desiredSize = child.DesiredSize,
+ _arrangeRect = child.PreviousArrangeRect,
+ _inset = (Thickness)child.GetValue(ItemsHostInsetProperty)
+ };
list.Add(info);
}
s._realizedChildren = list;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs
index 5ebd5e587cb..b829e30b61b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/WebBrowser.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -273,8 +273,10 @@ public object InvokeScript(string scriptName, params object[] args)
object retVal = null;
if (scriptObjectEx != null)
{
- NativeMethods.DISPPARAMS dp = new NativeMethods.DISPPARAMS();
- dp.rgvarg = IntPtr.Zero;
+ NativeMethods.DISPPARAMS dp = new NativeMethods.DISPPARAMS
+ {
+ rgvarg = IntPtr.Zero
+ };
try
{
// If we use reflection to call script code, we need to Assert for the UnmanagedCode permission.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs
index 3776d136d4a..f22647e7818 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingExpression.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2616,8 +2616,10 @@ void Replace()
// raise the TargetUpdated event (explicit polymorphism)
internal static void OnTargetUpdated(DependencyObject d, DependencyProperty dp)
{
- DataTransferEventArgs args = new DataTransferEventArgs(d, dp);
- args.RoutedEvent = Binding.TargetUpdatedEvent;
+ DataTransferEventArgs args = new DataTransferEventArgs(d, dp)
+ {
+ RoutedEvent = Binding.TargetUpdatedEvent
+ };
FrameworkObject fo = new FrameworkObject(d);
if (!fo.IsValid && d != null)
@@ -2631,8 +2633,10 @@ internal static void OnTargetUpdated(DependencyObject d, DependencyProperty dp)
// raise the SourceUpdatedEvent event (explicit polymorphism)
internal static void OnSourceUpdated(DependencyObject d, DependencyProperty dp)
{
- DataTransferEventArgs args = new DataTransferEventArgs(d, dp);
- args.RoutedEvent = Binding.SourceUpdatedEvent;
+ DataTransferEventArgs args = new DataTransferEventArgs(d, dp)
+ {
+ RoutedEvent = Binding.SourceUpdatedEvent
+ };
FrameworkObject fo = new FrameworkObject(d);
if (!fo.IsValid && d != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs
index dcfe9ac103a..411b9276b7a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Data/BindingGroup.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1428,14 +1428,16 @@ void PrepareProposedValuesForUpdate(DependencyObject mentor, bool isUpdating)
ProposedValueEntry entry = _proposedValueTable[i];
Binding originalBinding = entry.Binding;
- Binding binding = new Binding();
- binding.Source = entry.Item;
- binding.Mode = BindingMode.TwoWay;
- binding.Path = new PropertyPath(entry.PropertyName, originalBinding.Path.PathParameters);
-
- binding.ValidatesOnDataErrors = originalBinding.ValidatesOnDataErrors;
- binding.ValidatesOnNotifyDataErrors = originalBinding.ValidatesOnNotifyDataErrors;
- binding.ValidatesOnExceptions = originalBinding.ValidatesOnExceptions;
+ Binding binding = new Binding
+ {
+ Source = entry.Item,
+ Mode = BindingMode.TwoWay,
+ Path = new PropertyPath(entry.PropertyName, originalBinding.Path.PathParameters),
+
+ ValidatesOnDataErrors = originalBinding.ValidatesOnDataErrors,
+ ValidatesOnNotifyDataErrors = originalBinding.ValidatesOnNotifyDataErrors,
+ ValidatesOnExceptions = originalBinding.ValidatesOnExceptions
+ };
Collection rules = originalBinding.ValidationRulesInternal;
if (rules != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs
index fe77e5ac5a5..84bcb85514a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Adorner.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -210,9 +210,11 @@ public bool IsClipEnabled
private static object CreateFlowDirectionBinding(object o)
{
Adorner adorner = (Adorner)o;
- Binding binding = new Binding("FlowDirection");
- binding.Mode = BindingMode.OneWay;
- binding.Source = adorner.AdornedElement;
+ Binding binding = new Binding("FlowDirection")
+ {
+ Mode = BindingMode.OneWay,
+ Source = adorner.AdornedElement
+ };
adorner.SetBinding(FlowDirectionProperty, binding);
return null;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs
index 483d6298934..bb32860e7e7 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/AdornerLayer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -510,8 +510,10 @@ internal void Add(Adorner adorner, int zOrder)
{
ArgumentNullException.ThrowIfNull(adorner);
- AdornerInfo adornerInfo = new AdornerInfo(adorner);
- adornerInfo.ZOrder = zOrder;
+ AdornerInfo adornerInfo = new AdornerInfo(adorner)
+ {
+ ZOrder = zOrder
+ };
AddAdornerInfo(ElementMap, adornerInfo, adorner.AdornedElement);
@@ -849,8 +851,10 @@ private CombinedGeometry GetClipGeometry(Visual element, Adorner adorner)
{
GeneralTransform transform = oldElement.TransformToAncestor(element);
combinedGeometry.Transform = transform.AffineTransform;
- combinedGeometry = new CombinedGeometry(combinedGeometry, geometry);
- combinedGeometry.GeometryCombineMode = GeometryCombineMode.Intersect;
+ combinedGeometry = new CombinedGeometry(combinedGeometry, geometry)
+ {
+ GeometryCombineMode = GeometryCombineMode.Intersect
+ };
}
oldElement = element;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs
index 02c3d87a913..4947d8aecc5 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CaretElement.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -64,8 +64,10 @@ internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEdi
// Set AllowDropProperty as "False" not to inherit the value from the ancestor.
AllowDrop = false;
- _caretElement = new CaretSubElement();
- _caretElement.ClipToBounds = false;
+ _caretElement = new CaretSubElement
+ {
+ ClipToBounds = false
+ };
AddVisualChild(_caretElement);
}
@@ -718,8 +720,10 @@ internal void OnRenderCaretSubElement(DrawingContext context)
PathFigure pathFigure;
pathGeometry = new PathGeometry();
- pathFigure = new PathFigure();
- pathFigure.StartPoint = new Point(0, 0);
+ pathFigure = new PathFigure
+ {
+ StartPoint = new Point(0, 0)
+ };
pathFigure.Segments.Add(new LineSegment(new Point(-bidiCaretIndicatorWidth, 0), true));
pathFigure.Segments.Add(new LineSegment(new Point(0, _height / BidiIndicatorHeightRatio), true));
pathFigure.IsClosed = true;
@@ -906,9 +910,11 @@ private void SetBlinkAnimation(bool visible, bool positionChanged)
if (_blinkAnimationClock == null || _blinkAnimationClock.Timeline.Duration != blinkDuration)
{
- DoubleAnimationUsingKeyFrames blinkAnimation = new DoubleAnimationUsingKeyFrames();
- blinkAnimation.BeginTime = null;
- blinkAnimation.RepeatBehavior = RepeatBehavior.Forever;
+ DoubleAnimationUsingKeyFrames blinkAnimation = new DoubleAnimationUsingKeyFrames
+ {
+ BeginTime = null,
+ RepeatBehavior = RepeatBehavior.Forever
+ };
blinkAnimation.KeyFrames.Add(new DiscreteDoubleKeyFrame(1, KeyTime.FromPercent(0.0)));
blinkAnimation.KeyFrames.Add(new DiscreteDoubleKeyFrame(0, KeyTime.FromPercent(0.5)));
blinkAnimation.Duration = blinkDuration;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs
index ada5b11dc1a..d6377ca7507 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/CompositionAdorner.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -270,8 +270,10 @@ protected override void OnRender(DrawingContext drawingContext)
double squiggleGap = halfLineHeight;
- PathFigure pathFigure = new PathFigure();
- pathFigure.StartPoint = pathPoint;
+ PathFigure pathFigure = new PathFigure
+ {
+ StartPoint = pathPoint
+ };
int indexPoint = 0;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs
index 359241d158f..bfa3fe9a8b9 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/DocumentReference.cs
@@ -274,9 +274,10 @@ private FixedDocument _LoadDocument()
throw new ApplicationException(SR.DocumentReferenceNotFound);
}
- ParserContext pc = new ParserContext();
-
- pc.BaseUri = uriToLoad;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = uriToLoad
+ };
if (BindUriHelper.IsXamlMimeType(mimeType))
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs
index 0f8579fe74c..68ee594d97b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedDocument.cs
@@ -931,8 +931,10 @@ private static object ValidateAndLoadPartFromAbsoluteUri(Uri AbsoluteUriDoc, boo
{
pageStream = WpfWebRequestHelper.CreateRequestAndGetResponseStream(AbsoluteUriDoc, out mimeType);
- ParserContext pc = new ParserContext();
- pc.BaseUri = AbsoluteUriDoc;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = AbsoluteUriDoc
+ };
XpsValidatingLoader loader = new XpsValidatingLoader();
if (validateOnly)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs
index 7adedffafcf..415f07f6ba3 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedElement.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -215,8 +215,10 @@ internal object GetObject()
object o = im;
if (_type == ElementType.InlineUIContainer)
{
- InlineUIContainer c = new InlineUIContainer();
- c.Child = im;
+ InlineUIContainer c = new InlineUIContainer
+ {
+ Child = im
+ };
o = c;
}
return o;
@@ -243,8 +245,10 @@ internal object BuildObjectTree()
root = new Paragraph();
break;
case ElementType.Hyperlink:
- Hyperlink link = new Hyperlink();
- link.NavigateUri = GetValue(NavigateUriProperty) as Uri;
+ Hyperlink link = new Hyperlink
+ {
+ NavigateUri = GetValue(NavigateUriProperty) as Uri
+ };
link.RequestNavigate += new RequestNavigateEventHandler(ClickHyperlink);
AutomationProperties.SetHelpText(link, (String)this.GetValue(HelpTextProperty));
AutomationProperties.SetName(link, (String)this.GetValue(NameProperty));
@@ -291,8 +295,10 @@ private Image GetImage()
Uri source = _object as Uri;
if (source != null)
{
- image = new Image();
- image.Source = new System.Windows.Media.Imaging.BitmapImage(source);
+ image = new Image
+ {
+ Source = new System.Windows.Media.Imaging.BitmapImage(source)
+ };
image.Width = image.Source.Width;
image.Height = image.Source.Height;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs
index 506ee22f5f3..ac1f6268734 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedFindEngine.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -370,10 +370,12 @@ private static String _ConstructPageString(Stream pageStream, bool reverseRTL)
//Wrap around a compatibility reader
XmlReader xmlReader = new XmlCompatibilityReader(xmlTextReader, _predefinedNamespaces);
- XmlReaderSettings settings = new XmlReaderSettings();
- settings.IgnoreWhitespace = true;
- settings.IgnoreComments = true;
- settings.ProhibitDtd = true;
+ XmlReaderSettings settings = new XmlReaderSettings
+ {
+ IgnoreWhitespace = true,
+ IgnoreComments = true,
+ ProhibitDtd = true
+ };
xmlReader = XmlReader.Create(xmlReader, settings);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs
index 6bbb43088f7..ddde0ac27c8 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedPage.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -48,8 +48,10 @@ public sealed class FixedPage : FrameworkElement, IAddChildInternal, IFixedNavig
#region Constructors
static FixedPage()
{
- FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange);
- metadata.CoerceValueCallback = new CoerceValueCallback(CoerceFlowDirection);
+ FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange)
+ {
+ CoerceValueCallback = new CoerceValueCallback(CoerceFlowDirection)
+ };
FlowDirectionProperty.OverrideMetadata(typeof(FixedPage), metadata);
// This puts the origin always at the top left of the page and prevents mirroring unless this is overridden.
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs
index b0272a01b92..1232ce03042 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMLineCollection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -81,8 +81,10 @@ private void _AddLineToRanges(List ranges, double line, doub
{
if (line < ranges[i].Line - maxSeparation)
{
- range = new FixedSOMLineRanges();
- range.Line = line;
+ range = new FixedSOMLineRanges
+ {
+ Line = line
+ };
range.AddRange(start, end);
ranges.Insert(i, range);
return;
@@ -95,8 +97,10 @@ private void _AddLineToRanges(List ranges, double line, doub
}
// add to end
- range = new FixedSOMLineRanges();
- range.Line = line;
+ range = new FixedSOMLineRanges
+ {
+ Line = line
+ };
range.AddRange(start, end);
ranges.Add(range);
return;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs
index 468c0fb6217..93e62d13146 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMPageConstructor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -222,8 +222,10 @@ public FixedSOMPageConstructor(FixedPage fixedPage, int pageIndex)
Debug.Assert(fixedPage != null);
_fixedPage = fixedPage;
_pageIndex = pageIndex;
- _fixedSOMPage = new FixedSOMPage();
- _fixedSOMPage.CultureInfo = _fixedPage.Language.GetCompatibleCulture();
+ _fixedSOMPage = new FixedSOMPage
+ {
+ CultureInfo = _fixedPage.Language.GetCompatibleCulture()
+ };
_fixedNodes = new List();
_lines = new FixedSOMLineCollection();
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs
index 8088e574dd9..228b5f6b613 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSOMTextRun.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -95,12 +95,14 @@ public static FixedSOMTextRun Create(Rect boundingRect, GeneralTransform transfo
{
return null;
}
- FixedSOMTextRun run = new FixedSOMTextRun(boundingRect, transform, fixedNode, startIndex, endIndex);
- run._fontUri = glyphs.FontUri;
- run._cultureInfo = glyphs.Language.GetCompatibleCulture();
- run._bidiLevel = glyphs.BidiLevel;
- run._isSideways = glyphs.IsSideways;
- run._fontSize = glyphs.FontRenderingEmSize;
+ FixedSOMTextRun run = new FixedSOMTextRun(boundingRect, transform, fixedNode, startIndex, endIndex)
+ {
+ _fontUri = glyphs.FontUri,
+ _cultureInfo = glyphs.Language.GetCompatibleCulture(),
+ _bidiLevel = glyphs.BidiLevel,
+ _isSideways = glyphs.IsSideways,
+ _fontSize = glyphs.FontRenderingEmSize
+ };
GlyphRun glyphRun = glyphs.ToGlyphRun();
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs
index 7b889b624ba..d4850e36b0f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedSchema.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -72,10 +72,11 @@ public override bool Read()
Uri baseUri
)
{
- XmlTextReader xmlTextReader = new XmlEncodingEnforcingTextReader(objectStream);
-
- xmlTextReader.ProhibitDtd = true;
- xmlTextReader.Normalization = true;
+ XmlTextReader xmlTextReader = new XmlEncodingEnforcingTextReader(objectStream)
+ {
+ ProhibitDtd = true,
+ Normalization = true
+ };
XmlReader xmlReader = xmlTextReader;
@@ -257,9 +258,10 @@ protected void RegisterRequiredResourceMimeTypes(ContentType[] requiredResourceM
public virtual XmlReaderSettings GetXmlReaderSettings()
{
- XmlReaderSettings xmlReaderSettings = new XmlReaderSettings();
-
- xmlReaderSettings.ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.ProcessIdentityConstraints | System.Xml.Schema.XmlSchemaValidationFlags.ReportValidationWarnings;
+ XmlReaderSettings xmlReaderSettings = new XmlReaderSettings
+ {
+ ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.ProcessIdentityConstraints | System.Xml.Schema.XmlSchemaValidationFlags.ReportValidationWarnings
+ };
return xmlReaderSettings;
}
@@ -342,9 +344,10 @@ public override XmlReaderSettings GetXmlReaderSettings()
{
if (_xmlReaderSettings == null)
{
- _xmlReaderSettings = new XmlReaderSettings();
-
- _xmlReaderSettings.ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.ProcessIdentityConstraints | System.Xml.Schema.XmlSchemaValidationFlags.ReportValidationWarnings;
+ _xmlReaderSettings = new XmlReaderSettings
+ {
+ ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.ProcessIdentityConstraints | System.Xml.Schema.XmlSchemaValidationFlags.ReportValidationWarnings
+ };
MemoryStream xpsSchemaStream = new MemoryStream(XpsS0Schema.S0SchemaBytes);
MemoryStream dictionarySchemaStream = new MemoryStream(XpsS0Schema.DictionarySchemaBytes);
@@ -744,9 +747,10 @@ public override XmlReaderSettings GetXmlReaderSettings()
{
if (_xmlReaderSettings == null)
{
- _xmlReaderSettings = new XmlReaderSettings();
-
- _xmlReaderSettings.ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.ProcessIdentityConstraints | System.Xml.Schema.XmlSchemaValidationFlags.ReportValidationWarnings;
+ _xmlReaderSettings = new XmlReaderSettings
+ {
+ ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.ProcessIdentityConstraints | System.Xml.Schema.XmlSchemaValidationFlags.ReportValidationWarnings
+ };
MemoryStream xpsSchemaStream = new MemoryStream(XpsDocStructSchema.SchemaBytes);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs
index ad37cefacbf..99f239e51bd 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextBuilder.cs
@@ -1673,9 +1673,11 @@ private void _FinishTextRun(bool addSpace)
if (textRunLength != 0)
{
- FlowNode flowNodeRun = new FlowNode(_NewScopeId(), FlowNodeType.Run, textRunLength);
- // Add list of text runs to flow node
- flowNodeRun.FixedSOMElements = _textRuns.ToArray();
+ FlowNode flowNodeRun = new FlowNode(_NewScopeId(), FlowNodeType.Run, textRunLength)
+ {
+ // Add list of text runs to flow node
+ FixedSOMElements = _textRuns.ToArray()
+ };
int offset = 0;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs
index 241076b1020..9baf2229459 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/FixedTextView.cs
@@ -276,8 +276,10 @@ internal override Geometry GetTightBoundingGeometryFromTextPositions(ITextPointe
backgroundRect.Intersect(clipRect);
}
- Geometry thisGeometry = new RectangleGeometry(backgroundRect);
- thisGeometry.Transform = t;
+ Geometry thisGeometry = new RectangleGeometry(backgroundRect)
+ {
+ Transform = t
+ };
backgroundRect = transform.TransformBounds(backgroundRect);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs
index a136c873d94..5a5b3cf0097 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/HighlightVisual.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -222,9 +222,11 @@ private void _UpdateHighlightBackground(DrawingContext dc, ArrayList highlights)
backgroundRect.Intersect(clipRect);
//thisGeometry = Geometry.Combine(thisGeometry, fh.Element.Clip, GeometryCombineMode.Intersect, t);
}
-
- Geometry thisGeometry = new RectangleGeometry(backgroundRect);
- thisGeometry.Transform = t;
+
+ Geometry thisGeometry = new RectangleGeometry(backgroundRect)
+ {
+ Transform = t
+ };
backgroundRect = transform.TransformBounds(backgroundRect);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs
index 4ef38efc19e..89ee7bc0f26 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Hyperlink.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -584,8 +584,10 @@ private static void NavigateToUri(IInputElement sourceElement, Uri targetUri, st
targetUri = FixedPage.GetLinkUri(sourceElement, targetUri);
}
- RequestNavigateEventArgs navigateArgs = new RequestNavigateEventArgs(targetUri, targetWindow);
- navigateArgs.Source = sourceElement;
+ RequestNavigateEventArgs navigateArgs = new RequestNavigateEventArgs(targetUri, targetWindow)
+ {
+ Source = sourceElement
+ };
sourceElement.RaiseEvent(navigateArgs);
if (navigateArgs.Handled)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs
index 931aefdf4cf..815bb605a5d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/ImmComposition.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -788,8 +788,10 @@ private void UpdateNearCaretCompositionWindow()
milPointCaret = compositionTarget.TransformToDevice.Transform(milPointCaret);
// Build COMPOSITIONFORM. COMPOSITIONFORM is window coodidate.
- NativeMethods.COMPOSITIONFORM compform = new NativeMethods.COMPOSITIONFORM();
- compform.dwStyle = NativeMethods.CFS_RECT;
+ NativeMethods.COMPOSITIONFORM compform = new NativeMethods.COMPOSITIONFORM
+ {
+ dwStyle = NativeMethods.CFS_RECT
+ };
compform.rcArea.left = ConvertToInt32(milPointTopLeft.X);
compform.rcArea.right = ConvertToInt32(milPointBottomRight.X);
compform.rcArea.top = ConvertToInt32(milPointTopLeft.Y);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs
index 5746c2e8410..b7d861fa092 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/PageContent.cs
@@ -590,8 +590,10 @@ internal static void _LoadPageImpl(Uri baseUri, Uri uriToLoad, out FixedPage fix
throw new ApplicationException(SR.PageContentNotFound);
}
- ParserContext pc = new ParserContext();
- pc.BaseUri = uriToLoad;
+ ParserContext pc = new ParserContext
+ {
+ BaseUri = uriToLoad
+ };
if (BindUriHelper.IsXamlMimeType(mimeType))
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs
index 2286785949b..b24c30d125d 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RtfToXamlReader.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -939,8 +939,10 @@ static internal FormatState EmptyFormatState
{
if (_fsEmptyState == null)
{
- _fsEmptyState = new FormatState();
- _fsEmptyState.FontSize = -1;
+ _fsEmptyState = new FormatState
+ {
+ FontSize = -1
+ };
}
return _fsEmptyState;
@@ -3174,13 +3176,14 @@ internal MarkerListEntry EntryAt(int index)
internal void AddEntry(MarkerStyle m, long nILS, long nStartIndexOverride, long nStartIndexDefault, long nLevel)
{
- MarkerListEntry entry = new MarkerListEntry();
-
- entry.Marker = m;
- entry.StartIndexOverride = nStartIndexOverride;
- entry.StartIndexDefault = nStartIndexDefault;
- entry.VirtualListLevel = nLevel;
- entry.ILS = nILS;
+ MarkerListEntry entry = new MarkerListEntry
+ {
+ Marker = m,
+ StartIndexOverride = nStartIndexOverride,
+ StartIndexDefault = nStartIndexDefault,
+ VirtualListLevel = nLevel,
+ ILS = nILS
+ };
Add(entry);
}
@@ -3561,9 +3564,10 @@ internal FontTableEntry DefineEntry(int index)
return entry;
}
- entry = new FontTableEntry();
-
- entry.Index = index;
+ entry = new FontTableEntry
+ {
+ Index = index
+ };
Add(entry);
@@ -3623,8 +3627,10 @@ internal int DefineEntryByName(string name)
}
// Not there - define one.
- FontTableEntry newEntry = new FontTableEntry();
- newEntry.Index = maxIndex + 1;
+ FontTableEntry newEntry = new FontTableEntry
+ {
+ Index = maxIndex + 1
+ };
Add(newEntry);
newEntry.Name = name;
return maxIndex + 1;
@@ -3955,8 +3961,10 @@ internal int AddColor(Color color)
}
// OK, need to add one
- ColorTableEntry entry = new ColorTableEntry();
- entry.Color = color;
+ ColorTableEntry entry = new ColorTableEntry
+ {
+ Color = color
+ };
Add(entry);
return Count - 1;
}
@@ -4662,16 +4670,17 @@ internal DocumentNode(DocumentNodeType documentNodeType)
internal void InheritFormatState(FormatState formatState)
{
- _formatState = new FormatState(formatState);
-
- // Reset non-inherited properties
- _formatState.LI = 0;
- _formatState.RI = 0;
- _formatState.SB = 0;
- _formatState.SA = 0;
- _formatState.FI = 0;
- _formatState.Marker = MarkerStyle.MarkerNone;
- _formatState.CBPara = -1;
+ _formatState = new FormatState(formatState)
+ {
+ // Reset non-inherited properties
+ LI = 0,
+ RI = 0,
+ SB = 0,
+ SA = 0,
+ FI = 0,
+ Marker = MarkerStyle.MarkerNone,
+ CBPara = -1
+ };
}
internal string GetTagName()
@@ -5608,10 +5617,12 @@ internal ColumnStateArray ComputeColumns()
else if (cs.CellX > cf.CellX)
{
// Hmmm, need to insert a new cell here
- ColumnState csNew = new ColumnState();
- csNew.Row = dnRow;
- csNew.CellX = cf.CellX;
- csNew.IsFilled = (prevColX == prevCellX);
+ ColumnState csNew = new ColumnState
+ {
+ Row = dnRow,
+ CellX = cf.CellX,
+ IsFilled = (prevColX == prevCellX)
+ };
cols.Insert(k, csNew);
bHandled = true;
break;
@@ -5623,10 +5634,12 @@ internal ColumnStateArray ComputeColumns()
// New cell at the end
if (!bHandled)
{
- ColumnState csNew = new ColumnState();
- csNew.Row = dnRow;
- csNew.CellX = cf.CellX;
- csNew.IsFilled = (prevColX == prevCellX);
+ ColumnState csNew = new ColumnState
+ {
+ Row = dnRow,
+ CellX = cf.CellX,
+ IsFilled = (prevColX == prevCellX)
+ };
cols.Add(csNew);
}
@@ -6362,8 +6375,10 @@ internal void PreCoalesceChildren(ConverterState converterState, int nStart, boo
int nChildHere = nnAt - nAt;
if (nChildHere > 1)
{
- DocumentNode dnNewDir = new DocumentNode(DocumentNodeType.dnInline);
- dnNewDir.FormatState = new FormatState(dn.Parent.FormatState);
+ DocumentNode dnNewDir = new DocumentNode(DocumentNodeType.dnInline)
+ {
+ FormatState = new FormatState(dn.Parent.FormatState)
+ };
dnNewDir.FormatState.DirChar = dn.FormatState.DirChar;
InsertChildAt(dn.ClosedParent, dnNewDir, nAt, nChildHere);
@@ -6818,13 +6833,14 @@ internal MarkerList GetLastMarkerStyles(MarkerList mlHave, MarkerList mlWant)
// Note that I'm building this list up in the reverse order of GetOpenMarkerStyles
if (dnList.Type == DocumentNodeType.dnList)
{
- MarkerListEntry mle = new MarkerListEntry();
-
- mle.Marker = dnList.FormatState.Marker;
- mle.StartIndexOverride = dnList.FormatState.StartIndex;
- mle.StartIndexDefault = dnList.FormatState.StartIndexDefault;
- mle.VirtualListLevel = dnList.VirtualListLevel;
- mle.ILS = dnList.FormatState.ILS;
+ MarkerListEntry mle = new MarkerListEntry
+ {
+ Marker = dnList.FormatState.Marker,
+ StartIndexOverride = dnList.FormatState.StartIndex,
+ StartIndexDefault = dnList.FormatState.StartIndexDefault,
+ VirtualListLevel = dnList.VirtualListLevel,
+ ILS = dnList.FormatState.ILS
+ };
ml.Insert(0, mle);
if (mle.Marker != MarkerStyle.MarkerBullet)
@@ -7516,8 +7532,10 @@ internal class ConverterState
internal ConverterState()
{
_rtfFormatStack = new RtfFormatStack();
- _documentNodeArray = new DocumentNodeArray();
- _documentNodeArray.IsMain = true;
+ _documentNodeArray = new DocumentNodeArray
+ {
+ IsMain = true
+ };
_fontTable = new FontTable();
_colorTable = new ColorTable();
_listTable = new ListTable();
@@ -8341,8 +8359,10 @@ private string GetIncludePictureUri(string instructionName)
internal DocumentNode ProcessHyperlinkField(string instr)
{
- DocumentNode dn = new DocumentNode(DocumentNodeType.dnHyperlink);
- dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0));
+ DocumentNode dn = new DocumentNode(DocumentNodeType.dnHyperlink)
+ {
+ FormatState = new FormatState(_converterState.PreviousTopFormatState(0))
+ };
string sUri = null;
string sTarget = null;
string sBookmark = null;
@@ -8448,8 +8468,10 @@ internal DocumentNode ProcessHyperlinkField(string instr)
internal DocumentNode ProcessSymbolField(string instr)
{
- DocumentNode dn = new DocumentNode(DocumentNodeType.dnText);
- dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0));
+ DocumentNode dn = new DocumentNode(DocumentNodeType.dnText)
+ {
+ FormatState = new FormatState(_converterState.PreviousTopFormatState(0))
+ };
int nChar = -1;
EncodeType encodeType = EncodeType.Ansi;
@@ -8659,9 +8681,10 @@ internal void ProcessImage(FormatState formatState)
formatState.ImageSource = imagePartUriString;
// Create the image document node
- DocumentNode dnImage = new DocumentNode(DocumentNodeType.dnImage);
-
- dnImage.FormatState = formatState;
+ DocumentNode dnImage = new DocumentNode(DocumentNodeType.dnImage)
+ {
+ FormatState = formatState
+ };
StringBuilder imageStringBuilder = new StringBuilder();
@@ -8852,9 +8875,11 @@ private void ProcessRtfDestination(FormatState fsCur)
nAt = dna.FindUnmatched(DocumentNodeType.dnFieldBegin);
if (nAt >= 0)
{
- DocumentNode dnEnd = new DocumentNode(DocumentNodeType.dnFieldEnd);
- dnEnd.FormatState = new FormatState(fsCur);
- dnEnd.IsPending = false;
+ DocumentNode dnEnd = new DocumentNode(DocumentNodeType.dnFieldEnd)
+ {
+ FormatState = new FormatState(fsCur),
+ IsPending = false
+ };
dna.Push(dnEnd);
dna.EntryAt(nAt).IsMatched = true;
ProcessField();
@@ -8866,9 +8891,11 @@ private void ProcessRtfDestination(FormatState fsCur)
nAt = dna.FindUnmatched(DocumentNodeType.dnFieldBegin);
if (nAt >= 0)
{
- DocumentNode dnEnd = new DocumentNode(DocumentNodeType.dnFieldEnd);
- dnEnd.FormatState = new FormatState(fsCur);
- dnEnd.IsPending = false;
+ DocumentNode dnEnd = new DocumentNode(DocumentNodeType.dnFieldEnd)
+ {
+ FormatState = new FormatState(fsCur),
+ IsPending = false
+ };
dna.Push(dnEnd);
dna.EntryAt(nAt).IsMatched = true;
}
@@ -9851,8 +9878,10 @@ internal void HandleParagraphFromText(FormatState formatState)
}
}
- dn = new DocumentNode(DocumentNodeType.dnParagraph);
- dn.FormatState = new FormatState(formatState);
+ dn = new DocumentNode(DocumentNodeType.dnParagraph)
+ {
+ FormatState = new FormatState(formatState)
+ };
dn.ConstrainFontPropagation(formatState);
dna.InsertNode(nInsertAt, dn);
@@ -9868,8 +9897,10 @@ internal void WrapInlineInParagraph(int nInsertAt, int nChildren)
Debug.Assert(nInsertAt >= 0 && nChildren > 0 && nInsertAt + nChildren - 1 < dna.Count);
DocumentNode dnChild = dna.EntryAt(nInsertAt + nChildren - 1);
- DocumentNode dn = new DocumentNode(DocumentNodeType.dnParagraph);
- dn.FormatState = new FormatState(dnChild.FormatState);
+ DocumentNode dn = new DocumentNode(DocumentNodeType.dnParagraph)
+ {
+ FormatState = new FormatState(dnChild.FormatState)
+ };
dn.ConstrainFontPropagation(dn.FormatState);
DocumentNode dnParent = null;
@@ -10152,9 +10183,10 @@ internal void HandleListTokens(RtfToken token, FormatState formatState)
{
formatState.RtfDestination = RtfDestination.DestListText;
DocumentNodeArray dna = _converterState.DocumentNodeArray;
- DocumentNode dnl = new DocumentNode(DocumentNodeType.dnListText);
-
- dnl.FormatState = new FormatState(formatState);
+ DocumentNode dnl = new DocumentNode(DocumentNodeType.dnListText)
+ {
+ FormatState = new FormatState(formatState)
+ };
dna.Push(dnl);
}
break;
@@ -10429,9 +10461,10 @@ internal void HandleOldListTokens(RtfToken token, FormatState formatState)
{
fsCur.RtfDestination = RtfDestination.DestListText;
DocumentNodeArray dna = _converterState.DocumentNodeArray;
- DocumentNode dnl = new DocumentNode(DocumentNodeType.dnListText);
-
- dnl.FormatState = new FormatState(formatState);
+ DocumentNode dnl = new DocumentNode(DocumentNodeType.dnListText)
+ {
+ FormatState = new FormatState(formatState)
+ };
dna.Push(dnl);
}
break;
@@ -10998,11 +11031,12 @@ internal void HandleFieldTokens(RtfToken token, FormatState formatState)
}
DocumentNodeArray dna = _converterState.DocumentNodeArray;
- DocumentNode dnf = new DocumentNode(DocumentNodeType.dnFieldBegin);
-
- dnf.FormatState = new FormatState(formatState);
- dnf.IsPending = false; // Field start mark should not impact other tags open/close behavior
- dnf.IsTerminated = true;
+ DocumentNode dnf = new DocumentNode(DocumentNodeType.dnFieldBegin)
+ {
+ FormatState = new FormatState(formatState),
+ IsPending = false, // Field start mark should not impact other tags open/close behavior
+ IsTerminated = true
+ };
dna.Push(dnf);
}
@@ -11502,8 +11536,10 @@ internal void HandleNormalTextRaw(string text, FormatState formatState)
// OK, create a text node if necessary
if (dnTop == null || dnTop.Type != DocumentNodeType.dnText)
{
- dnTop = new DocumentNode(DocumentNodeType.dnText);
- dnTop.FormatState = new FormatState(formatState);
+ dnTop = new DocumentNode(DocumentNodeType.dnText)
+ {
+ FormatState = new FormatState(formatState)
+ };
dna.Push(dnTop);
}
@@ -11522,8 +11558,10 @@ internal void ProcessNormalHardLine(FormatState formatState)
dna.CloseAt(dna.Count - 1);
}
- DocumentNode documentNode = new DocumentNode(DocumentNodeType.dnLineBreak);
- documentNode.FormatState = new FormatState(formatState);
+ DocumentNode documentNode = new DocumentNode(DocumentNodeType.dnLineBreak)
+ {
+ FormatState = new FormatState(formatState)
+ };
dna.Push(documentNode);
dna.CloseAt(dna.Count - 1);
dna.CoalesceChildren(_converterState, dna.Count - 1);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs
index d365b60faf9..b3083510def 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/RubberbandSelector.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -281,8 +281,10 @@ private string GetText()
if (textRange == null || begin > 0)
{
//begin new text range
- textRange = new TextPositionPair();
- textRange.first = _GetTextPosition(node, begin);
+ textRange = new TextPositionPair
+ {
+ first = _GetTextPosition(node, begin)
+ };
ranges.Add(textRange);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionHighlightInfo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionHighlightInfo.cs
index 07ffcb93c48..ca3d98eb99b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionHighlightInfo.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SelectionHighlightInfo.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -26,8 +26,10 @@ internal static class SelectionHighlightInfo
// Static constructor.
static SelectionHighlightInfo()
{
- _objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor);
- _objectMaskBrush.Opacity = 0.5;
+ _objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor)
+ {
+ Opacity = 0.5
+ };
_objectMaskBrush.Freeze();
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs
index e051844f738..1b5ef71d507 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/Serialization/SerializerDescriptor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -79,15 +79,16 @@ ISerializerFactory factoryInstance
throw new ArgumentException(SR.SerializerProviderDefaultFileExtensionNull);
}
- SerializerDescriptor sd = new SerializerDescriptor();
-
- sd._displayName = factoryInstance.DisplayName;
- sd._manufacturerName = factoryInstance.ManufacturerName;
- sd._manufacturerWebsite = factoryInstance.ManufacturerWebsite;
- sd._defaultFileExtension = factoryInstance.DefaultFileExtension;
-
- // When this is called with an instantiated factory object, it must be loadable
- sd._isLoadable = true;
+ SerializerDescriptor sd = new SerializerDescriptor
+ {
+ _displayName = factoryInstance.DisplayName,
+ _manufacturerName = factoryInstance.ManufacturerName,
+ _manufacturerWebsite = factoryInstance.ManufacturerWebsite,
+ _defaultFileExtension = factoryInstance.DefaultFileExtension,
+
+ // When this is called with an instantiated factory object, it must be loadable
+ _isLoadable = true
+ };
Type factoryType = factoryInstance.GetType();
sd._assemblyName = factoryType.Assembly.FullName;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs
index 563976a1400..8b0c35cdee4 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/SpellerHighlightLayer.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -160,10 +160,12 @@ private static TextDecorationCollection GetErrorTextDecorations()
drawingContext.Close();
- DrawingBrush brush = new DrawingBrush(drawingGroup);
- brush.TileMode = TileMode.Tile;
- brush.Viewport = new Rect(0, 0, 3, 3);
- brush.ViewportUnits = BrushMappingMode.Absolute;
+ DrawingBrush brush = new DrawingBrush(drawingGroup)
+ {
+ TileMode = TileMode.Tile,
+ Viewport = new Rect(0, 0, 3, 3),
+ ViewportUnits = BrushMappingMode.Absolute
+ };
TextDecoration textDecoration = new TextDecoration(
TextDecorationLocation.Underline,
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs
index 89bbac82f96..07439b63f12 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextContainerChangedEventArgs.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -211,8 +211,10 @@ private void AddChangeToList(PrecursorTextChangeType textChange, int offset, int
}
else
{
- change = new TextChange();
- change.Offset = offset;
+ change = new TextChange
+ {
+ Offset = offset
+ };
Changes.Add(offset, change);
keyIndex = Changes.IndexOfKey(offset);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs
index 4ce474e8ac8..3292ca8ffeb 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -510,8 +510,10 @@ internal void RequestExtendSelection(Point point)
{
if (_mouseSelectionState == null)
{
- _mouseSelectionState = new MouseSelectionState();
- _mouseSelectionState.Timer = new DispatcherTimer(DispatcherPriority.Normal);
+ _mouseSelectionState = new MouseSelectionState
+ {
+ Timer = new DispatcherTimer(DispatcherPriority.Normal)
+ };
_mouseSelectionState.Timer.Tick += new EventHandler(HandleMouseSelectionTick);
// 400ms is the default value for MenuShowDelay. Creating timer with smaller value may
// cause Dispatcher queue starvation.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs
index 4f4546a21d1..9aba7698201 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorContextMenu.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -487,9 +487,11 @@ private bool AddSpellerItems(TextEditor textEditor)
foreach (string suggestion in spellingError.Suggestions)
{
menuItem = new EditorMenuItem();
- TextBlock text = new TextBlock();
- text.FontWeight = FontWeights.Bold;
- text.Text = suggestion;
+ TextBlock text = new TextBlock
+ {
+ FontWeight = FontWeights.Bold,
+ Text = suggestion
+ };
menuItem.Header = text;
menuItem.Command = EditingCommands.CorrectSpellingError;
menuItem.CommandParameter = suggestion;
@@ -501,17 +503,21 @@ private bool AddSpellerItems(TextEditor textEditor)
if (!addedSuggestion)
{
- menuItem = new EditorMenuItem();
- menuItem.Header = SR.TextBox_ContextMenu_NoSpellingSuggestions;
- menuItem.IsEnabled = false;
+ menuItem = new EditorMenuItem
+ {
+ Header = SR.TextBox_ContextMenu_NoSpellingSuggestions,
+ IsEnabled = false
+ };
this.Items.Add(menuItem);
}
AddSeparator();
- menuItem = new EditorMenuItem();
- menuItem.Header = SR.TextBox_ContextMenu_IgnoreAll;
- menuItem.Command = EditingCommands.IgnoreSpellingError;
+ menuItem = new EditorMenuItem
+ {
+ Header = SR.TextBox_ContextMenu_IgnoreAll,
+ Command = EditingCommands.IgnoreSpellingError
+ };
this.Items.Add(menuItem);
menuItem.CommandTarget = textEditor.UiScope;
@@ -572,9 +578,11 @@ private bool AddReconversionItems(TextEditor textEditor)
CandidateList.GetCandidate(i, out candString);
candString.GetString(out suggestion);
- menuItem = new ReconversionMenuItem(this, i);
- menuItem.Header = suggestion;
- menuItem.InputGestureText = GetMenuItemDescription(suggestion);
+ menuItem = new ReconversionMenuItem(this, i)
+ {
+ Header = suggestion,
+ InputGestureText = GetMenuItemDescription(suggestion)
+ };
this.Items.Add(menuItem);
Marshal.ReleaseComObject(candString);
@@ -585,9 +593,11 @@ private bool AddReconversionItems(TextEditor textEditor)
// than 5 candidates.
if (count > 5)
{
- menuItem = new EditorMenuItem();
- menuItem.Header = SR.TextBox_ContextMenu_More;
- menuItem.Command = ApplicationCommands.CorrectionList;
+ menuItem = new EditorMenuItem
+ {
+ Header = SR.TextBox_ContextMenu_More,
+ Command = ApplicationCommands.CorrectionList
+ };
this.Items.Add(menuItem);
menuItem.CommandTarget = textEditor.UiScope;
}
@@ -601,22 +611,28 @@ private bool AddClipboardItems(TextEditor textEditor)
{
MenuItem menuItem;
- menuItem = new EditorMenuItem();
- menuItem.Header = SR.TextBox_ContextMenu_Cut;
- menuItem.CommandTarget = textEditor.UiScope;
- menuItem.Command = ApplicationCommands.Cut;
+ menuItem = new EditorMenuItem
+ {
+ Header = SR.TextBox_ContextMenu_Cut,
+ CommandTarget = textEditor.UiScope,
+ Command = ApplicationCommands.Cut
+ };
this.Items.Add(menuItem);
- menuItem = new EditorMenuItem();
- menuItem.Header = SR.TextBox_ContextMenu_Copy;
- menuItem.CommandTarget = textEditor.UiScope;
- menuItem.Command = ApplicationCommands.Copy;
+ menuItem = new EditorMenuItem
+ {
+ Header = SR.TextBox_ContextMenu_Copy,
+ CommandTarget = textEditor.UiScope,
+ Command = ApplicationCommands.Copy
+ };
this.Items.Add(menuItem);
- menuItem = new EditorMenuItem();
- menuItem.Header = SR.TextBox_ContextMenu_Paste;
- menuItem.CommandTarget = textEditor.UiScope;
- menuItem.Command = ApplicationCommands.Paste;
+ menuItem = new EditorMenuItem
+ {
+ Header = SR.TextBox_ContextMenu_Paste,
+ CommandTarget = textEditor.UiScope,
+ Command = ApplicationCommands.Paste
+ };
this.Items.Add(menuItem);
return true;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs
index 0ae2179249d..4ed28da6012 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -440,8 +440,10 @@ internal static MemoryStream ConvertRtfToXaml(string rtfContent)
using (Stream xamlStream = wpfPayload.CreateXamlStream())
{
// Create XamlRtfConverter to process the converting from Rtf to Xaml
- XamlRtfConverter xamlRtfConverter = new XamlRtfConverter();
- xamlRtfConverter.WpfPayload = wpfPayload;
+ XamlRtfConverter xamlRtfConverter = new XamlRtfConverter
+ {
+ WpfPayload = wpfPayload
+ };
string xamlContent = xamlRtfConverter.ConvertRtfToXaml(rtfContent);
if (xamlContent != string.Empty)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs
index 455c0441d07..d6f7a59c59b 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRange.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1592,10 +1592,11 @@ internal virtual void InsertEmbeddedUIElementVirtual(FrameworkElement embeddedEl
if (Paragraph.HasNoTextContent(paragraph))
{
// Use BlockUIContainer as a replacement of the current paragraph
- BlockUIContainer blockUIContainer = new BlockUIContainer(embeddedElement);
-
- // Translate embedded element's horizontal alignment property to the BlockUIContainer's text alignment
- blockUIContainer.TextAlignment = TextRangeEdit.GetTextAlignmentFromHorizontalAlignment(embeddedElement.HorizontalAlignment);
+ BlockUIContainer blockUIContainer = new BlockUIContainer(embeddedElement)
+ {
+ // Translate embedded element's horizontal alignment property to the BlockUIContainer's text alignment
+ TextAlignment = TextRangeEdit.GetTextAlignmentFromHorizontalAlignment(embeddedElement.HorizontalAlignment)
+ };
// Replace paragraph with BlockUIContainer
paragraph.SiblingBlocks.InsertAfter(paragraph, blockUIContainer);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs
index 4e845e850d4..89c12118ee1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditLists.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -316,8 +316,10 @@ internal static bool ConvertParagraphsToListItems(TextRange range, TextMarkerSty
else
{
// Create a list around all paragraphs
- List list = new List();
- list.MarkerStyle = markerStyle;
+ List list = new List
+ {
+ MarkerStyle = markerStyle
+ };
list.Apply(firstBlock, lastBlock);
// Merge with neighboring lists
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs
index 1314710ed97..78451d40ace 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextRangeEditTables.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -656,8 +656,10 @@ internal static Table InsertTable(TextPointer insertionPosition, int rowCount, i
Invariant.Assert(paragraph != null, "Expecting non-null paragraph at insertionPosition");
// Build a table with a given number of rows and columns
- Table table = new Table();
- table.CellSpacing = 0;
+ Table table = new Table
+ {
+ CellSpacing = 0
+ };
TableRowGroup rowGroup = new TableRowGroup();
for (int rowIndex = 0; rowIndex < rowCount; rowIndex++)
{
@@ -665,9 +667,11 @@ internal static Table InsertTable(TextPointer insertionPosition, int rowCount, i
for (int columnIndex = 0; columnIndex < columnCount; columnIndex++)
{
- TableCell cell = new TableCell(new Paragraph());
- cell.BorderThickness = GetCellBorder(1, rowIndex, columnIndex, 1, 1, rowCount, columnCount);
- cell.BorderBrush = System.Windows.Media.Brushes.Black;
+ TableCell cell = new TableCell(new Paragraph())
+ {
+ BorderThickness = GetCellBorder(1, rowIndex, columnIndex, 1, 1, rowCount, columnCount),
+ BorderBrush = System.Windows.Media.Brushes.Black
+ };
row.Cells.Add(cell);
}
rowGroup.Rows.Add(row);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs
index 4729eef70af..2f17e052b54 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextSelection.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2419,8 +2419,10 @@ private CaretElement EnsureCaret(bool isBlinkEnabled, bool isSelectionActive, Ca
if (_caretElement == null)
{
// Create new caret
- _caretElement = new CaretElement(_textEditor, isBlinkEnabled);
- _caretElement.IsSelectionActive = isSelectionActive;
+ _caretElement = new CaretElement(_textEditor, isBlinkEnabled)
+ {
+ IsSelectionActive = isSelectionActive
+ };
// Check the current input language to draw the BiDi caret in case of BiDi language
// like as Arabic or Hebrew input language.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs
index 0e8e7b0257c..9d04787a2c6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -2788,10 +2788,12 @@ private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamil
continue;
}
- UnsafeNativeMethods.TS_ATTRVAL attrval = new UnsafeNativeMethods.TS_ATTRVAL();
- attrval.attributeId = _supportingattributes[i].Guid;
- attrval.overlappedId = (int)_supportingattributes[i].Style;
- attrval.val = new NativeMethods.VARIANT();
+ UnsafeNativeMethods.TS_ATTRVAL attrval = new UnsafeNativeMethods.TS_ATTRVAL
+ {
+ attributeId = _supportingattributes[i].Guid,
+ overlappedId = (int)_supportingattributes[i].Style,
+ val = new NativeMethods.VARIANT()
+ };
// This VARIANT is returned to the caller, which supposed to call VariantClear().
// GC does not have to clear it.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs
index 3834e8d77a0..024e7c833ba 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextElementNode.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -64,10 +64,12 @@ internal override TextTreeNode Clone()
{
TextTreeTextElementNode clone;
- clone = new TextTreeTextElementNode();
- clone._symbolCount = _symbolCount;
- clone._imeCharCount = _imeCharCount;
- clone._textElement = _textElement;
+ clone = new TextTreeTextElementNode
+ {
+ _symbolCount = _symbolCount,
+ _imeCharCount = _imeCharCount,
+ _textElement = _textElement
+ };
return clone;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs
index e0ca96eb4fe..4bec879db05 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeTextNode.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -86,8 +86,10 @@ internal override TextTreeNode Clone()
if (_symbolCount > 0)
{
- clone = new TextTreeTextNode();
- clone._symbolCount = _symbolCount;
+ clone = new TextTreeTextNode
+ {
+ _symbolCount = _symbolCount
+ };
}
return clone;
@@ -220,8 +222,10 @@ internal TextTreeTextNode Split(int localOffset, ElementEdge edge)
}
#endif // DEBUG
- newNode = new TextTreeTextNode();
- newNode._generation = _generation;
+ newNode = new TextTreeTextNode
+ {
+ _generation = _generation
+ };
// Splay this node to the root so we don't corrupt any LeftSymbolCounts
// of ancestor nodes when we fixup _symbolCount below.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndo.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndo.cs
index 793b07a817a..cb9639204ef 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndo.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeUndo.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -60,9 +60,11 @@ internal static void CreatePropertyUndoUnit(TextElement element, DependencyPrope
if (undoManager == null)
return;
- record = new PropertyRecord();
- record.Property = e.Property;
- record.Value = e.OldValueSource == BaseValueSourceInternal.Local ? e.OldValue : DependencyProperty.UnsetValue;
+ record = new PropertyRecord
+ {
+ Property = e.Property,
+ Value = e.OldValueSource == BaseValueSourceInternal.Local ? e.OldValue : DependencyProperty.UnsetValue
+ };
undoManager.Add(new TextTreePropertyUndoUnit(textContainer, element.TextElementNode.GetSymbolOffset(textContainer.Generation) + 1, record));
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs
index 68380a1e1f6..15f213cfcc6 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/WpfPayload.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -320,8 +320,10 @@ internal static object LoadElement(Stream stream)
PackageStore.AddPackage(packageUri, wpfPayload.Package); // Register the package
// Set this temporary uri as a base uri for xaml parser
- ParserContext parserContext = new ParserContext();
- parserContext.BaseUri = entryPartUri;
+ ParserContext parserContext = new ParserContext
+ {
+ BaseUri = entryPartUri
+ };
// Call xaml parser
xamlObject = XamlReader.Load(xamlEntryPart.GetSeekableStream(), parserContext, useRestrictiveXamlReader: true);
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs
index a37fa9a238b..504cf716dcc 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/XamlRtfConverter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -96,8 +96,10 @@ internal string ConvertRtfToXaml(string rtfContent)
{
// Create RtfToXamlReader instance for converting the content
// from rtf to xaml and set ForceParagraph
- RtfToXamlReader rtfToXamlReader = new RtfToXamlReader(rtfContent);
- rtfToXamlReader.ForceParagraph = ForceParagraph;
+ RtfToXamlReader rtfToXamlReader = new RtfToXamlReader(rtfContent)
+ {
+ ForceParagraph = ForceParagraph
+ };
// Set WpfPayload package that contained the image for the specified Xaml
if (WpfPayload != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs
index c4be64fcfd1..8fecf88061f 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/EventTrigger.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -160,10 +160,11 @@ public TriggerActionCollection Actions
{
if( _actions == null )
{
- _actions = new TriggerActionCollection();
-
- // Give the collection a back-link, this is used for the inheritance context
- _actions.Owner = this;
+ _actions = new TriggerActionCollection
+ {
+ // Give the collection a back-link, this is used for the inheritance context
+ Owner = this
+ };
}
return _actions;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs
index e1bc3b3ce63..3b5f94174b7 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContentElement.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -670,8 +670,10 @@ private bool GetValueFromTemplatedParent(DependencyProperty dp, ref EffectiveVal
internal Expression GetExpressionCore(DependencyProperty dp, PropertyMetadata metadata)
{
this.IsRequestingExpression = true;
- EffectiveValueEntry entry = new EffectiveValueEntry(dp);
- entry.Value = DependencyProperty.UnsetValue;
+ EffectiveValueEntry entry = new EffectiveValueEntry(dp)
+ {
+ Value = DependencyProperty.UnsetValue
+ };
this.EvaluateBaseValueCore(dp, metadata, ref entry);
this.IsRequestingExpression = false;
@@ -1059,8 +1061,10 @@ private static void OnLostKeyboardFocus(object sender, KeyboardFocusChangedEvent
///
public void BringIntoView()
{
- RequestBringIntoViewEventArgs args = new RequestBringIntoViewEventArgs(this, Rect.Empty);
- args.RoutedEvent=FrameworkElement.RequestBringIntoViewEvent;
+ RequestBringIntoViewEventArgs args = new RequestBringIntoViewEventArgs(this, Rect.Empty)
+ {
+ RoutedEvent = FrameworkElement.RequestBringIntoViewEvent
+ };
RaiseEvent(args);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs
index 21666023bff..202f577ae3c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkContextData.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -44,10 +44,12 @@ private FrameworkContextData()
public void AddWalker(object data, DescendentsWalkerBase walker)
{
// push a new walker on the top of the stack
- WalkerEntry walkerEntry = new WalkerEntry();
- walkerEntry.Data = data;
- walkerEntry.Walker = walker;
-
+ WalkerEntry walkerEntry = new WalkerEntry
+ {
+ Data = data,
+ Walker = walker
+ };
+
_currentWalkers.Add(walkerEntry);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs
index 2fc3b21bb2e..b54ba9e663c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElement.cs
@@ -2041,8 +2041,10 @@ private object GetInheritableValue(DependencyProperty dp, FrameworkPropertyMetad
internal Expression GetExpressionCore(DependencyProperty dp, PropertyMetadata metadata)
{
this.IsRequestingExpression = true;
- EffectiveValueEntry entry = new EffectiveValueEntry(dp);
- entry.Value = DependencyProperty.UnsetValue;
+ EffectiveValueEntry entry = new EffectiveValueEntry(dp)
+ {
+ Value = DependencyProperty.UnsetValue
+ };
this.EvaluateBaseValueCore(dp, metadata, ref entry);
this.IsRequestingExpression = false;
@@ -3297,8 +3299,10 @@ public void BringIntoView()
///
public void BringIntoView(Rect targetRectangle)
{
- RequestBringIntoViewEventArgs args = new RequestBringIntoViewEventArgs(this, targetRectangle);
- args.RoutedEvent=RequestBringIntoViewEvent;
+ RequestBringIntoViewEventArgs args = new RequestBringIntoViewEventArgs(this, targetRectangle)
+ {
+ RoutedEvent = RequestBringIntoViewEvent
+ };
RaiseEvent(args);
}
@@ -4791,14 +4795,16 @@ protected sealed override void ArrangeCore(Rect finalRect)
///
protected internal override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
{
- SizeChangedEventArgs localArgs = new SizeChangedEventArgs(this, sizeInfo);
- localArgs.RoutedEvent = SizeChangedEvent;
+ SizeChangedEventArgs localArgs = new SizeChangedEventArgs(this, sizeInfo)
+ {
+ RoutedEvent = SizeChangedEvent
+ };
//first, invalidate ActualWidth and/or ActualHeight
//Note: if any handler of invalidation will dirtyfy layout,
//subsequent handlers will run on effectively dirty layouts
//we only guarantee cleaning between elements, not between handlers here
- if(sizeInfo.WidthChanged)
+ if (sizeInfo.WidthChanged)
{
HasWidthEverChanged = true;
NotifyPropertyChange(new DependencyPropertyChangedEventArgs(ActualWidthProperty, _actualWidthMetadata, sizeInfo.PreviousSize.Width, sizeInfo.NewSize.Width));
@@ -5151,10 +5157,12 @@ internal static void InternalSetLayoutTransform(UIElement element, Transform lay
// Create a TransformCollection and make sure it does not participate
// in the InheritanceContext treeness because it is internal operation only.
- TransformCollection ts = new TransformCollection();
- ts.CanBeInheritanceContext = false;
+ TransformCollection ts = new TransformCollection
+ {
+ CanBeInheritanceContext = false
+ };
- if(additionalTransform != null)
+ if (additionalTransform != null)
ts.Add(additionalTransform);
if(renderTransform != null)
@@ -5162,8 +5170,10 @@ internal static void InternalSetLayoutTransform(UIElement element, Transform lay
ts.Add(layoutTransform);
- TransformGroup group = new TransformGroup();
- group.Children = ts;
+ TransformGroup group = new TransformGroup
+ {
+ Children = ts
+ };
element.InternalSetTransformWorkaround(group);
}
@@ -5217,8 +5227,10 @@ private void SetLayoutOffset(Vector offset, Size oldRenderSize)
{
// Create a TransformGroup and make sure it does not participate
// in the InheritanceContext treeness because it is internal operation only.
- t = new TransformGroup();
- t.CanBeInheritanceContext = false;
+ t = new TransformGroup
+ {
+ CanBeInheritanceContext = false
+ };
t.Children.CanBeInheritanceContext = false;
if (additionalTransform != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs
index 4ec233c2e91..378141af11a 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkElementFactory.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -433,11 +433,13 @@ private void UpdatePropertyValueList(
else
{
// Store original data
- PropertyValue propertyValue = new PropertyValue();
- propertyValue.ValueType = valueType;
- propertyValue.ChildName = null; // Delayed
- propertyValue.Property = dp;
- propertyValue.ValueInternal = value;
+ PropertyValue propertyValue = new PropertyValue
+ {
+ ValueType = valueType,
+ ChildName = null, // Delayed
+ Property = dp,
+ ValueInternal = value
+ };
lock (_synchronized)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs
index 05e38ce055f..08d79542826 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkTemplate.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -217,10 +217,11 @@ public ResourceDictionary Resources
if ( _resources == null )
{
- _resources = new ResourceDictionary();
-
- // A Template ResourceDictionary can be accessed across threads
- _resources.CanBeAccessedAcrossThreads = true;
+ _resources = new ResourceDictionary
+ {
+ // A Template ResourceDictionary can be accessed across threads
+ CanBeAccessedAcrossThreads = true
+ };
}
if ( IsSealed )
@@ -815,12 +816,14 @@ private bool ReceivePropertySet(object targetObject, XamlMember member,
// Create a Binding equivalent to the TemplateBindingExtension
- Binding binding = new Binding();
- binding.Mode = BindingMode.OneWay;
- binding.RelativeSource = RelativeSource.TemplatedParent;
- binding.Path = new PropertyPath(templateBindingExtension.Property);
- binding.Converter = templateBindingExtension.Converter;
- binding.ConverterParameter = templateBindingExtension.ConverterParameter;
+ Binding binding = new Binding
+ {
+ Mode = BindingMode.OneWay,
+ RelativeSource = RelativeSource.TemplatedParent,
+ Path = new PropertyPath(templateBindingExtension.Property),
+ Converter = templateBindingExtension.Converter,
+ ConverterParameter = templateBindingExtension.ConverterParameter
+ };
value = binding;
@@ -845,9 +848,11 @@ private bool ReceivePropertySet(object targetObject, XamlMember member,
dependencyObject.ProvideSelfAsInheritanceContext(value, dependencyProperty);
- EffectiveValueEntry entry = new EffectiveValueEntry(dependencyProperty);
- entry.BaseValueSourceInternal = BaseValueSourceInternal.ParentTemplate;
- entry.Value = value;
+ EffectiveValueEntry entry = new EffectiveValueEntry(dependencyProperty)
+ {
+ BaseValueSourceInternal = BaseValueSourceInternal.ParentTemplate,
+ Value = value
+ };
if (isMarkupExtension)
{
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs
index e17d40d3eb4..0b4d4c77032 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Input/KeyboardNavigation.cs
@@ -495,8 +495,10 @@ public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : ba
Debug.Assert(adornedElement != null, "adornedElement should not be null");
Debug.Assert(focusVisualStyle != null, "focusVisual should not be null");
- Control control = new Control();
- control.Style = focusVisualStyle;
+ Control control = new Control
+ {
+ Style = focusVisualStyle
+ };
_adorderChild = control;
IsClipEnabled = true;
IsHitTestVisible = false;
@@ -606,10 +608,12 @@ protected override Size ArrangeOverride(Size size)
rect = _hostToAdornedElement.TransformBounds(rect);
- Control control = new Control();
- control.Style = _focusVisualStyle;
- control.Width = rect.Width;
- control.Height = rect.Height;
+ Control control = new Control
+ {
+ Style = _focusVisualStyle,
+ Width = rect.Width,
+ Height = rect.Height
+ };
Canvas.SetLeft(control, rect.X);
Canvas.SetTop(control, rect.Y);
_canvasChildren.Add(control);
@@ -1063,8 +1067,10 @@ private bool Navigate(DependencyObject currentElement, TraversalRequest request,
}
else // FocusNavigationDirection
{
- TraversalRequest tr = new TraversalRequest(request.FocusNavigationDirection);
- tr.Wrapped = true;
+ TraversalRequest tr = new TraversalRequest(request.FocusNavigationDirection)
+ {
+ Wrapped = true
+ };
traversed = inputSink.TabInto(tr);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs
index c66b388311c..c8e026f3ff1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/ActiveXHost.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -966,9 +966,11 @@ private void DetachInterfacesInternal()
private NativeMethods.SIZE SetExtent(int width, int height)
{
- NativeMethods.SIZE sz = new NativeMethods.SIZE();
- sz.cx = width;
- sz.cy = height;
+ NativeMethods.SIZE sz = new NativeMethods.SIZE
+ {
+ cx = width,
+ cy = height
+ };
bool resetExtents = false;
try
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs
index 5bf598028fc..e2486208748 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006Reader.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -759,8 +759,10 @@ private void Process_LiteralContent()
}
else
{
- var xData = new System.Windows.Markup.XData();
- xData.Text = value;
+ var xData = new System.Windows.Markup.XData
+ {
+ Text = value
+ };
_xamlNodesWriter.WriteValue(xData);
}
@@ -885,8 +887,10 @@ private void Process_OptimizedStaticResource()
string propertyName = GetStaticExtensionValue(keyId, out memberType, out providedValue);
if (providedValue == null)
{
- var staticExtension = new System.Windows.Markup.StaticExtension(propertyName);
- staticExtension.MemberType = memberType;
+ var staticExtension = new System.Windows.Markup.StaticExtension(propertyName)
+ {
+ MemberType = memberType
+ };
providedValue = staticExtension.ProvideValue(null);
}
optimizedStaticResource.KeyValue = providedValue;
@@ -1310,8 +1314,10 @@ private void Process_KeyElementStart()
// Store a key record that can be accessed later.
// This is a complex scenario so we need to write to the keyList
- KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition, _context.SchemaContext);
- key.Flags = flags;
+ KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition, _context.SchemaContext)
+ {
+ Flags = flags
+ };
key.KeyNodeList.Writer.WriteStartObject(type);
@@ -1726,8 +1732,10 @@ private void Process_PropertyWithExtension()
}
else
{
- System.Windows.Markup.StaticExtension staticExtension = new System.Windows.Markup.StaticExtension((string)param);
- staticExtension.MemberType = memberType;
+ System.Windows.Markup.StaticExtension staticExtension = new System.Windows.Markup.StaticExtension((string)param)
+ {
+ MemberType = memberType
+ };
value = staticExtension;
}
handled = true;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs
index b95a231f7d5..83772983095 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/Baml2006SchemaContext.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -367,8 +367,10 @@ internal void AddXamlType(Int16 typeId, Int16 assemblyId, string typeName, TypeI
{
if (typeId == _bamlType.Count)
{
- BamlType type = new BamlType(assemblyId, typeName);
- type.Flags = flags;
+ BamlType type = new BamlType(assemblyId, typeName)
+ {
+ Flags = flags
+ };
_bamlType.Add(type);
}
else if (typeId > _bamlType.Count)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs
index ab6e970a51b..cae996c7f5e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownProperties.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1717,14 +1717,16 @@ private WpfKnownMember Create_BamlProperty_AccessText_Text()
{
Type type = typeof(System.Windows.Controls.AccessText);
DependencyProperty dp = System.Windows.Controls.AccessText.TextProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.AccessText)), // DeclaringType
"Text", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1766,14 +1768,16 @@ private WpfKnownMember Create_BamlProperty_Border_Background()
{
Type type = typeof(System.Windows.Controls.Border);
DependencyProperty dp = System.Windows.Controls.Border.BackgroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Border)), // DeclaringType
"Background", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1783,14 +1787,16 @@ private WpfKnownMember Create_BamlProperty_Border_BorderBrush()
{
Type type = typeof(System.Windows.Controls.Border);
DependencyProperty dp = System.Windows.Controls.Border.BorderBrushProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Border)), // DeclaringType
"BorderBrush", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1800,14 +1806,16 @@ private WpfKnownMember Create_BamlProperty_Border_BorderThickness()
{
Type type = typeof(System.Windows.Controls.Border);
DependencyProperty dp = System.Windows.Controls.Border.BorderThicknessProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Border)), // DeclaringType
"BorderThickness", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.ThicknessConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.ThicknessConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1817,14 +1825,16 @@ private WpfKnownMember Create_BamlProperty_ButtonBase_Command()
{
Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.CommandProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ButtonBase)), // DeclaringType
"Command", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Input.CommandConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.CommandConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1834,15 +1844,17 @@ private WpfKnownMember Create_BamlProperty_ButtonBase_CommandParameter()
{
Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.CommandParameterProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ButtonBase)), // DeclaringType
"CommandParameter", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1868,15 +1880,17 @@ private WpfKnownMember Create_BamlProperty_ButtonBase_IsPressed()
{
Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.IsPressedProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ButtonBase)), // DeclaringType
"IsPressed", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter),
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1886,14 +1900,16 @@ private WpfKnownMember Create_BamlProperty_ColumnDefinition_MaxWidth()
{
Type type = typeof(System.Windows.Controls.ColumnDefinition);
DependencyProperty dp = System.Windows.Controls.ColumnDefinition.MaxWidthProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ColumnDefinition)), // DeclaringType
"MaxWidth", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1903,14 +1919,16 @@ private WpfKnownMember Create_BamlProperty_ColumnDefinition_MinWidth()
{
Type type = typeof(System.Windows.Controls.ColumnDefinition);
DependencyProperty dp = System.Windows.Controls.ColumnDefinition.MinWidthProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ColumnDefinition)), // DeclaringType
"MinWidth", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1920,14 +1938,16 @@ private WpfKnownMember Create_BamlProperty_ColumnDefinition_Width()
{
Type type = typeof(System.Windows.Controls.ColumnDefinition);
DependencyProperty dp = System.Windows.Controls.ColumnDefinition.WidthProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ColumnDefinition)), // DeclaringType
"Width", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.GridLengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.GridLengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1937,15 +1957,17 @@ private WpfKnownMember Create_BamlProperty_ContentControl_Content()
{
Type type = typeof(System.Windows.Controls.ContentControl);
DependencyProperty dp = System.Windows.Controls.ContentControl.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -1987,15 +2009,17 @@ private WpfKnownMember Create_BamlProperty_ContentControl_HasContent()
{
Type type = typeof(System.Windows.Controls.ContentControl);
DependencyProperty dp = System.Windows.Controls.ContentControl.HasContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ContentControl)), // DeclaringType
"HasContent", // Name
dp, // DependencyProperty
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter),
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2005,14 +2029,16 @@ private WpfKnownMember Create_BamlProperty_ContentElement_Focusable()
{
Type type = typeof(System.Windows.ContentElement);
DependencyProperty dp = System.Windows.ContentElement.FocusableProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.ContentElement)), // DeclaringType
"Focusable", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2022,15 +2048,17 @@ private WpfKnownMember Create_BamlProperty_ContentPresenter_Content()
{
Type type = typeof(System.Windows.Controls.ContentPresenter);
DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2040,14 +2068,16 @@ private WpfKnownMember Create_BamlProperty_ContentPresenter_ContentSource()
{
Type type = typeof(System.Windows.Controls.ContentPresenter);
DependencyProperty dp = System.Windows.Controls.ContentPresenter.ContentSourceProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType
"ContentSource", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2089,14 +2119,16 @@ private WpfKnownMember Create_BamlProperty_ContentPresenter_RecognizesAccessKey(
{
Type type = typeof(System.Windows.Controls.ContentPresenter);
DependencyProperty dp = System.Windows.Controls.ContentPresenter.RecognizesAccessKeyProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ContentPresenter)), // DeclaringType
"RecognizesAccessKey", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2106,14 +2138,16 @@ private WpfKnownMember Create_BamlProperty_Control_Background()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.BackgroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"Background", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2123,14 +2157,16 @@ private WpfKnownMember Create_BamlProperty_Control_BorderBrush()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.BorderBrushProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"BorderBrush", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2140,14 +2176,16 @@ private WpfKnownMember Create_BamlProperty_Control_BorderThickness()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.BorderThicknessProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"BorderThickness", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.ThicknessConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.ThicknessConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2157,14 +2195,16 @@ private WpfKnownMember Create_BamlProperty_Control_FontFamily()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.FontFamilyProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"FontFamily", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2174,14 +2214,16 @@ private WpfKnownMember Create_BamlProperty_Control_FontSize()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.FontSizeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"FontSize", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontSizeConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontSizeConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2191,14 +2233,16 @@ private WpfKnownMember Create_BamlProperty_Control_FontStretch()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.FontStretchProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"FontStretch", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontStretchConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontStretchConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2208,14 +2252,16 @@ private WpfKnownMember Create_BamlProperty_Control_FontStyle()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.FontStyleProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"FontStyle", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontStyleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontStyleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2225,14 +2271,16 @@ private WpfKnownMember Create_BamlProperty_Control_FontWeight()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.FontWeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"FontWeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontWeightConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontWeightConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2242,14 +2290,16 @@ private WpfKnownMember Create_BamlProperty_Control_Foreground()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.ForegroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"Foreground", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2259,14 +2309,16 @@ private WpfKnownMember Create_BamlProperty_Control_HorizontalContentAlignment()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.HorizontalContentAlignmentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"HorizontalContentAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.HorizontalAlignment);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.HorizontalAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2276,14 +2328,16 @@ private WpfKnownMember Create_BamlProperty_Control_IsTabStop()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.IsTabStopProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"IsTabStop", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2293,14 +2347,16 @@ private WpfKnownMember Create_BamlProperty_Control_Padding()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.PaddingProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"Padding", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.ThicknessConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.ThicknessConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2310,14 +2366,16 @@ private WpfKnownMember Create_BamlProperty_Control_TabIndex()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.TabIndexProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"TabIndex", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.Int32Converter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.Int32Converter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2343,14 +2401,16 @@ private WpfKnownMember Create_BamlProperty_Control_VerticalContentAlignment()
{
Type type = typeof(System.Windows.Controls.Control);
DependencyProperty dp = System.Windows.Controls.Control.VerticalContentAlignmentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Control)), // DeclaringType
"VerticalContentAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.VerticalAlignment);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.VerticalAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2360,14 +2420,16 @@ private WpfKnownMember Create_BamlProperty_DockPanel_Dock()
{
Type type = typeof(System.Windows.Controls.DockPanel);
DependencyProperty dp = System.Windows.Controls.DockPanel.DockProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.DockPanel)), // DeclaringType
"Dock", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.Dock);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Dock)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2377,14 +2439,16 @@ private WpfKnownMember Create_BamlProperty_DockPanel_LastChildFill()
{
Type type = typeof(System.Windows.Controls.DockPanel);
DependencyProperty dp = System.Windows.Controls.DockPanel.LastChildFillProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.DockPanel)), // DeclaringType
"LastChildFill", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2474,14 +2538,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_FlowDirection()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.FlowDirectionProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"FlowDirection", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FlowDirection);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FlowDirection)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2491,14 +2557,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_Height()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.HeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"Height", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2508,14 +2576,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_HorizontalAlignment(
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.HorizontalAlignmentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"HorizontalAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.HorizontalAlignment);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.HorizontalAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2525,14 +2595,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_Margin()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.MarginProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"Margin", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.ThicknessConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.ThicknessConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2542,14 +2614,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_MaxHeight()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.MaxHeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"MaxHeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2559,14 +2633,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_MaxWidth()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.MaxWidthProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"MaxWidth", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2576,14 +2652,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_MinHeight()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.MinHeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"MinHeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2593,14 +2671,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_MinWidth()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.MinWidthProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"MinWidth", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2610,14 +2690,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_Name()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.NameProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"Name", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2643,14 +2725,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_VerticalAlignment()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.VerticalAlignmentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"VerticalAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.VerticalAlignment);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.VerticalAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2660,14 +2744,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_Width()
{
Type type = typeof(System.Windows.FrameworkElement);
DependencyProperty dp = System.Windows.FrameworkElement.WidthProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"Width", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2725,14 +2811,16 @@ private WpfKnownMember Create_BamlProperty_Grid_Column()
{
Type type = typeof(System.Windows.Controls.Grid);
DependencyProperty dp = System.Windows.Controls.Grid.ColumnProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"Column", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.Int32Converter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.Int32Converter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2742,14 +2830,16 @@ private WpfKnownMember Create_BamlProperty_Grid_ColumnSpan()
{
Type type = typeof(System.Windows.Controls.Grid);
DependencyProperty dp = System.Windows.Controls.Grid.ColumnSpanProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"ColumnSpan", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.Int32Converter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.Int32Converter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2759,14 +2849,16 @@ private WpfKnownMember Create_BamlProperty_Grid_Row()
{
Type type = typeof(System.Windows.Controls.Grid);
DependencyProperty dp = System.Windows.Controls.Grid.RowProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"Row", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.Int32Converter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.Int32Converter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2776,14 +2868,16 @@ private WpfKnownMember Create_BamlProperty_Grid_RowSpan()
{
Type type = typeof(System.Windows.Controls.Grid);
DependencyProperty dp = System.Windows.Controls.Grid.RowSpanProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"RowSpan", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.Int32Converter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.Int32Converter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2793,15 +2887,17 @@ private WpfKnownMember Create_BamlProperty_GridViewColumn_Header()
{
Type type = typeof(System.Windows.Controls.GridViewColumn);
DependencyProperty dp = System.Windows.Controls.GridViewColumn.HeaderProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.GridViewColumn)), // DeclaringType
"Header", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2811,15 +2907,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedContentControl_HasHeader()
{
Type type = typeof(System.Windows.Controls.HeaderedContentControl);
DependencyProperty dp = System.Windows.Controls.HeaderedContentControl.HasHeaderProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.HeaderedContentControl)), // DeclaringType
"HasHeader", // Name
dp, // DependencyProperty
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter),
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2829,15 +2927,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedContentControl_Header()
{
Type type = typeof(System.Windows.Controls.HeaderedContentControl);
DependencyProperty dp = System.Windows.Controls.HeaderedContentControl.HeaderProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.HeaderedContentControl)), // DeclaringType
"Header", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2879,15 +2979,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedItemsControl_HasHeader()
{
Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
DependencyProperty dp = System.Windows.Controls.HeaderedItemsControl.HasHeaderProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.HeaderedItemsControl)), // DeclaringType
"HasHeader", // Name
dp, // DependencyProperty
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter),
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2897,15 +2999,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedItemsControl_Header()
{
Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
DependencyProperty dp = System.Windows.Controls.HeaderedItemsControl.HeaderProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.HeaderedItemsControl)), // DeclaringType
"Header", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2947,14 +3051,16 @@ private WpfKnownMember Create_BamlProperty_Hyperlink_NavigateUri()
{
Type type = typeof(System.Windows.Documents.Hyperlink);
DependencyProperty dp = System.Windows.Documents.Hyperlink.NavigateUriProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Hyperlink)), // DeclaringType
"NavigateUri", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.UriTypeConverter);
+ )
+ {
+ TypeConverterType = typeof(System.UriTypeConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2964,14 +3070,16 @@ private WpfKnownMember Create_BamlProperty_Image_Source()
{
Type type = typeof(System.Windows.Controls.Image);
DependencyProperty dp = System.Windows.Controls.Image.SourceProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Image)), // DeclaringType
"Source", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -2981,14 +3089,16 @@ private WpfKnownMember Create_BamlProperty_Image_Stretch()
{
Type type = typeof(System.Windows.Controls.Image);
DependencyProperty dp = System.Windows.Controls.Image.StretchProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Image)), // DeclaringType
"Stretch", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.Stretch)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3126,15 +3236,17 @@ private WpfKnownMember Create_BamlProperty_Page_Content()
{
Type type = typeof(System.Windows.Controls.Page);
DependencyProperty dp = System.Windows.Controls.Page.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Page)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3144,14 +3256,16 @@ private WpfKnownMember Create_BamlProperty_Panel_Background()
{
Type type = typeof(System.Windows.Controls.Panel);
DependencyProperty dp = System.Windows.Controls.Panel.BackgroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Panel)), // DeclaringType
"Background", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3161,14 +3275,16 @@ private WpfKnownMember Create_BamlProperty_Path_Data()
{
Type type = typeof(System.Windows.Shapes.Path);
DependencyProperty dp = System.Windows.Shapes.Path.DataProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Path)), // DeclaringType
"Data", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3194,14 +3310,16 @@ private WpfKnownMember Create_BamlProperty_PathGeometry_Figures()
{
Type type = typeof(System.Windows.Media.PathGeometry);
DependencyProperty dp = System.Windows.Media.PathGeometry.FiguresProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.PathGeometry)), // DeclaringType
"Figures", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.PathFigureCollectionConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.PathFigureCollectionConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3227,14 +3345,16 @@ private WpfKnownMember Create_BamlProperty_Popup_IsOpen()
{
Type type = typeof(System.Windows.Controls.Primitives.Popup);
DependencyProperty dp = System.Windows.Controls.Primitives.Popup.IsOpenProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
"IsOpen", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3244,14 +3364,16 @@ private WpfKnownMember Create_BamlProperty_Popup_Placement()
{
Type type = typeof(System.Windows.Controls.Primitives.Popup);
DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PlacementProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
"Placement", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.Primitives.PlacementMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Primitives.PlacementMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3261,14 +3383,16 @@ private WpfKnownMember Create_BamlProperty_Popup_PopupAnimation()
{
Type type = typeof(System.Windows.Controls.Primitives.Popup);
DependencyProperty dp = System.Windows.Controls.Primitives.Popup.PopupAnimationProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Popup)), // DeclaringType
"PopupAnimation", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.Primitives.PopupAnimation);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Primitives.PopupAnimation)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3278,14 +3402,16 @@ private WpfKnownMember Create_BamlProperty_RowDefinition_Height()
{
Type type = typeof(System.Windows.Controls.RowDefinition);
DependencyProperty dp = System.Windows.Controls.RowDefinition.HeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.RowDefinition)), // DeclaringType
"Height", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.GridLengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.GridLengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3295,14 +3421,16 @@ private WpfKnownMember Create_BamlProperty_RowDefinition_MaxHeight()
{
Type type = typeof(System.Windows.Controls.RowDefinition);
DependencyProperty dp = System.Windows.Controls.RowDefinition.MaxHeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.RowDefinition)), // DeclaringType
"MaxHeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3312,14 +3440,16 @@ private WpfKnownMember Create_BamlProperty_RowDefinition_MinHeight()
{
Type type = typeof(System.Windows.Controls.RowDefinition);
DependencyProperty dp = System.Windows.Controls.RowDefinition.MinHeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.RowDefinition)), // DeclaringType
"MinHeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3329,14 +3459,16 @@ private WpfKnownMember Create_BamlProperty_ScrollViewer_CanContentScroll()
{
Type type = typeof(System.Windows.Controls.ScrollViewer);
DependencyProperty dp = System.Windows.Controls.ScrollViewer.CanContentScrollProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ScrollViewer)), // DeclaringType
"CanContentScroll", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3346,14 +3478,16 @@ private WpfKnownMember Create_BamlProperty_ScrollViewer_HorizontalScrollBarVisib
{
Type type = typeof(System.Windows.Controls.ScrollViewer);
DependencyProperty dp = System.Windows.Controls.ScrollViewer.HorizontalScrollBarVisibilityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ScrollViewer)), // DeclaringType
"HorizontalScrollBarVisibility", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3363,14 +3497,16 @@ private WpfKnownMember Create_BamlProperty_ScrollViewer_VerticalScrollBarVisibil
{
Type type = typeof(System.Windows.Controls.ScrollViewer);
DependencyProperty dp = System.Windows.Controls.ScrollViewer.VerticalScrollBarVisibilityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ScrollViewer)), // DeclaringType
"VerticalScrollBarVisibility", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3380,14 +3516,16 @@ private WpfKnownMember Create_BamlProperty_Shape_Fill()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.FillProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"Fill", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3397,14 +3535,16 @@ private WpfKnownMember Create_BamlProperty_Shape_Stroke()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StrokeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"Stroke", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3414,14 +3554,16 @@ private WpfKnownMember Create_BamlProperty_Shape_StrokeThickness()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StrokeThicknessProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"StrokeThickness", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3431,14 +3573,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_Background()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.BackgroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"Background", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3448,14 +3592,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_FontFamily()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.FontFamilyProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"FontFamily", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3465,14 +3611,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_FontSize()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.FontSizeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"FontSize", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontSizeConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontSizeConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3482,14 +3630,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_FontStretch()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.FontStretchProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"FontStretch", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontStretchConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontStretchConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3499,14 +3649,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_FontStyle()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.FontStyleProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"FontStyle", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontStyleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontStyleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3516,14 +3668,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_FontWeight()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.FontWeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"FontWeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontWeightConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontWeightConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3533,14 +3687,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_Foreground()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.ForegroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"Foreground", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3550,14 +3706,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_Text()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.TextProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"Text", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3567,14 +3725,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_TextDecorations()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.TextDecorationsProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"TextDecorations", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.TextDecorationCollectionConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextDecorationCollectionConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3584,14 +3744,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_TextTrimming()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.TextTrimmingProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"TextTrimming", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.TextTrimming);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextTrimming)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3601,14 +3763,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_TextWrapping()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.TextWrappingProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"TextWrapping", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.TextWrapping);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextWrapping)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3618,14 +3782,16 @@ private WpfKnownMember Create_BamlProperty_TextBox_Text()
{
Type type = typeof(System.Windows.Controls.TextBox);
DependencyProperty dp = System.Windows.Controls.TextBox.TextProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType
"Text", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3641,8 +3807,10 @@ private WpfKnownMember Create_BamlProperty_TextBox_IsReadOnly()
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3652,14 +3820,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_Background()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.BackgroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"Background", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3669,14 +3839,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_FontFamily()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.FontFamilyProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"FontFamily", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3686,14 +3858,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_FontSize()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.FontSizeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"FontSize", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontSizeConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontSizeConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3703,14 +3877,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_FontStretch()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.FontStretchProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"FontStretch", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontStretchConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontStretchConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3720,14 +3896,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_FontStyle()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.FontStyleProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"FontStyle", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontStyleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontStyleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3737,14 +3915,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_FontWeight()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.FontWeightProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"FontWeight", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.FontWeightConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.FontWeightConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3754,14 +3934,16 @@ private WpfKnownMember Create_BamlProperty_TextElement_Foreground()
{
Type type = typeof(System.Windows.Documents.TextElement);
DependencyProperty dp = System.Windows.Documents.TextElement.ForegroundProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TextElement)), // DeclaringType
"Foreground", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3787,14 +3969,16 @@ private WpfKnownMember Create_BamlProperty_Track_IsDirectionReversed()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
DependencyProperty dp = System.Windows.Controls.Primitives.Track.IsDirectionReversedProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"IsDirectionReversed", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3804,14 +3988,16 @@ private WpfKnownMember Create_BamlProperty_Track_Maximum()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
DependencyProperty dp = System.Windows.Controls.Primitives.Track.MaximumProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"Maximum", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3821,14 +4007,16 @@ private WpfKnownMember Create_BamlProperty_Track_Minimum()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
DependencyProperty dp = System.Windows.Controls.Primitives.Track.MinimumProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"Minimum", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3838,14 +4026,16 @@ private WpfKnownMember Create_BamlProperty_Track_Orientation()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
DependencyProperty dp = System.Windows.Controls.Primitives.Track.OrientationProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"Orientation", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.Orientation);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Orientation)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3855,14 +4045,16 @@ private WpfKnownMember Create_BamlProperty_Track_Value()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
DependencyProperty dp = System.Windows.Controls.Primitives.Track.ValueProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"Value", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3872,14 +4064,16 @@ private WpfKnownMember Create_BamlProperty_Track_ViewportSize()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
DependencyProperty dp = System.Windows.Controls.Primitives.Track.ViewportSizeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"ViewportSize", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3921,14 +4115,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_ClipToBounds()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.ClipToBoundsProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"ClipToBounds", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3938,14 +4134,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_Focusable()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.FocusableProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"Focusable", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3955,14 +4153,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_IsEnabled()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.IsEnabledProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"IsEnabled", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3972,14 +4172,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_RenderTransform()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.RenderTransformProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"RenderTransform", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -3989,14 +4191,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_Visibility()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.VisibilityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"Visibility", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Visibility);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Visibility)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4006,14 +4210,16 @@ private WpfKnownMember Create_BamlProperty_Viewport3D_Children()
{
Type type = typeof(System.Windows.Controls.Viewport3D);
DependencyProperty dp = System.Windows.Controls.Viewport3D.ChildrenProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Viewport3D)), // DeclaringType
"Children", // Name
dp, // DependencyProperty
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4022,15 +4228,17 @@ private WpfKnownMember Create_BamlProperty_Viewport3D_Children()
private WpfKnownMember Create_BamlProperty_AdornedElementPlaceholder_Child()
{
Type type = typeof(System.Windows.Controls.AdornedElementPlaceholder);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.AdornedElementPlaceholder)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.AdornedElementPlaceholder)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.AdornedElementPlaceholder)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.AdornedElementPlaceholder)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4039,15 +4247,17 @@ private WpfKnownMember Create_BamlProperty_AdornedElementPlaceholder_Child()
private WpfKnownMember Create_BamlProperty_AdornerDecorator_Child()
{
Type type = typeof(System.Windows.Documents.AdornerDecorator);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.AdornerDecorator)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.AdornerDecorator)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.AdornerDecorator)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.AdornerDecorator)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4056,15 +4266,17 @@ private WpfKnownMember Create_BamlProperty_AdornerDecorator_Child()
private WpfKnownMember Create_BamlProperty_AnchoredBlock_Blocks()
{
Type type = typeof(System.Windows.Documents.AnchoredBlock);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.AnchoredBlock)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.AnchoredBlock)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.AnchoredBlock)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4073,15 +4285,17 @@ private WpfKnownMember Create_BamlProperty_AnchoredBlock_Blocks()
private WpfKnownMember Create_BamlProperty_ArrayExtension_Items()
{
Type type = typeof(System.Windows.Markup.ArrayExtension);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Markup.ArrayExtension)), // DeclaringType
"Items", // Name
typeof(System.Collections.IList), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Markup.ArrayExtension)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Markup.ArrayExtension)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4090,15 +4304,17 @@ private WpfKnownMember Create_BamlProperty_ArrayExtension_Items()
private WpfKnownMember Create_BamlProperty_BlockUIContainer_Child()
{
Type type = typeof(System.Windows.Documents.BlockUIContainer);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.BlockUIContainer)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.BlockUIContainer)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.BlockUIContainer)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.BlockUIContainer)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4107,15 +4323,17 @@ private WpfKnownMember Create_BamlProperty_BlockUIContainer_Child()
private WpfKnownMember Create_BamlProperty_Bold_Inlines()
{
Type type = typeof(System.Windows.Documents.Bold);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Bold)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Bold)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Bold)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4124,15 +4342,17 @@ private WpfKnownMember Create_BamlProperty_Bold_Inlines()
private WpfKnownMember Create_BamlProperty_BooleanAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.BooleanKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.BooleanKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.BooleanKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4141,15 +4361,17 @@ private WpfKnownMember Create_BamlProperty_BooleanAnimationUsingKeyFrames_KeyFra
private WpfKnownMember Create_BamlProperty_Border_Child()
{
Type type = typeof(System.Windows.Controls.Border);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Border)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Border)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Border)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Border)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4158,15 +4380,17 @@ private WpfKnownMember Create_BamlProperty_Border_Child()
private WpfKnownMember Create_BamlProperty_BulletDecorator_Child()
{
Type type = typeof(System.Windows.Controls.Primitives.BulletDecorator);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.BulletDecorator)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.BulletDecorator)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.BulletDecorator)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4176,15 +4400,17 @@ private WpfKnownMember Create_BamlProperty_Button_Content()
{
Type type = typeof(System.Windows.Controls.Button);
DependencyProperty dp = System.Windows.Controls.Button.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Button)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4194,15 +4420,17 @@ private WpfKnownMember Create_BamlProperty_ButtonBase_Content()
{
Type type = typeof(System.Windows.Controls.Primitives.ButtonBase);
DependencyProperty dp = System.Windows.Controls.Primitives.ButtonBase.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ButtonBase)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4211,15 +4439,17 @@ private WpfKnownMember Create_BamlProperty_ButtonBase_Content()
private WpfKnownMember Create_BamlProperty_ByteAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.ByteAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.ByteAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.ByteKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.ByteAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ByteKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.ByteAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.ByteAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ByteKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.ByteAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4228,15 +4458,17 @@ private WpfKnownMember Create_BamlProperty_ByteAnimationUsingKeyFrames_KeyFrames
private WpfKnownMember Create_BamlProperty_Canvas_Children()
{
Type type = typeof(System.Windows.Controls.Canvas);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Canvas)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Canvas)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4245,15 +4477,17 @@ private WpfKnownMember Create_BamlProperty_Canvas_Children()
private WpfKnownMember Create_BamlProperty_CharAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.CharAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.CharAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.CharKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.CharAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.CharKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.CharAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.CharAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.CharKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.CharAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4263,15 +4497,17 @@ private WpfKnownMember Create_BamlProperty_CheckBox_Content()
{
Type type = typeof(System.Windows.Controls.CheckBox);
DependencyProperty dp = System.Windows.Controls.CheckBox.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.CheckBox)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4280,15 +4516,17 @@ private WpfKnownMember Create_BamlProperty_CheckBox_Content()
private WpfKnownMember Create_BamlProperty_ColorAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.ColorAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.ColorAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.ColorKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.ColorAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ColorKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.ColorAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.ColorAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ColorKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.ColorAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4297,15 +4535,17 @@ private WpfKnownMember Create_BamlProperty_ColorAnimationUsingKeyFrames_KeyFrame
private WpfKnownMember Create_BamlProperty_ComboBox_Items()
{
Type type = typeof(System.Windows.Controls.ComboBox);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ComboBox)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ComboBox)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ComboBox)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4315,15 +4555,17 @@ private WpfKnownMember Create_BamlProperty_ComboBoxItem_Content()
{
Type type = typeof(System.Windows.Controls.ComboBoxItem);
DependencyProperty dp = System.Windows.Controls.ComboBoxItem.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ComboBoxItem)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4332,15 +4574,17 @@ private WpfKnownMember Create_BamlProperty_ComboBoxItem_Content()
private WpfKnownMember Create_BamlProperty_ContextMenu_Items()
{
Type type = typeof(System.Windows.Controls.ContextMenu);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ContextMenu)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ContextMenu)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ContextMenu)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4349,15 +4593,17 @@ private WpfKnownMember Create_BamlProperty_ContextMenu_Items()
private WpfKnownMember Create_BamlProperty_ControlTemplate_VisualTree()
{
Type type = typeof(System.Windows.Controls.ControlTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType
"VisualTree", // Name
typeof(System.Windows.FrameworkElementFactory), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.ControlTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ControlTemplate)target).VisualTree; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4366,15 +4612,17 @@ private WpfKnownMember Create_BamlProperty_ControlTemplate_VisualTree()
private WpfKnownMember Create_BamlProperty_DataTemplate_VisualTree()
{
Type type = typeof(System.Windows.DataTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
"VisualTree", // Name
typeof(System.Windows.FrameworkElementFactory), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).VisualTree; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.DataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).VisualTree; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4383,15 +4631,17 @@ private WpfKnownMember Create_BamlProperty_DataTemplate_VisualTree()
private WpfKnownMember Create_BamlProperty_DataTrigger_Setters()
{
Type type = typeof(System.Windows.DataTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTrigger)), // DeclaringType
"Setters", // Name
typeof(System.Windows.SetterBaseCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTrigger)target).Setters; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTrigger)target).Setters; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4400,15 +4650,17 @@ private WpfKnownMember Create_BamlProperty_DataTrigger_Setters()
private WpfKnownMember Create_BamlProperty_DecimalAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.DecimalKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.DecimalKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.DecimalKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4417,15 +4669,17 @@ private WpfKnownMember Create_BamlProperty_DecimalAnimationUsingKeyFrames_KeyFra
private WpfKnownMember Create_BamlProperty_Decorator_Child()
{
Type type = typeof(System.Windows.Controls.Decorator);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Decorator)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Decorator)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Decorator)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Decorator)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4434,15 +4688,17 @@ private WpfKnownMember Create_BamlProperty_Decorator_Child()
private WpfKnownMember Create_BamlProperty_DockPanel_Children()
{
Type type = typeof(System.Windows.Controls.DockPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.DockPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.DockPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.DockPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4467,15 +4723,17 @@ private WpfKnownMember Create_BamlProperty_DocumentViewer_Document()
private WpfKnownMember Create_BamlProperty_DoubleAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.DoubleKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.DoubleKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.DoubleKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4484,15 +4742,17 @@ private WpfKnownMember Create_BamlProperty_DoubleAnimationUsingKeyFrames_KeyFram
private WpfKnownMember Create_BamlProperty_EventTrigger_Actions()
{
Type type = typeof(System.Windows.EventTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.EventTrigger)), // DeclaringType
"Actions", // Name
typeof(System.Windows.TriggerActionCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.EventTrigger)target).Actions; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.EventTrigger)target).Actions; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4502,15 +4762,17 @@ private WpfKnownMember Create_BamlProperty_Expander_Content()
{
Type type = typeof(System.Windows.Controls.Expander);
DependencyProperty dp = System.Windows.Controls.Expander.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Expander)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4519,15 +4781,17 @@ private WpfKnownMember Create_BamlProperty_Expander_Content()
private WpfKnownMember Create_BamlProperty_Figure_Blocks()
{
Type type = typeof(System.Windows.Documents.Figure);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Figure)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Figure)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Figure)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4536,15 +4800,17 @@ private WpfKnownMember Create_BamlProperty_Figure_Blocks()
private WpfKnownMember Create_BamlProperty_FixedDocument_Pages()
{
Type type = typeof(System.Windows.Documents.FixedDocument);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.FixedDocument)), // DeclaringType
"Pages", // Name
typeof(System.Windows.Documents.PageContentCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FixedDocument)target).Pages; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.FixedDocument)target).Pages; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4553,15 +4819,17 @@ private WpfKnownMember Create_BamlProperty_FixedDocument_Pages()
private WpfKnownMember Create_BamlProperty_FixedDocumentSequence_References()
{
Type type = typeof(System.Windows.Documents.FixedDocumentSequence);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.FixedDocumentSequence)), // DeclaringType
"References", // Name
typeof(System.Windows.Documents.DocumentReferenceCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FixedDocumentSequence)target).References; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.FixedDocumentSequence)target).References; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4570,15 +4838,17 @@ private WpfKnownMember Create_BamlProperty_FixedDocumentSequence_References()
private WpfKnownMember Create_BamlProperty_FixedPage_Children()
{
Type type = typeof(System.Windows.Documents.FixedPage);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.FixedPage)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FixedPage)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.FixedPage)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4587,15 +4857,17 @@ private WpfKnownMember Create_BamlProperty_FixedPage_Children()
private WpfKnownMember Create_BamlProperty_Floater_Blocks()
{
Type type = typeof(System.Windows.Documents.Floater);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Floater)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Floater)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Floater)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4604,15 +4876,17 @@ private WpfKnownMember Create_BamlProperty_Floater_Blocks()
private WpfKnownMember Create_BamlProperty_FlowDocument_Blocks()
{
Type type = typeof(System.Windows.Documents.FlowDocument);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.FlowDocument)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.FlowDocument)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.FlowDocument)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4637,15 +4911,17 @@ private WpfKnownMember Create_BamlProperty_FlowDocumentPageViewer_Document()
private WpfKnownMember Create_BamlProperty_FrameworkTemplate_VisualTree()
{
Type type = typeof(System.Windows.FrameworkTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkTemplate)), // DeclaringType
"VisualTree", // Name
typeof(System.Windows.FrameworkElementFactory), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkTemplate)target).VisualTree; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.FrameworkTemplate)target).VisualTree; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4654,15 +4930,17 @@ private WpfKnownMember Create_BamlProperty_FrameworkTemplate_VisualTree()
private WpfKnownMember Create_BamlProperty_Grid_Children()
{
Type type = typeof(System.Windows.Controls.Grid);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Grid)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Grid)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4671,15 +4949,17 @@ private WpfKnownMember Create_BamlProperty_Grid_Children()
private WpfKnownMember Create_BamlProperty_GridView_Columns()
{
Type type = typeof(System.Windows.Controls.GridView);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.GridView)), // DeclaringType
"Columns", // Name
typeof(System.Windows.Controls.GridViewColumnCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.GridView)target).Columns; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.GridView)target).Columns; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4689,15 +4969,17 @@ private WpfKnownMember Create_BamlProperty_GridViewColumnHeader_Content()
{
Type type = typeof(System.Windows.Controls.GridViewColumnHeader);
DependencyProperty dp = System.Windows.Controls.GridViewColumnHeader.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.GridViewColumnHeader)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4707,15 +4989,17 @@ private WpfKnownMember Create_BamlProperty_GroupBox_Content()
{
Type type = typeof(System.Windows.Controls.GroupBox);
DependencyProperty dp = System.Windows.Controls.GroupBox.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.GroupBox)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4725,15 +5009,17 @@ private WpfKnownMember Create_BamlProperty_GroupItem_Content()
{
Type type = typeof(System.Windows.Controls.GroupItem);
DependencyProperty dp = System.Windows.Controls.GroupItem.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.GroupItem)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4743,15 +5029,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedContentControl_Content()
{
Type type = typeof(System.Windows.Controls.HeaderedContentControl);
DependencyProperty dp = System.Windows.Controls.HeaderedContentControl.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.HeaderedContentControl)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4760,15 +5048,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedContentControl_Content()
private WpfKnownMember Create_BamlProperty_HeaderedItemsControl_Items()
{
Type type = typeof(System.Windows.Controls.HeaderedItemsControl);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.HeaderedItemsControl)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.HeaderedItemsControl)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.HeaderedItemsControl)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4777,15 +5067,17 @@ private WpfKnownMember Create_BamlProperty_HeaderedItemsControl_Items()
private WpfKnownMember Create_BamlProperty_HierarchicalDataTemplate_VisualTree()
{
Type type = typeof(System.Windows.HierarchicalDataTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.HierarchicalDataTemplate)), // DeclaringType
"VisualTree", // Name
typeof(System.Windows.FrameworkElementFactory), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.HierarchicalDataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.HierarchicalDataTemplate)target).VisualTree; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.HierarchicalDataTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.HierarchicalDataTemplate)target).VisualTree; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4794,15 +5086,17 @@ private WpfKnownMember Create_BamlProperty_HierarchicalDataTemplate_VisualTree()
private WpfKnownMember Create_BamlProperty_Hyperlink_Inlines()
{
Type type = typeof(System.Windows.Documents.Hyperlink);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Hyperlink)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Hyperlink)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Hyperlink)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4811,15 +5105,17 @@ private WpfKnownMember Create_BamlProperty_Hyperlink_Inlines()
private WpfKnownMember Create_BamlProperty_InkCanvas_Children()
{
Type type = typeof(System.Windows.Controls.InkCanvas);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.InkCanvas)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.InkCanvas)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.InkCanvas)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4828,15 +5124,17 @@ private WpfKnownMember Create_BamlProperty_InkCanvas_Children()
private WpfKnownMember Create_BamlProperty_InkPresenter_Child()
{
Type type = typeof(System.Windows.Controls.InkPresenter);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.InkPresenter)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.InkPresenter)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.InkPresenter)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.InkPresenter)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4845,15 +5143,17 @@ private WpfKnownMember Create_BamlProperty_InkPresenter_Child()
private WpfKnownMember Create_BamlProperty_InlineUIContainer_Child()
{
Type type = typeof(System.Windows.Documents.InlineUIContainer);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.InlineUIContainer)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.InlineUIContainer)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.InlineUIContainer)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.InlineUIContainer)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4862,16 +5162,18 @@ private WpfKnownMember Create_BamlProperty_InlineUIContainer_Child()
private WpfKnownMember Create_BamlProperty_InputScopeName_NameValue()
{
Type type = typeof(System.Windows.Input.InputScopeName);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.InputScopeName)), // DeclaringType
"NameValue", // Name
typeof(System.Windows.Input.InputScopeNameValue), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Input.InputScopeNameValue);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Input.InputScopeName)target).NameValue = (System.Windows.Input.InputScopeNameValue)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Input.InputScopeName)target).NameValue; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.InputScopeNameValue),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Input.InputScopeName)target).NameValue = (System.Windows.Input.InputScopeNameValue)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Input.InputScopeName)target).NameValue; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4880,15 +5182,17 @@ private WpfKnownMember Create_BamlProperty_InputScopeName_NameValue()
private WpfKnownMember Create_BamlProperty_Int16AnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.Int16AnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Int16AnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.Int16KeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.Int16AnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Int16KeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.Int16AnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.Int16AnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Int16KeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.Int16AnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4897,15 +5201,17 @@ private WpfKnownMember Create_BamlProperty_Int16AnimationUsingKeyFrames_KeyFrame
private WpfKnownMember Create_BamlProperty_Int32AnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.Int32AnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Int32AnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.Int32KeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.Int32AnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Int32KeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.Int32AnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.Int32AnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Int32KeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.Int32AnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4914,15 +5220,17 @@ private WpfKnownMember Create_BamlProperty_Int32AnimationUsingKeyFrames_KeyFrame
private WpfKnownMember Create_BamlProperty_Int64AnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.Int64AnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Int64AnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.Int64KeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.Int64AnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Int64KeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.Int64AnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.Int64AnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Int64KeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.Int64AnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4931,15 +5239,17 @@ private WpfKnownMember Create_BamlProperty_Int64AnimationUsingKeyFrames_KeyFrame
private WpfKnownMember Create_BamlProperty_Italic_Inlines()
{
Type type = typeof(System.Windows.Documents.Italic);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Italic)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Italic)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Italic)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4948,15 +5258,17 @@ private WpfKnownMember Create_BamlProperty_Italic_Inlines()
private WpfKnownMember Create_BamlProperty_ItemsControl_Items()
{
Type type = typeof(System.Windows.Controls.ItemsControl);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsControl)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ItemsControl)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4965,15 +5277,17 @@ private WpfKnownMember Create_BamlProperty_ItemsControl_Items()
private WpfKnownMember Create_BamlProperty_ItemsPanelTemplate_VisualTree()
{
Type type = typeof(System.Windows.Controls.ItemsPanelTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ItemsPanelTemplate)), // DeclaringType
"VisualTree", // Name
typeof(System.Windows.FrameworkElementFactory), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ItemsPanelTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsPanelTemplate)target).VisualTree; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.ItemsPanelTemplate)target).VisualTree = (System.Windows.FrameworkElementFactory)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ItemsPanelTemplate)target).VisualTree; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -4983,15 +5297,17 @@ private WpfKnownMember Create_BamlProperty_Label_Content()
{
Type type = typeof(System.Windows.Controls.Label);
DependencyProperty dp = System.Windows.Controls.Label.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Label)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5016,15 +5332,17 @@ private WpfKnownMember Create_BamlProperty_LinearGradientBrush_GradientStops()
private WpfKnownMember Create_BamlProperty_List_ListItems()
{
Type type = typeof(System.Windows.Documents.List);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.List)), // DeclaringType
"ListItems", // Name
typeof(System.Windows.Documents.ListItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.List)target).ListItems; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.List)target).ListItems; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5033,15 +5351,17 @@ private WpfKnownMember Create_BamlProperty_List_ListItems()
private WpfKnownMember Create_BamlProperty_ListBox_Items()
{
Type type = typeof(System.Windows.Controls.ListBox);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ListBox)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ListBox)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ListBox)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5051,15 +5371,17 @@ private WpfKnownMember Create_BamlProperty_ListBoxItem_Content()
{
Type type = typeof(System.Windows.Controls.ListBoxItem);
DependencyProperty dp = System.Windows.Controls.ListBoxItem.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ListBoxItem)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5068,15 +5390,17 @@ private WpfKnownMember Create_BamlProperty_ListBoxItem_Content()
private WpfKnownMember Create_BamlProperty_ListItem_Blocks()
{
Type type = typeof(System.Windows.Documents.ListItem);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.ListItem)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.ListItem)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.ListItem)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5085,15 +5409,17 @@ private WpfKnownMember Create_BamlProperty_ListItem_Blocks()
private WpfKnownMember Create_BamlProperty_ListView_Items()
{
Type type = typeof(System.Windows.Controls.ListView);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ListView)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ListView)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ListView)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5103,15 +5429,17 @@ private WpfKnownMember Create_BamlProperty_ListViewItem_Content()
{
Type type = typeof(System.Windows.Controls.ListViewItem);
DependencyProperty dp = System.Windows.Controls.ListViewItem.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ListViewItem)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5120,15 +5448,17 @@ private WpfKnownMember Create_BamlProperty_ListViewItem_Content()
private WpfKnownMember Create_BamlProperty_MatrixAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.MatrixKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.MatrixKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.MatrixKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5137,15 +5467,17 @@ private WpfKnownMember Create_BamlProperty_MatrixAnimationUsingKeyFrames_KeyFram
private WpfKnownMember Create_BamlProperty_Menu_Items()
{
Type type = typeof(System.Windows.Controls.Menu);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Menu)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Menu)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Menu)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5154,15 +5486,17 @@ private WpfKnownMember Create_BamlProperty_Menu_Items()
private WpfKnownMember Create_BamlProperty_MenuBase_Items()
{
Type type = typeof(System.Windows.Controls.Primitives.MenuBase);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.MenuBase)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.MenuBase)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.MenuBase)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5171,15 +5505,17 @@ private WpfKnownMember Create_BamlProperty_MenuBase_Items()
private WpfKnownMember Create_BamlProperty_MenuItem_Items()
{
Type type = typeof(System.Windows.Controls.MenuItem);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.MenuItem)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.MenuItem)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.MenuItem)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5188,15 +5524,17 @@ private WpfKnownMember Create_BamlProperty_MenuItem_Items()
private WpfKnownMember Create_BamlProperty_ModelVisual3D_Children()
{
Type type = typeof(System.Windows.Media.Media3D.ModelVisual3D);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Media3D.ModelVisual3D)), // DeclaringType
"Children", // Name
typeof(System.Windows.Media.Media3D.Visual3DCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Media3D.ModelVisual3D)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Media3D.ModelVisual3D)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5205,15 +5543,17 @@ private WpfKnownMember Create_BamlProperty_ModelVisual3D_Children()
private WpfKnownMember Create_BamlProperty_MultiBinding_Bindings()
{
Type type = typeof(System.Windows.Data.MultiBinding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.MultiBinding)), // DeclaringType
"Bindings", // Name
typeof(System.Collections.ObjectModel.Collection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.MultiBinding)target).Bindings; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.MultiBinding)target).Bindings; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5222,15 +5562,17 @@ private WpfKnownMember Create_BamlProperty_MultiBinding_Bindings()
private WpfKnownMember Create_BamlProperty_MultiDataTrigger_Setters()
{
Type type = typeof(System.Windows.MultiDataTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.MultiDataTrigger)), // DeclaringType
"Setters", // Name
typeof(System.Windows.SetterBaseCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.MultiDataTrigger)target).Setters; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.MultiDataTrigger)target).Setters; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5239,15 +5581,17 @@ private WpfKnownMember Create_BamlProperty_MultiDataTrigger_Setters()
private WpfKnownMember Create_BamlProperty_MultiTrigger_Setters()
{
Type type = typeof(System.Windows.MultiTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.MultiTrigger)), // DeclaringType
"Setters", // Name
typeof(System.Windows.SetterBaseCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.MultiTrigger)target).Setters; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.MultiTrigger)target).Setters; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5256,15 +5600,17 @@ private WpfKnownMember Create_BamlProperty_MultiTrigger_Setters()
private WpfKnownMember Create_BamlProperty_ObjectAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.ObjectKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ObjectKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ObjectKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5273,15 +5619,17 @@ private WpfKnownMember Create_BamlProperty_ObjectAnimationUsingKeyFrames_KeyFram
private WpfKnownMember Create_BamlProperty_PageContent_Child()
{
Type type = typeof(System.Windows.Documents.PageContent);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.PageContent)), // DeclaringType
"Child", // Name
typeof(System.Windows.Documents.FixedPage), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Documents.PageContent)target).Child = (System.Windows.Documents.FixedPage)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.PageContent)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Documents.PageContent)target).Child = (System.Windows.Documents.FixedPage)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.PageContent)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5291,15 +5639,17 @@ private WpfKnownMember Create_BamlProperty_PageFunctionBase_Content()
{
Type type = typeof(System.Windows.Navigation.PageFunctionBase);
DependencyProperty dp = System.Windows.Navigation.PageFunctionBase.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Navigation.PageFunctionBase)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5308,15 +5658,17 @@ private WpfKnownMember Create_BamlProperty_PageFunctionBase_Content()
private WpfKnownMember Create_BamlProperty_Panel_Children()
{
Type type = typeof(System.Windows.Controls.Panel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Panel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Panel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Panel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5325,15 +5677,17 @@ private WpfKnownMember Create_BamlProperty_Panel_Children()
private WpfKnownMember Create_BamlProperty_Paragraph_Inlines()
{
Type type = typeof(System.Windows.Documents.Paragraph);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Paragraph)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Paragraph)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Paragraph)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5358,15 +5712,17 @@ private WpfKnownMember Create_BamlProperty_ParallelTimeline_Children()
private WpfKnownMember Create_BamlProperty_Point3DAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.Point3DKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Point3DKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Point3DKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5375,15 +5731,17 @@ private WpfKnownMember Create_BamlProperty_Point3DAnimationUsingKeyFrames_KeyFra
private WpfKnownMember Create_BamlProperty_PointAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.PointAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.PointAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.PointKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.PointAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.PointKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.PointAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.PointAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.PointKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.PointAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5392,15 +5750,17 @@ private WpfKnownMember Create_BamlProperty_PointAnimationUsingKeyFrames_KeyFrame
private WpfKnownMember Create_BamlProperty_PriorityBinding_Bindings()
{
Type type = typeof(System.Windows.Data.PriorityBinding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.PriorityBinding)), // DeclaringType
"Bindings", // Name
typeof(System.Collections.ObjectModel.Collection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.PriorityBinding)target).Bindings; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.PriorityBinding)target).Bindings; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5409,15 +5769,17 @@ private WpfKnownMember Create_BamlProperty_PriorityBinding_Bindings()
private WpfKnownMember Create_BamlProperty_QuaternionAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.QuaternionKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.QuaternionKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.QuaternionKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5443,15 +5805,17 @@ private WpfKnownMember Create_BamlProperty_RadioButton_Content()
{
Type type = typeof(System.Windows.Controls.RadioButton);
DependencyProperty dp = System.Windows.Controls.RadioButton.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.RadioButton)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5460,15 +5824,17 @@ private WpfKnownMember Create_BamlProperty_RadioButton_Content()
private WpfKnownMember Create_BamlProperty_RectAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.RectAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.RectAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.RectKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.RectAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.RectKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.RectAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.RectAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.RectKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.RectAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5478,15 +5844,17 @@ private WpfKnownMember Create_BamlProperty_RepeatButton_Content()
{
Type type = typeof(System.Windows.Controls.Primitives.RepeatButton);
DependencyProperty dp = System.Windows.Controls.Primitives.RepeatButton.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.RepeatButton)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5495,15 +5863,17 @@ private WpfKnownMember Create_BamlProperty_RepeatButton_Content()
private WpfKnownMember Create_BamlProperty_RichTextBox_Document()
{
Type type = typeof(System.Windows.Controls.RichTextBox);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.RichTextBox)), // DeclaringType
"Document", // Name
typeof(System.Windows.Documents.FlowDocument), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.RichTextBox)target).Document = (System.Windows.Documents.FlowDocument)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.RichTextBox)target).Document; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.RichTextBox)target).Document = (System.Windows.Documents.FlowDocument)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.RichTextBox)target).Document; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5519,8 +5889,10 @@ private WpfKnownMember Create_BamlProperty_RichTextBox_IsReadOnly()
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5529,15 +5901,17 @@ private WpfKnownMember Create_BamlProperty_RichTextBox_IsReadOnly()
private WpfKnownMember Create_BamlProperty_Rotation3DAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.Rotation3DKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Rotation3DKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Rotation3DKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5547,14 +5921,16 @@ private WpfKnownMember Create_BamlProperty_Run_Text()
{
Type type = typeof(System.Windows.Documents.Run);
DependencyProperty dp = System.Windows.Documents.Run.TextProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Run)), // DeclaringType
"Text", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5564,15 +5940,17 @@ private WpfKnownMember Create_BamlProperty_ScrollViewer_Content()
{
Type type = typeof(System.Windows.Controls.ScrollViewer);
DependencyProperty dp = System.Windows.Controls.ScrollViewer.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ScrollViewer)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5581,15 +5959,17 @@ private WpfKnownMember Create_BamlProperty_ScrollViewer_Content()
private WpfKnownMember Create_BamlProperty_Section_Blocks()
{
Type type = typeof(System.Windows.Documents.Section);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Section)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Section)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Section)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5598,15 +5978,17 @@ private WpfKnownMember Create_BamlProperty_Section_Blocks()
private WpfKnownMember Create_BamlProperty_Selector_Items()
{
Type type = typeof(System.Windows.Controls.Primitives.Selector);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Selector)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.Selector)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.Selector)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5615,15 +5997,17 @@ private WpfKnownMember Create_BamlProperty_Selector_Items()
private WpfKnownMember Create_BamlProperty_SingleAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.SingleAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.SingleAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.SingleKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.SingleAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.SingleKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.SingleAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.SingleAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.SingleKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.SingleAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5632,15 +6016,17 @@ private WpfKnownMember Create_BamlProperty_SingleAnimationUsingKeyFrames_KeyFram
private WpfKnownMember Create_BamlProperty_SizeAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.SizeAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.SizeAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.SizeKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.SizeAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.SizeKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.SizeAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.SizeAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.SizeKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.SizeAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5649,15 +6035,17 @@ private WpfKnownMember Create_BamlProperty_SizeAnimationUsingKeyFrames_KeyFrames
private WpfKnownMember Create_BamlProperty_Span_Inlines()
{
Type type = typeof(System.Windows.Documents.Span);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Span)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Span)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Span)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5666,15 +6054,17 @@ private WpfKnownMember Create_BamlProperty_Span_Inlines()
private WpfKnownMember Create_BamlProperty_StackPanel_Children()
{
Type type = typeof(System.Windows.Controls.StackPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.StackPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.StackPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.StackPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5683,15 +6073,17 @@ private WpfKnownMember Create_BamlProperty_StackPanel_Children()
private WpfKnownMember Create_BamlProperty_StatusBar_Items()
{
Type type = typeof(System.Windows.Controls.Primitives.StatusBar);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.StatusBar)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.StatusBar)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.StatusBar)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5701,15 +6093,17 @@ private WpfKnownMember Create_BamlProperty_StatusBarItem_Content()
{
Type type = typeof(System.Windows.Controls.Primitives.StatusBarItem);
DependencyProperty dp = System.Windows.Controls.Primitives.StatusBarItem.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.StatusBarItem)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5734,15 +6128,17 @@ private WpfKnownMember Create_BamlProperty_Storyboard_Children()
private WpfKnownMember Create_BamlProperty_StringAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.StringAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.StringAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.StringKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.StringAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.StringKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.StringAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.StringAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.StringKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.StringAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5751,15 +6147,17 @@ private WpfKnownMember Create_BamlProperty_StringAnimationUsingKeyFrames_KeyFram
private WpfKnownMember Create_BamlProperty_Style_Setters()
{
Type type = typeof(System.Windows.Style);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
"Setters", // Name
typeof(System.Windows.SetterBaseCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Setters; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Setters; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5768,15 +6166,17 @@ private WpfKnownMember Create_BamlProperty_Style_Setters()
private WpfKnownMember Create_BamlProperty_TabControl_Items()
{
Type type = typeof(System.Windows.Controls.TabControl);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TabControl)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TabControl)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.TabControl)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5786,15 +6186,17 @@ private WpfKnownMember Create_BamlProperty_TabItem_Content()
{
Type type = typeof(System.Windows.Controls.TabItem);
DependencyProperty dp = System.Windows.Controls.TabItem.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TabItem)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5803,15 +6205,17 @@ private WpfKnownMember Create_BamlProperty_TabItem_Content()
private WpfKnownMember Create_BamlProperty_TabPanel_Children()
{
Type type = typeof(System.Windows.Controls.Primitives.TabPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.TabPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.TabPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.TabPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5820,15 +6224,17 @@ private WpfKnownMember Create_BamlProperty_TabPanel_Children()
private WpfKnownMember Create_BamlProperty_Table_RowGroups()
{
Type type = typeof(System.Windows.Documents.Table);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Table)), // DeclaringType
"RowGroups", // Name
typeof(System.Windows.Documents.TableRowGroupCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Table)target).RowGroups; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Table)target).RowGroups; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5837,15 +6243,17 @@ private WpfKnownMember Create_BamlProperty_Table_RowGroups()
private WpfKnownMember Create_BamlProperty_TableCell_Blocks()
{
Type type = typeof(System.Windows.Documents.TableCell);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TableCell)), // DeclaringType
"Blocks", // Name
typeof(System.Windows.Documents.BlockCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.TableCell)target).Blocks; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.TableCell)target).Blocks; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5854,15 +6262,17 @@ private WpfKnownMember Create_BamlProperty_TableCell_Blocks()
private WpfKnownMember Create_BamlProperty_TableRow_Cells()
{
Type type = typeof(System.Windows.Documents.TableRow);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TableRow)), // DeclaringType
"Cells", // Name
typeof(System.Windows.Documents.TableCellCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.TableRow)target).Cells; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.TableRow)target).Cells; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5871,15 +6281,17 @@ private WpfKnownMember Create_BamlProperty_TableRow_Cells()
private WpfKnownMember Create_BamlProperty_TableRowGroup_Rows()
{
Type type = typeof(System.Windows.Documents.TableRowGroup);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.TableRowGroup)), // DeclaringType
"Rows", // Name
typeof(System.Windows.Documents.TableRowCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.TableRowGroup)target).Rows; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.TableRowGroup)target).Rows; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5888,15 +6300,17 @@ private WpfKnownMember Create_BamlProperty_TableRowGroup_Rows()
private WpfKnownMember Create_BamlProperty_TextBlock_Inlines()
{
Type type = typeof(System.Windows.Controls.TextBlock);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TextBlock)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.TextBlock)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5905,15 +6319,17 @@ private WpfKnownMember Create_BamlProperty_TextBlock_Inlines()
private WpfKnownMember Create_BamlProperty_ThicknessAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.ThicknessKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ThicknessKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.ThicknessKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5923,15 +6339,17 @@ private WpfKnownMember Create_BamlProperty_ToggleButton_Content()
{
Type type = typeof(System.Windows.Controls.Primitives.ToggleButton);
DependencyProperty dp = System.Windows.Controls.Primitives.ToggleButton.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ToggleButton)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5940,15 +6358,17 @@ private WpfKnownMember Create_BamlProperty_ToggleButton_Content()
private WpfKnownMember Create_BamlProperty_ToolBar_Items()
{
Type type = typeof(System.Windows.Controls.ToolBar);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ToolBar)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ToolBar)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ToolBar)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5957,15 +6377,17 @@ private WpfKnownMember Create_BamlProperty_ToolBar_Items()
private WpfKnownMember Create_BamlProperty_ToolBarOverflowPanel_Children()
{
Type type = typeof(System.Windows.Controls.Primitives.ToolBarOverflowPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ToolBarOverflowPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.ToolBarOverflowPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.ToolBarOverflowPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5974,15 +6396,17 @@ private WpfKnownMember Create_BamlProperty_ToolBarOverflowPanel_Children()
private WpfKnownMember Create_BamlProperty_ToolBarPanel_Children()
{
Type type = typeof(System.Windows.Controls.Primitives.ToolBarPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ToolBarPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.ToolBarPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.ToolBarPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -5991,15 +6415,17 @@ private WpfKnownMember Create_BamlProperty_ToolBarPanel_Children()
private WpfKnownMember Create_BamlProperty_ToolBarTray_ToolBars()
{
Type type = typeof(System.Windows.Controls.ToolBarTray);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ToolBarTray)), // DeclaringType
"ToolBars", // Name
typeof(System.Collections.ObjectModel.Collection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ToolBarTray)target).ToolBars; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ToolBarTray)target).ToolBars; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6009,15 +6435,17 @@ private WpfKnownMember Create_BamlProperty_ToolTip_Content()
{
Type type = typeof(System.Windows.Controls.ToolTip);
DependencyProperty dp = System.Windows.Controls.ToolTip.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ToolTip)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6026,15 +6454,17 @@ private WpfKnownMember Create_BamlProperty_ToolTip_Content()
private WpfKnownMember Create_BamlProperty_TreeView_Items()
{
Type type = typeof(System.Windows.Controls.TreeView);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TreeView)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeView)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.TreeView)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6043,15 +6473,17 @@ private WpfKnownMember Create_BamlProperty_TreeView_Items()
private WpfKnownMember Create_BamlProperty_TreeViewItem_Items()
{
Type type = typeof(System.Windows.Controls.TreeViewItem);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TreeViewItem)), // DeclaringType
"Items", // Name
typeof(System.Windows.Controls.ItemCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeViewItem)target).Items; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.TreeViewItem)target).Items; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6060,15 +6492,17 @@ private WpfKnownMember Create_BamlProperty_TreeViewItem_Items()
private WpfKnownMember Create_BamlProperty_Trigger_Setters()
{
Type type = typeof(System.Windows.Trigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Trigger)), // DeclaringType
"Setters", // Name
typeof(System.Windows.SetterBaseCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Trigger)target).Setters; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Trigger)target).Setters; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6077,15 +6511,17 @@ private WpfKnownMember Create_BamlProperty_Trigger_Setters()
private WpfKnownMember Create_BamlProperty_Underline_Inlines()
{
Type type = typeof(System.Windows.Documents.Underline);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Documents.Underline)), // DeclaringType
"Inlines", // Name
typeof(System.Windows.Documents.InlineCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Underline)target).Inlines; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Documents.Underline)target).Inlines; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6094,15 +6530,17 @@ private WpfKnownMember Create_BamlProperty_Underline_Inlines()
private WpfKnownMember Create_BamlProperty_UniformGrid_Children()
{
Type type = typeof(System.Windows.Controls.Primitives.UniformGrid);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.UniformGrid)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.UniformGrid)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.UniformGrid)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6112,15 +6550,17 @@ private WpfKnownMember Create_BamlProperty_UserControl_Content()
{
Type type = typeof(System.Windows.Controls.UserControl);
DependencyProperty dp = System.Windows.Controls.UserControl.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.UserControl)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6129,15 +6569,17 @@ private WpfKnownMember Create_BamlProperty_UserControl_Content()
private WpfKnownMember Create_BamlProperty_Vector3DAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.Vector3DKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Vector3DKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.Vector3DKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6146,15 +6588,17 @@ private WpfKnownMember Create_BamlProperty_Vector3DAnimationUsingKeyFrames_KeyFr
private WpfKnownMember Create_BamlProperty_VectorAnimationUsingKeyFrames_KeyFrames()
{
Type type = typeof(System.Windows.Media.Animation.VectorAnimationUsingKeyFrames);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.VectorAnimationUsingKeyFrames)), // DeclaringType
"KeyFrames", // Name
typeof(System.Windows.Media.Animation.VectorKeyFrameCollection), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.VectorAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.VectorKeyFrameCollection)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.VectorAnimationUsingKeyFrames)target).KeyFrames; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.VectorAnimationUsingKeyFrames)target).KeyFrames = (System.Windows.Media.Animation.VectorKeyFrameCollection)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.VectorAnimationUsingKeyFrames)target).KeyFrames; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6163,15 +6607,17 @@ private WpfKnownMember Create_BamlProperty_VectorAnimationUsingKeyFrames_KeyFram
private WpfKnownMember Create_BamlProperty_Viewbox_Child()
{
Type type = typeof(System.Windows.Controls.Viewbox);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Viewbox)), // DeclaringType
"Child", // Name
typeof(System.Windows.UIElement), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Viewbox)target).Child; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Viewbox)target).Child = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Viewbox)target).Child; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6180,15 +6626,17 @@ private WpfKnownMember Create_BamlProperty_Viewbox_Child()
private WpfKnownMember Create_BamlProperty_Viewport3DVisual_Children()
{
Type type = typeof(System.Windows.Media.Media3D.Viewport3DVisual);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Media3D.Viewport3DVisual)), // DeclaringType
"Children", // Name
typeof(System.Windows.Media.Media3D.Visual3DCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Media3D.Viewport3DVisual)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Media3D.Viewport3DVisual)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6197,15 +6645,17 @@ private WpfKnownMember Create_BamlProperty_Viewport3DVisual_Children()
private WpfKnownMember Create_BamlProperty_VirtualizingPanel_Children()
{
Type type = typeof(System.Windows.Controls.VirtualizingPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.VirtualizingPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.VirtualizingPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.VirtualizingPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6214,15 +6664,17 @@ private WpfKnownMember Create_BamlProperty_VirtualizingPanel_Children()
private WpfKnownMember Create_BamlProperty_VirtualizingStackPanel_Children()
{
Type type = typeof(System.Windows.Controls.VirtualizingStackPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.VirtualizingStackPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.VirtualizingStackPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.VirtualizingStackPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6232,15 +6684,17 @@ private WpfKnownMember Create_BamlProperty_Window_Content()
{
Type type = typeof(System.Windows.Window);
DependencyProperty dp = System.Windows.Window.ContentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
"Content", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6249,15 +6703,17 @@ private WpfKnownMember Create_BamlProperty_Window_Content()
private WpfKnownMember Create_BamlProperty_WrapPanel_Children()
{
Type type = typeof(System.Windows.Controls.WrapPanel);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.WrapPanel)), // DeclaringType
"Children", // Name
typeof(System.Windows.Controls.UIElementCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.WrapPanel)target).Children; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.WrapPanel)target).Children; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6266,15 +6722,17 @@ private WpfKnownMember Create_BamlProperty_WrapPanel_Children()
private WpfKnownMember Create_BamlProperty_XmlDataProvider_XmlSerializer()
{
Type type = typeof(System.Windows.Data.XmlDataProvider);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.XmlDataProvider)), // DeclaringType
"XmlSerializer", // Name
typeof(System.Xml.Serialization.IXmlSerializable), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.XmlDataProvider)target).XmlSerializer; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.XmlDataProvider)target).XmlSerializer; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6283,15 +6741,17 @@ private WpfKnownMember Create_BamlProperty_XmlDataProvider_XmlSerializer()
private WpfKnownMember Create_BamlProperty_ControlTemplate_Triggers()
{
Type type = typeof(System.Windows.Controls.ControlTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType
"Triggers", // Name
typeof(System.Windows.TriggerCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).Triggers; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ControlTemplate)target).Triggers; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6300,15 +6760,17 @@ private WpfKnownMember Create_BamlProperty_ControlTemplate_Triggers()
private WpfKnownMember Create_BamlProperty_DataTemplate_Triggers()
{
Type type = typeof(System.Windows.DataTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
"Triggers", // Name
typeof(System.Windows.TriggerCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).Triggers; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).Triggers; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6317,17 +6779,19 @@ private WpfKnownMember Create_BamlProperty_DataTemplate_Triggers()
private WpfKnownMember Create_BamlProperty_DataTemplate_DataTemplateKey()
{
Type type = typeof(System.Windows.DataTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
"DataTemplateKey", // Name
typeof(System.Object), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).DataTemplateKey; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).DataTemplateKey; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6336,18 +6800,20 @@ private WpfKnownMember Create_BamlProperty_DataTemplate_DataTemplateKey()
private WpfKnownMember Create_BamlProperty_ControlTemplate_TargetType()
{
Type type = typeof(System.Windows.Controls.ControlTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.ControlTemplate)), // DeclaringType
"TargetType", // Name
typeof(System.Type), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Type);
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ControlTemplate)target).TargetType; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Type),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.ControlTemplate)target).TargetType = (System.Type)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.ControlTemplate)target).TargetType; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6356,16 +6822,18 @@ private WpfKnownMember Create_BamlProperty_ControlTemplate_TargetType()
private WpfKnownMember Create_BamlProperty_FrameworkElement_Resources()
{
Type type = typeof(System.Windows.FrameworkElement);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkElement)), // DeclaringType
"Resources", // Name
typeof(System.Windows.ResourceDictionary), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkElement)target).Resources; };
+ )
+ {
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkElement)target).Resources = (System.Windows.ResourceDictionary)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Resources; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6374,17 +6842,19 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_Resources()
private WpfKnownMember Create_BamlProperty_FrameworkTemplate_Template()
{
Type type = typeof(System.Windows.FrameworkTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkTemplate)), // DeclaringType
"Template", // Name
typeof(System.Windows.TemplateContent), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.DeferringLoaderType = typeof(System.Windows.TemplateContentLoader);
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkTemplate)target).Template = (System.Windows.TemplateContent)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkTemplate)target).Template; };
+ )
+ {
+ DeferringLoaderType = typeof(System.Windows.TemplateContentLoader),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkTemplate)target).Template = (System.Windows.TemplateContent)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.FrameworkTemplate)target).Template; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6393,15 +6863,17 @@ private WpfKnownMember Create_BamlProperty_FrameworkTemplate_Template()
private WpfKnownMember Create_BamlProperty_Grid_ColumnDefinitions()
{
Type type = typeof(System.Windows.Controls.Grid);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"ColumnDefinitions", // Name
typeof(System.Windows.Controls.ColumnDefinitionCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Grid)target).ColumnDefinitions; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Grid)target).ColumnDefinitions; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6410,15 +6882,17 @@ private WpfKnownMember Create_BamlProperty_Grid_ColumnDefinitions()
private WpfKnownMember Create_BamlProperty_Grid_RowDefinitions()
{
Type type = typeof(System.Windows.Controls.Grid);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType
"RowDefinitions", // Name
typeof(System.Windows.Controls.RowDefinitionCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Grid)target).RowDefinitions; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Grid)target).RowDefinitions; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6427,15 +6901,17 @@ private WpfKnownMember Create_BamlProperty_Grid_RowDefinitions()
private WpfKnownMember Create_BamlProperty_MultiTrigger_Conditions()
{
Type type = typeof(System.Windows.MultiTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.MultiTrigger)), // DeclaringType
"Conditions", // Name
typeof(System.Windows.ConditionCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.MultiTrigger)target).Conditions; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.MultiTrigger)target).Conditions; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6460,18 +6936,20 @@ private WpfKnownMember Create_BamlProperty_NameScope_NameScope()
private WpfKnownMember Create_BamlProperty_Style_TargetType()
{
Type type = typeof(System.Windows.Style);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
"TargetType", // Name
typeof(System.Type), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Type);
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).TargetType; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Type),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Style)target).TargetType; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6480,15 +6958,17 @@ private WpfKnownMember Create_BamlProperty_Style_TargetType()
private WpfKnownMember Create_BamlProperty_Style_Triggers()
{
Type type = typeof(System.Windows.Style);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
"Triggers", // Name
typeof(System.Windows.TriggerCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Triggers; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Triggers; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6497,16 +6977,18 @@ private WpfKnownMember Create_BamlProperty_Style_Triggers()
private WpfKnownMember Create_BamlProperty_Setter_Value()
{
Type type = typeof(System.Windows.Setter);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Setter)), // DeclaringType
"Value", // Name
typeof(System.Object), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Markup.SetterTriggerConditionValueConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Setter)target).Value = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Setter)target).Value; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.SetterTriggerConditionValueConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Setter)target).Value = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Setter)target).Value; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6515,17 +6997,19 @@ private WpfKnownMember Create_BamlProperty_Setter_Value()
private WpfKnownMember Create_BamlProperty_Setter_TargetName()
{
Type type = typeof(System.Windows.Setter);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Setter)), // DeclaringType
"TargetName", // Name
typeof(System.String), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Setter)target).TargetName = (System.String)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Setter)target).TargetName; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Setter)target).TargetName = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Setter)target).TargetName; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6534,16 +7018,18 @@ private WpfKnownMember Create_BamlProperty_Setter_TargetName()
private WpfKnownMember Create_BamlProperty_Binding_Path()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"Path", // Name
typeof(System.Windows.PropertyPath), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.PropertyPathConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).Path = (System.Windows.PropertyPath)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).Path; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.PropertyPathConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).Path = (System.Windows.PropertyPath)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).Path; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6552,17 +7038,19 @@ private WpfKnownMember Create_BamlProperty_Binding_Path()
private WpfKnownMember Create_BamlProperty_ComponentResourceKey_ResourceId()
{
Type type = typeof(System.Windows.ComponentResourceKey);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.ComponentResourceKey)), // DeclaringType
"ResourceId", // 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.ComponentResourceKey)target).ResourceId = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ComponentResourceKey)target).ResourceId; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.ComponentResourceKey)target).ResourceId = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.ComponentResourceKey)target).ResourceId; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6571,17 +7059,19 @@ private WpfKnownMember Create_BamlProperty_ComponentResourceKey_ResourceId()
private WpfKnownMember Create_BamlProperty_ComponentResourceKey_TypeInTargetAssembly()
{
Type type = typeof(System.Windows.ComponentResourceKey);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.ComponentResourceKey)), // DeclaringType
"TypeInTargetAssembly", // Name
typeof(System.Type), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Type);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ComponentResourceKey)target).TypeInTargetAssembly = (System.Type)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ComponentResourceKey)target).TypeInTargetAssembly; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Type),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.ComponentResourceKey)target).TypeInTargetAssembly = (System.Type)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.ComponentResourceKey)target).TypeInTargetAssembly; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6590,15 +7080,17 @@ private WpfKnownMember Create_BamlProperty_ComponentResourceKey_TypeInTargetAsse
private WpfKnownMember Create_BamlProperty_Binding_Converter()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"Converter", // Name
typeof(System.Windows.Data.IValueConverter), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).Converter = (System.Windows.Data.IValueConverter)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).Converter; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).Converter = (System.Windows.Data.IValueConverter)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).Converter; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6607,17 +7099,19 @@ private WpfKnownMember Create_BamlProperty_Binding_Converter()
private WpfKnownMember Create_BamlProperty_Binding_Source()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"Source", // 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).Source = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).Source; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).Source = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).Source; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6626,15 +7120,17 @@ private WpfKnownMember Create_BamlProperty_Binding_Source()
private WpfKnownMember Create_BamlProperty_Binding_RelativeSource()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"RelativeSource", // Name
typeof(System.Windows.Data.RelativeSource), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).RelativeSource = (System.Windows.Data.RelativeSource)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).RelativeSource; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).RelativeSource = (System.Windows.Data.RelativeSource)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).RelativeSource; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6643,16 +7139,18 @@ private WpfKnownMember Create_BamlProperty_Binding_RelativeSource()
private WpfKnownMember Create_BamlProperty_Binding_Mode()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"Mode", // Name
typeof(System.Windows.Data.BindingMode), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Data.BindingMode);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).Mode = (System.Windows.Data.BindingMode)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).Mode; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Data.BindingMode),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).Mode = (System.Windows.Data.BindingMode)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).Mode; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6662,14 +7160,16 @@ private WpfKnownMember Create_BamlProperty_Timeline_BeginTime()
{
Type type = typeof(System.Windows.Media.Animation.Timeline);
DependencyProperty dp = System.Windows.Media.Animation.Timeline.BeginTimeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Timeline)), // DeclaringType
"BeginTime", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.TimeSpanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.TimeSpanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6678,16 +7178,18 @@ private WpfKnownMember Create_BamlProperty_Timeline_BeginTime()
private WpfKnownMember Create_BamlProperty_Style_BasedOn()
{
Type type = typeof(System.Windows.Style);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
"BasedOn", // Name
typeof(System.Windows.Style), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).BasedOn = (System.Windows.Style)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).BasedOn; };
+ )
+ {
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).BasedOn = (System.Windows.Style)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Style)target).BasedOn; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6696,16 +7198,18 @@ private WpfKnownMember Create_BamlProperty_Style_BasedOn()
private WpfKnownMember Create_BamlProperty_Binding_ElementName()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"ElementName", // 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).ElementName = (System.String)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).ElementName; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).ElementName = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).ElementName; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6714,16 +7218,18 @@ private WpfKnownMember Create_BamlProperty_Binding_ElementName()
private WpfKnownMember Create_BamlProperty_Binding_UpdateSourceTrigger()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.Binding)), // DeclaringType
"UpdateSourceTrigger", // Name
typeof(System.Windows.Data.UpdateSourceTrigger), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Data.UpdateSourceTrigger);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).UpdateSourceTrigger = (System.Windows.Data.UpdateSourceTrigger)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.Binding)target).UpdateSourceTrigger; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Data.UpdateSourceTrigger),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).UpdateSourceTrigger = (System.Windows.Data.UpdateSourceTrigger)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).UpdateSourceTrigger; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6732,16 +7238,18 @@ private WpfKnownMember Create_BamlProperty_Binding_UpdateSourceTrigger()
private WpfKnownMember Create_BamlProperty_ResourceDictionary_DeferrableContent()
{
Type type = typeof(System.Windows.ResourceDictionary);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.ResourceDictionary)), // DeclaringType
"DeferrableContent", // Name
typeof(System.Windows.DeferrableContent), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.DeferrableContentConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ResourceDictionary)target).DeferrableContent = (System.Windows.DeferrableContent)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ResourceDictionary)target).DeferrableContent; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.DeferrableContentConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.ResourceDictionary)target).DeferrableContent = (System.Windows.DeferrableContent)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.ResourceDictionary)target).DeferrableContent; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6750,16 +7258,18 @@ private WpfKnownMember Create_BamlProperty_ResourceDictionary_DeferrableContent(
private WpfKnownMember Create_BamlProperty_Trigger_Value()
{
Type type = typeof(System.Windows.Trigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Trigger)), // DeclaringType
"Value", // Name
typeof(System.Object), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Markup.SetterTriggerConditionValueConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Trigger)target).Value = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Trigger)target).Value; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.SetterTriggerConditionValueConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Trigger)target).Value = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Trigger)target).Value; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6768,17 +7278,19 @@ private WpfKnownMember Create_BamlProperty_Trigger_Value()
private WpfKnownMember Create_BamlProperty_Trigger_SourceName()
{
Type type = typeof(System.Windows.Trigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Trigger)), // DeclaringType
"SourceName", // Name
typeof(System.String), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Trigger)target).SourceName = (System.String)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Trigger)target).SourceName; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Trigger)target).SourceName = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Trigger)target).SourceName; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6787,17 +7299,19 @@ private WpfKnownMember Create_BamlProperty_Trigger_SourceName()
private WpfKnownMember Create_BamlProperty_RelativeSource_AncestorType()
{
Type type = typeof(System.Windows.Data.RelativeSource);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.RelativeSource)), // DeclaringType
"AncestorType", // Name
typeof(System.Type), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Type);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.RelativeSource)target).AncestorType = (System.Type)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.RelativeSource)target).AncestorType; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Type),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.RelativeSource)target).AncestorType = (System.Type)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.RelativeSource)target).AncestorType; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6807,14 +7321,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_Uid()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.UidProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"Uid", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6824,14 +7340,16 @@ private WpfKnownMember Create_BamlProperty_FrameworkContentElement_Name()
{
Type type = typeof(System.Windows.FrameworkContentElement);
DependencyProperty dp = System.Windows.FrameworkContentElement.NameProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkContentElement)), // DeclaringType
"Name", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6840,16 +7358,18 @@ private WpfKnownMember Create_BamlProperty_FrameworkContentElement_Name()
private WpfKnownMember Create_BamlProperty_FrameworkContentElement_Resources()
{
Type type = typeof(System.Windows.FrameworkContentElement);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkContentElement)), // DeclaringType
"Resources", // Name
typeof(System.Windows.ResourceDictionary), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkContentElement)target).Resources = (System.Windows.ResourceDictionary)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkContentElement)target).Resources; };
+ )
+ {
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkContentElement)target).Resources = (System.Windows.ResourceDictionary)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.FrameworkContentElement)target).Resources; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6858,16 +7378,18 @@ private WpfKnownMember Create_BamlProperty_FrameworkContentElement_Resources()
private WpfKnownMember Create_BamlProperty_Style_Resources()
{
Type type = typeof(System.Windows.Style);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
"Resources", // Name
typeof(System.Windows.ResourceDictionary), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Resources; };
+ )
+ {
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Resources; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6876,16 +7398,18 @@ private WpfKnownMember Create_BamlProperty_Style_Resources()
private WpfKnownMember Create_BamlProperty_FrameworkTemplate_Resources()
{
Type type = typeof(System.Windows.FrameworkTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.FrameworkTemplate)), // DeclaringType
"Resources", // Name
typeof(System.Windows.ResourceDictionary), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.FrameworkTemplate)target).Resources = (System.Windows.ResourceDictionary)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.FrameworkTemplate)target).Resources; };
+ )
+ {
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.FrameworkTemplate)target).Resources = (System.Windows.ResourceDictionary)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.FrameworkTemplate)target).Resources; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6894,16 +7418,18 @@ private WpfKnownMember Create_BamlProperty_FrameworkTemplate_Resources()
private WpfKnownMember Create_BamlProperty_Application_Resources()
{
Type type = typeof(System.Windows.Application);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Application)), // DeclaringType
"Resources", // Name
typeof(System.Windows.ResourceDictionary), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Application)target).Resources = (System.Windows.ResourceDictionary)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Application)target).Resources; };
+ )
+ {
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Application)target).Resources = (System.Windows.ResourceDictionary)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Application)target).Resources; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6912,15 +7438,17 @@ private WpfKnownMember Create_BamlProperty_Application_Resources()
private WpfKnownMember Create_BamlProperty_MultiBinding_Converter()
{
Type type = typeof(System.Windows.Data.MultiBinding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.MultiBinding)), // DeclaringType
"Converter", // Name
typeof(System.Windows.Data.IMultiValueConverter), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.MultiBinding)target).Converter = (System.Windows.Data.IMultiValueConverter)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.MultiBinding)target).Converter; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.MultiBinding)target).Converter = (System.Windows.Data.IMultiValueConverter)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.MultiBinding)target).Converter; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6929,17 +7457,19 @@ private WpfKnownMember Create_BamlProperty_MultiBinding_Converter()
private WpfKnownMember Create_BamlProperty_MultiBinding_ConverterParameter()
{
Type type = typeof(System.Windows.Data.MultiBinding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.MultiBinding)), // 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.MultiBinding)target).ConverterParameter = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.MultiBinding)target).ConverterParameter; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.MultiBinding)target).ConverterParameter = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.MultiBinding)target).ConverterParameter; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6949,14 +7479,16 @@ private WpfKnownMember Create_BamlProperty_LinearGradientBrush_StartPoint()
{
Type type = typeof(System.Windows.Media.LinearGradientBrush);
DependencyProperty dp = System.Windows.Media.LinearGradientBrush.StartPointProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.LinearGradientBrush)), // DeclaringType
"StartPoint", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.PointConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.PointConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6966,14 +7498,16 @@ private WpfKnownMember Create_BamlProperty_LinearGradientBrush_EndPoint()
{
Type type = typeof(System.Windows.Media.LinearGradientBrush);
DependencyProperty dp = System.Windows.Media.LinearGradientBrush.EndPointProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.LinearGradientBrush)), // DeclaringType
"EndPoint", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.PointConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.PointConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -6982,16 +7516,18 @@ private WpfKnownMember Create_BamlProperty_LinearGradientBrush_EndPoint()
private WpfKnownMember Create_BamlProperty_CommandBinding_Command()
{
Type type = typeof(System.Windows.Input.CommandBinding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.CommandBinding)), // DeclaringType
"Command", // Name
typeof(System.Windows.Input.ICommand), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Input.CommandConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Input.CommandBinding)target).Command = (System.Windows.Input.ICommand)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Input.CommandBinding)target).Command; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.CommandConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Input.CommandBinding)target).Command = (System.Windows.Input.ICommand)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Input.CommandBinding)target).Command; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7000,17 +7536,19 @@ private WpfKnownMember Create_BamlProperty_CommandBinding_Command()
private WpfKnownMember Create_BamlProperty_Condition_Property()
{
Type type = typeof(System.Windows.Condition);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Condition)), // 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.Condition)target).Property = (System.Windows.DependencyProperty)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Condition)target).Property; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.DependencyPropertyConverter),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Condition)target).Property = (System.Windows.DependencyProperty)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Condition)target).Property; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7019,16 +7557,18 @@ private WpfKnownMember Create_BamlProperty_Condition_Property()
private WpfKnownMember Create_BamlProperty_Condition_Value()
{
Type type = typeof(System.Windows.Condition);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Condition)), // DeclaringType
"Value", // Name
typeof(System.Object), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Markup.SetterTriggerConditionValueConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Condition)target).Value = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Condition)target).Value; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.SetterTriggerConditionValueConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Condition)target).Value = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Condition)target).Value; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7037,15 +7577,17 @@ private WpfKnownMember Create_BamlProperty_Condition_Value()
private WpfKnownMember Create_BamlProperty_Condition_Binding()
{
Type type = typeof(System.Windows.Condition);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Condition)), // DeclaringType
"Binding", // Name
typeof(System.Windows.Data.BindingBase), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Condition)target).Binding = (System.Windows.Data.BindingBase)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Condition)target).Binding; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Condition)target).Binding = (System.Windows.Data.BindingBase)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Condition)target).Binding; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7054,17 +7596,19 @@ private WpfKnownMember Create_BamlProperty_Condition_Binding()
private WpfKnownMember Create_BamlProperty_BindingBase_FallbackValue()
{
Type type = typeof(System.Windows.Data.BindingBase);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.BindingBase)), // DeclaringType
"FallbackValue", // 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.BindingBase)target).FallbackValue = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.BindingBase)target).FallbackValue; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.BindingBase)target).FallbackValue = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.BindingBase)target).FallbackValue; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7074,14 +7618,16 @@ private WpfKnownMember Create_BamlProperty_Window_ResizeMode()
{
Type type = typeof(System.Windows.Window);
DependencyProperty dp = System.Windows.Window.ResizeModeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
"ResizeMode", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.ResizeMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.ResizeMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7091,14 +7637,16 @@ private WpfKnownMember Create_BamlProperty_Window_WindowState()
{
Type type = typeof(System.Windows.Window);
DependencyProperty dp = System.Windows.Window.WindowStateProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
"WindowState", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.WindowState);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.WindowState)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7108,14 +7656,16 @@ private WpfKnownMember Create_BamlProperty_Window_Title()
{
Type type = typeof(System.Windows.Window);
DependencyProperty dp = System.Windows.Window.TitleProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
"Title", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7125,14 +7675,16 @@ private WpfKnownMember Create_BamlProperty_Shape_StrokeLineJoin()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StrokeLineJoinProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"StrokeLineJoin", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.PenLineJoin);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.PenLineJoin)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7142,14 +7694,16 @@ private WpfKnownMember Create_BamlProperty_Shape_StrokeStartLineCap()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StrokeStartLineCapProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"StrokeStartLineCap", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.PenLineCap);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.PenLineCap)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7159,14 +7713,16 @@ private WpfKnownMember Create_BamlProperty_Shape_StrokeEndLineCap()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StrokeEndLineCapProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"StrokeEndLineCap", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.PenLineCap);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.PenLineCap)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7176,14 +7732,16 @@ private WpfKnownMember Create_BamlProperty_TileBrush_TileMode()
{
Type type = typeof(System.Windows.Media.TileBrush);
DependencyProperty dp = System.Windows.Media.TileBrush.TileModeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.TileBrush)), // DeclaringType
"TileMode", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.TileMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.TileMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7193,14 +7751,16 @@ private WpfKnownMember Create_BamlProperty_TileBrush_ViewboxUnits()
{
Type type = typeof(System.Windows.Media.TileBrush);
DependencyProperty dp = System.Windows.Media.TileBrush.ViewboxUnitsProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.TileBrush)), // DeclaringType
"ViewboxUnits", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushMappingMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushMappingMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7210,14 +7770,16 @@ private WpfKnownMember Create_BamlProperty_TileBrush_ViewportUnits()
{
Type type = typeof(System.Windows.Media.TileBrush);
DependencyProperty dp = System.Windows.Media.TileBrush.ViewportUnitsProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.TileBrush)), // DeclaringType
"ViewportUnits", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushMappingMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushMappingMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7243,14 +7805,16 @@ private WpfKnownMember Create_BamlProperty_TextBox_TextWrapping()
{
Type type = typeof(System.Windows.Controls.TextBox);
DependencyProperty dp = System.Windows.Controls.TextBox.TextWrappingProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType
"TextWrapping", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.TextWrapping);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextWrapping)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7260,14 +7824,16 @@ private WpfKnownMember Create_BamlProperty_StackPanel_Orientation()
{
Type type = typeof(System.Windows.Controls.StackPanel);
DependencyProperty dp = System.Windows.Controls.StackPanel.OrientationProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.StackPanel)), // DeclaringType
"Orientation", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.Orientation);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Orientation)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7276,15 +7842,17 @@ private WpfKnownMember Create_BamlProperty_StackPanel_Orientation()
private WpfKnownMember Create_BamlProperty_Track_Thumb()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"Thumb", // Name
typeof(System.Windows.Controls.Primitives.Thumb), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.Track)target).Thumb = (System.Windows.Controls.Primitives.Thumb)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.Track)target).Thumb; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.Track)target).Thumb = (System.Windows.Controls.Primitives.Thumb)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.Track)target).Thumb; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7293,15 +7861,17 @@ private WpfKnownMember Create_BamlProperty_Track_Thumb()
private WpfKnownMember Create_BamlProperty_Track_IncreaseRepeatButton()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"IncreaseRepeatButton", // Name
typeof(System.Windows.Controls.Primitives.RepeatButton), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.Track)target).IncreaseRepeatButton = (System.Windows.Controls.Primitives.RepeatButton)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.Track)target).IncreaseRepeatButton; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.Track)target).IncreaseRepeatButton = (System.Windows.Controls.Primitives.RepeatButton)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.Track)target).IncreaseRepeatButton; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7310,15 +7880,17 @@ private WpfKnownMember Create_BamlProperty_Track_IncreaseRepeatButton()
private WpfKnownMember Create_BamlProperty_Track_DecreaseRepeatButton()
{
Type type = typeof(System.Windows.Controls.Primitives.Track);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Track)), // DeclaringType
"DecreaseRepeatButton", // Name
typeof(System.Windows.Controls.Primitives.RepeatButton), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Controls.Primitives.Track)target).DecreaseRepeatButton = (System.Windows.Controls.Primitives.RepeatButton)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.Track)target).DecreaseRepeatButton; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.Track)target).DecreaseRepeatButton = (System.Windows.Controls.Primitives.RepeatButton)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.Track)target).DecreaseRepeatButton; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7327,16 +7899,18 @@ private WpfKnownMember Create_BamlProperty_Track_DecreaseRepeatButton()
private WpfKnownMember Create_BamlProperty_EventTrigger_RoutedEvent()
{
Type type = typeof(System.Windows.EventTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.EventTrigger)), // DeclaringType
"RoutedEvent", // Name
typeof(System.Windows.RoutedEvent), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Markup.RoutedEventConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.EventTrigger)target).RoutedEvent = (System.Windows.RoutedEvent)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.EventTrigger)target).RoutedEvent; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.RoutedEventConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.EventTrigger)target).RoutedEvent = (System.Windows.RoutedEvent)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.EventTrigger)target).RoutedEvent; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7346,14 +7920,16 @@ private WpfKnownMember Create_BamlProperty_InputBinding_Command()
{
Type type = typeof(System.Windows.Input.InputBinding);
DependencyProperty dp = System.Windows.Input.InputBinding.CommandProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.InputBinding)), // DeclaringType
"Command", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Input.CommandConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.CommandConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7362,16 +7938,18 @@ private WpfKnownMember Create_BamlProperty_InputBinding_Command()
private WpfKnownMember Create_BamlProperty_KeyBinding_Gesture()
{
Type type = typeof(System.Windows.Input.KeyBinding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.KeyBinding)), // DeclaringType
"Gesture", // Name
typeof(System.Windows.Input.InputGesture), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Input.KeyGestureConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Input.KeyBinding)target).Gesture = (System.Windows.Input.InputGesture)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Input.KeyBinding)target).Gesture; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.KeyGestureConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Input.KeyBinding)target).Gesture = (System.Windows.Input.InputGesture)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Input.KeyBinding)target).Gesture; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7381,14 +7959,16 @@ private WpfKnownMember Create_BamlProperty_TextBox_TextAlignment()
{
Type type = typeof(System.Windows.Controls.TextBox);
DependencyProperty dp = System.Windows.Controls.TextBox.TextAlignmentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBox)), // DeclaringType
"TextAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7398,14 +7978,16 @@ private WpfKnownMember Create_BamlProperty_TextBlock_TextAlignment()
{
Type type = typeof(System.Windows.Controls.TextBlock);
DependencyProperty dp = System.Windows.Controls.TextBlock.TextAlignmentProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.TextBlock)), // DeclaringType
"TextAlignment", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.TextAlignment);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7415,14 +7997,16 @@ private WpfKnownMember Create_BamlProperty_JournalEntryUnifiedViewConverter_Jour
{
Type type = typeof(System.Windows.Navigation.JournalEntryUnifiedViewConverter);
DependencyProperty dp = System.Windows.Navigation.JournalEntryUnifiedViewConverter.JournalEntryPositionProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Navigation.JournalEntryUnifiedViewConverter)), // DeclaringType
"JournalEntryPosition", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Navigation.JournalEntryPosition);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Navigation.JournalEntryPosition)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7432,14 +8016,16 @@ private WpfKnownMember Create_BamlProperty_GradientBrush_MappingMode()
{
Type type = typeof(System.Windows.Media.GradientBrush);
DependencyProperty dp = System.Windows.Media.GradientBrush.MappingModeProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.GradientBrush)), // DeclaringType
"MappingMode", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.BrushMappingMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushMappingMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7449,15 +8035,17 @@ private WpfKnownMember Create_BamlProperty_MenuItem_Role()
{
Type type = typeof(System.Windows.Controls.MenuItem);
DependencyProperty dp = System.Windows.Controls.MenuItem.RoleProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.MenuItem)), // DeclaringType
"Role", // Name
dp, // DependencyProperty
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.MenuItemRole);
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.MenuItemRole),
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7466,17 +8054,19 @@ private WpfKnownMember Create_BamlProperty_MenuItem_Role()
private WpfKnownMember Create_BamlProperty_DataTrigger_Value()
{
Type type = typeof(System.Windows.DataTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTrigger)), // DeclaringType
"Value", // 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.DataTrigger)target).Value = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTrigger)target).Value; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.DataTrigger)target).Value = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTrigger)target).Value; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7485,15 +8075,17 @@ private WpfKnownMember Create_BamlProperty_DataTrigger_Value()
private WpfKnownMember Create_BamlProperty_DataTrigger_Binding()
{
Type type = typeof(System.Windows.DataTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTrigger)), // DeclaringType
"Binding", // Name
typeof(System.Windows.Data.BindingBase), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTrigger)target).Binding = (System.Windows.Data.BindingBase)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTrigger)target).Binding; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.DataTrigger)target).Binding = (System.Windows.Data.BindingBase)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTrigger)target).Binding; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7502,17 +8094,19 @@ private WpfKnownMember Create_BamlProperty_DataTrigger_Binding()
private WpfKnownMember Create_BamlProperty_Setter_Property()
{
Type type = typeof(System.Windows.Setter);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Setter)), // 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.Setter)target).Property = (System.Windows.DependencyProperty)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Setter)target).Property; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.DependencyPropertyConverter),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Setter)target).Property = (System.Windows.DependencyProperty)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Setter)target).Property; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7521,16 +8115,18 @@ private WpfKnownMember Create_BamlProperty_Setter_Property()
private WpfKnownMember Create_BamlProperty_ResourceDictionary_Source()
{
Type type = typeof(System.Windows.ResourceDictionary);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.ResourceDictionary)), // DeclaringType
"Source", // Name
typeof(System.Uri), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.UriTypeConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.ResourceDictionary)target).Source = (System.Uri)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ResourceDictionary)target).Source; };
+ )
+ {
+ TypeConverterType = typeof(System.UriTypeConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.ResourceDictionary)target).Source = (System.Uri)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.ResourceDictionary)target).Source; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7539,16 +8135,18 @@ private WpfKnownMember Create_BamlProperty_ResourceDictionary_Source()
private WpfKnownMember Create_BamlProperty_BeginStoryboard_Name()
{
Type type = typeof(System.Windows.Media.Animation.BeginStoryboard);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.BeginStoryboard)), // DeclaringType
"Name", // Name
typeof(System.String), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Media.Animation.BeginStoryboard)target).Name = (System.String)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Media.Animation.BeginStoryboard)target).Name; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Media.Animation.BeginStoryboard)target).Name = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Media.Animation.BeginStoryboard)target).Name; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7557,15 +8155,17 @@ private WpfKnownMember Create_BamlProperty_BeginStoryboard_Name()
private WpfKnownMember Create_BamlProperty_ResourceDictionary_MergedDictionaries()
{
Type type = typeof(System.Windows.ResourceDictionary);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.ResourceDictionary)), // DeclaringType
"MergedDictionaries", // Name
typeof(System.Collections.ObjectModel.Collection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.ResourceDictionary)target).MergedDictionaries; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.ResourceDictionary)target).MergedDictionaries; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7575,14 +8175,16 @@ private WpfKnownMember Create_BamlProperty_KeyboardNavigation_DirectionalNavigat
{
Type type = typeof(System.Windows.Input.KeyboardNavigation);
DependencyProperty dp = System.Windows.Input.KeyboardNavigation.DirectionalNavigationProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Input.KeyboardNavigation)), // DeclaringType
"DirectionalNavigation", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Input.KeyboardNavigationMode);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.KeyboardNavigationMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7592,14 +8194,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.KeyboardNavigationMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7609,14 +8213,16 @@ private WpfKnownMember Create_BamlProperty_ScrollBar_Orientation()
{
Type type = typeof(System.Windows.Controls.Primitives.ScrollBar);
DependencyProperty dp = System.Windows.Controls.Primitives.ScrollBar.OrientationProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.ScrollBar)), // DeclaringType
"Orientation", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.Orientation);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Orientation)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7625,17 +8231,19 @@ private WpfKnownMember Create_BamlProperty_ScrollBar_Orientation()
private WpfKnownMember Create_BamlProperty_Trigger_Property()
{
Type type = typeof(System.Windows.Trigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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; };
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Markup.DependencyPropertyConverter),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Trigger)target).Property = (System.Windows.DependencyProperty)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Trigger)target).Property; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7644,16 +8252,18 @@ private WpfKnownMember Create_BamlProperty_Trigger_Property()
private WpfKnownMember Create_BamlProperty_EventTrigger_SourceName()
{
Type type = typeof(System.Windows.EventTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.EventTrigger)), // DeclaringType
"SourceName", // Name
typeof(System.String), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.EventTrigger)target).SourceName = (System.String)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.EventTrigger)target).SourceName; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.EventTrigger)target).SourceName = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.EventTrigger)target).SourceName; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7663,14 +8273,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7680,15 +8292,17 @@ 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
+ 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);
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7698,14 +8312,16 @@ private WpfKnownMember Create_BamlProperty_PathFigure_IsClosed()
{
Type type = typeof(System.Windows.Media.PathFigure);
DependencyProperty dp = System.Windows.Media.PathFigure.IsClosedProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.PathFigure)), // DeclaringType
"IsClosed", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7715,14 +8331,16 @@ private WpfKnownMember Create_BamlProperty_PathFigure_IsFilled()
{
Type type = typeof(System.Windows.Media.PathFigure);
DependencyProperty dp = System.Windows.Media.PathFigure.IsFilledProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.PathFigure)), // DeclaringType
"IsFilled", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7732,14 +8350,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.ClickMode)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7749,14 +8369,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.TextAlignment)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7766,14 +8388,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.PointConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7783,14 +8407,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.PenLineJoin)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7799,15 +8425,17 @@ private WpfKnownMember Create_BamlProperty_Pen_LineJoin()
private WpfKnownMember Create_BamlProperty_BulletDecorator_Bullet()
{
Type type = typeof(System.Windows.Controls.Primitives.BulletDecorator);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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; };
+ )
+ {
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet = (System.Windows.UIElement)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Controls.Primitives.BulletDecorator)target).Bullet; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7817,14 +8445,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7833,15 +8463,17 @@ private WpfKnownMember Create_BamlProperty_UIElement_SnapsToDevicePixels()
private WpfKnownMember Create_BamlProperty_UIElement_CommandBindings()
{
Type type = typeof(System.Windows.UIElement);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"CommandBindings", // Name
typeof(System.Windows.Input.CommandBindingCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.UIElement)target).CommandBindings; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).CommandBindings; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7850,15 +8482,17 @@ private WpfKnownMember Create_BamlProperty_UIElement_CommandBindings()
private WpfKnownMember Create_BamlProperty_UIElement_InputBindings()
{
Type type = typeof(System.Windows.UIElement);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"InputBindings", // Name
typeof(System.Windows.Input.InputBindingCollection), // type
true, // IsReadOnly
false // IsAttachable
- );
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.UIElement)target).InputBindings; };
- bamlMember.IsWritePrivate = true;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.UIElement)target).InputBindings; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7868,14 +8502,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.ColorConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7885,14 +8521,16 @@ private WpfKnownMember Create_BamlProperty_Brush_Opacity()
{
Type type = typeof(System.Windows.Media.Brush);
DependencyProperty dp = System.Windows.Media.Brush.OpacityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Brush)), // DeclaringType
"Opacity", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7902,14 +8540,16 @@ private WpfKnownMember Create_BamlProperty_TextBoxBase_AcceptsTab()
{
Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.AcceptsTabProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
"AcceptsTab", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7919,14 +8559,16 @@ private WpfKnownMember Create_BamlProperty_PathSegment_IsStroked()
{
Type type = typeof(System.Windows.Media.PathSegment);
DependencyProperty dp = System.Windows.Media.PathSegment.IsStrokedProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.PathSegment)), // DeclaringType
"IsStroked", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7936,14 +8578,16 @@ private WpfKnownMember Create_BamlProperty_VirtualizingPanel_IsVirtualizing()
{
Type type = typeof(System.Windows.Controls.VirtualizingPanel);
DependencyProperty dp = System.Windows.Controls.VirtualizingPanel.IsVirtualizingProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.VirtualizingPanel)), // DeclaringType
"IsVirtualizing", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7953,14 +8597,16 @@ private WpfKnownMember Create_BamlProperty_Shape_Stretch()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StretchProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"Stretch", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Media.Stretch);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Media.Stretch)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7970,14 +8616,16 @@ private WpfKnownMember Create_BamlProperty_Frame_JournalOwnership()
{
Type type = typeof(System.Windows.Controls.Frame);
DependencyProperty dp = System.Windows.Controls.Frame.JournalOwnershipProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Frame)), // DeclaringType
"JournalOwnership", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Navigation.JournalOwnership);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Navigation.JournalOwnership)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -7987,14 +8635,16 @@ private WpfKnownMember Create_BamlProperty_Frame_NavigationUIVisibility()
{
Type type = typeof(System.Windows.Controls.Frame);
DependencyProperty dp = System.Windows.Controls.Frame.NavigationUIVisibilityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Frame)), // DeclaringType
"NavigationUIVisibility", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Navigation.NavigationUIVisibility);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Navigation.NavigationUIVisibility)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8004,14 +8654,16 @@ private WpfKnownMember Create_BamlProperty_Storyboard_TargetName()
{
Type type = typeof(System.Windows.Media.Animation.Storyboard);
DependencyProperty dp = System.Windows.Media.Animation.Storyboard.TargetNameProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Media.Animation.Storyboard)), // DeclaringType
"TargetName", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8020,16 +8672,18 @@ private WpfKnownMember Create_BamlProperty_Storyboard_TargetName()
private WpfKnownMember Create_BamlProperty_XmlDataProvider_XPath()
{
Type type = typeof(System.Windows.Data.XmlDataProvider);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.XmlDataProvider)), // 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.XmlDataProvider)target).XPath = (System.String)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.XmlDataProvider)target).XPath; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.XmlDataProvider)target).XPath = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.XmlDataProvider)target).XPath; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8039,14 +8693,16 @@ private WpfKnownMember Create_BamlProperty_Selector_IsSelected()
{
Type type = typeof(System.Windows.Controls.Primitives.Selector);
DependencyProperty dp = System.Windows.Controls.Primitives.Selector.IsSelectedProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.Selector)), // DeclaringType
"IsSelected", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8055,18 +8711,20 @@ private WpfKnownMember Create_BamlProperty_Selector_IsSelected()
private WpfKnownMember Create_BamlProperty_DataTemplate_DataType()
{
Type type = typeof(System.Windows.DataTemplate);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.DataTemplate)), // DeclaringType
"DataType", // Name
typeof(System.Object), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Object);
- bamlMember.Ambient = true;
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.DataTemplate)target).DataType = (System.Object)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.DataTemplate)target).DataType; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ Ambient = true,
+ SetDelegate = delegate (object target, object value) { ((System.Windows.DataTemplate)target).DataType = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.DataTemplate)target).DataType; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8076,14 +8734,16 @@ private WpfKnownMember Create_BamlProperty_Shape_StrokeMiterLimit()
{
Type type = typeof(System.Windows.Shapes.Shape);
DependencyProperty dp = System.Windows.Shapes.Shape.StrokeMiterLimitProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Shapes.Shape)), // DeclaringType
"StrokeMiterLimit", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8093,14 +8753,16 @@ private WpfKnownMember Create_BamlProperty_UIElement_AllowDrop()
{
Type type = typeof(System.Windows.UIElement);
DependencyProperty dp = System.Windows.UIElement.AllowDropProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.UIElement)), // DeclaringType
"AllowDrop", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8110,14 +8772,16 @@ private WpfKnownMember Create_BamlProperty_MenuItem_IsChecked()
{
Type type = typeof(System.Windows.Controls.MenuItem);
DependencyProperty dp = System.Windows.Controls.MenuItem.IsCheckedProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.MenuItem)), // DeclaringType
"IsChecked", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8127,14 +8791,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8143,16 +8809,18 @@ private WpfKnownMember Create_BamlProperty_Panel_IsItemsHost()
private WpfKnownMember Create_BamlProperty_Binding_XPath()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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; };
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).XPath = (System.String)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).XPath; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8162,14 +8830,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8178,17 +8848,19 @@ private WpfKnownMember Create_BamlProperty_Window_AllowsTransparency()
private WpfKnownMember Create_BamlProperty_ObjectDataProvider_ObjectType()
{
Type type = typeof(System.Windows.Data.ObjectDataProvider);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Data.ObjectDataProvider)), // DeclaringType
"ObjectType", // Name
typeof(System.Type), // type
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.HasSpecialTypeConverter = true;
- bamlMember.TypeConverterType = typeof(System.Type);
- bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.ObjectDataProvider)target).ObjectType = (System.Type)value; };
- bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.ObjectDataProvider)target).ObjectType; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Type),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.ObjectDataProvider)target).ObjectType = (System.Type)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.ObjectDataProvider)target).ObjectType; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8198,15 +8870,17 @@ 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
+ 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;
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.Orientation),
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8216,14 +8890,16 @@ private WpfKnownMember Create_BamlProperty_TextBoxBase_VerticalScrollBarVisibili
{
Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.VerticalScrollBarVisibilityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Primitives.TextBoxBase)), // DeclaringType
"VerticalScrollBarVisibility", // Name
dp, // DependencyProperty
false, // IsReadOnly
false // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8233,14 +8909,16 @@ private WpfKnownMember Create_BamlProperty_TextBoxBase_HorizontalScrollBarVisibi
{
Type type = typeof(System.Windows.Controls.Primitives.TextBoxBase);
DependencyProperty dp = System.Windows.Controls.Primitives.TextBoxBase.HorizontalScrollBarVisibilityProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8249,15 +8927,17 @@ private WpfKnownMember Create_BamlProperty_TextBoxBase_HorizontalScrollBarVisibi
private WpfKnownMember Create_BamlProperty_FrameworkElement_Triggers()
{
Type type = typeof(System.Windows.FrameworkElement);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.FrameworkElement)target).Triggers; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8266,15 +8946,17 @@ private WpfKnownMember Create_BamlProperty_FrameworkElement_Triggers()
private WpfKnownMember Create_BamlProperty_MultiDataTrigger_Conditions()
{
Type type = typeof(System.Windows.MultiDataTrigger);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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;
+ )
+ {
+ GetDelegate = delegate (object target) { return ((System.Windows.MultiDataTrigger)target).Conditions; },
+ IsWritePrivate = true
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8284,14 +8966,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.Input.KeyConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8300,17 +8984,19 @@ private WpfKnownMember Create_BamlProperty_KeyBinding_Key()
private WpfKnownMember Create_BamlProperty_Binding_ConverterParameter()
{
Type type = typeof(System.Windows.Data.Binding);
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ 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; };
+ )
+ {
+ HasSpecialTypeConverter = true,
+ TypeConverterType = typeof(System.Object),
+ SetDelegate = delegate (object target, object value) { ((System.Windows.Data.Binding)target).ConverterParameter = (System.Object)value; },
+ GetDelegate = delegate (object target) { return ((System.Windows.Data.Binding)target).ConverterParameter; }
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8320,14 +9006,16 @@ private WpfKnownMember Create_BamlProperty_Canvas_Top()
{
Type type = typeof(System.Windows.Controls.Canvas);
DependencyProperty dp = System.Windows.Controls.Canvas.TopProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
"Top", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8337,14 +9025,16 @@ private WpfKnownMember Create_BamlProperty_Canvas_Left()
{
Type type = typeof(System.Windows.Controls.Canvas);
DependencyProperty dp = System.Windows.Controls.Canvas.LeftProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
"Left", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8354,14 +9044,16 @@ private WpfKnownMember Create_BamlProperty_Canvas_Bottom()
{
Type type = typeof(System.Windows.Controls.Canvas);
DependencyProperty dp = System.Windows.Controls.Canvas.BottomProperty;
- var bamlMember = new WpfKnownMember( this, // Schema Context
+ var bamlMember = new WpfKnownMember(this, // Schema Context
this.GetXamlType(typeof(System.Windows.Controls.Canvas)), // DeclaringType
"Bottom", // Name
dp, // DependencyProperty
false, // IsReadOnly
true // IsAttachable
- );
- bamlMember.TypeConverterType = typeof(System.Windows.LengthConverter);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8371,14 +9063,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.LengthConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
@@ -8388,14 +9082,16 @@ 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
+ 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);
+ )
+ {
+ TypeConverterType = typeof(System.Windows.PropertyPathConverter)
+ };
bamlMember.Freeze();
return bamlMember;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs
index 35989c58ae1..b312301e351 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Baml2006/WpfGeneratedKnownTypes.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -1590,13 +1590,15 @@ private WpfKnownType Create_BamlType_AccessText(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
1, "AccessText",
typeof(System.Windows.Controls.AccessText),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.AccessText(); };
- bamlType.ContentPropertyName = "Text";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.AccessText(); },
+ ContentPropertyName = "Text",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1607,13 +1609,15 @@ private WpfKnownType Create_BamlType_AdornedElementPlaceholder(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
2, "AdornedElementPlaceholder",
typeof(System.Windows.Controls.AdornedElementPlaceholder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.AdornedElementPlaceholder(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.AdornedElementPlaceholder(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1624,11 +1628,13 @@ private WpfKnownType Create_BamlType_Adorner(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
3, "Adorner",
typeof(System.Windows.Documents.Adorner),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1639,13 +1645,15 @@ private WpfKnownType Create_BamlType_AdornerDecorator(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
4, "AdornerDecorator",
typeof(System.Windows.Documents.AdornerDecorator),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.AdornerDecorator(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.AdornerDecorator(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1656,11 +1664,13 @@ private WpfKnownType Create_BamlType_AdornerLayer(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
5, "AdornerLayer",
typeof(System.Windows.Documents.AdornerLayer),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1682,8 +1692,10 @@ private WpfKnownType Create_BamlType_AmbientLight(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
7, "AmbientLight",
typeof(System.Windows.Media.Media3D.AmbientLight),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.AmbientLight(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.AmbientLight(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1694,11 +1706,13 @@ private WpfKnownType Create_BamlType_AnchoredBlock(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
8, "AnchoredBlock",
typeof(System.Windows.Documents.AnchoredBlock),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1731,8 +1745,10 @@ private WpfKnownType Create_BamlType_AnimationTimeline(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
11, "AnimationTimeline",
typeof(System.Windows.Media.Animation.AnimationTimeline),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1743,8 +1759,10 @@ private WpfKnownType Create_BamlType_Application(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
12, "Application",
typeof(System.Windows.Application),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Application(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Application(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1755,8 +1773,10 @@ private WpfKnownType Create_BamlType_ArcSegment(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
13, "ArcSegment",
typeof(System.Windows.Media.ArcSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ArcSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ArcSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1767,9 +1787,11 @@ private WpfKnownType Create_BamlType_ArrayExtension(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
14, "ArrayExtension",
typeof(System.Windows.Markup.ArrayExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.ArrayExtension(); };
- bamlType.ContentPropertyName = "Items";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.ArrayExtension(); },
+ ContentPropertyName = "Items"
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Type) },
delegate(object[] arguments)
@@ -1787,8 +1809,10 @@ private WpfKnownType Create_BamlType_AxisAngleRotation3D(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
15, "AxisAngleRotation3D",
typeof(System.Windows.Media.Media3D.AxisAngleRotation3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.AxisAngleRotation3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.AxisAngleRotation3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1810,10 +1834,12 @@ private WpfKnownType Create_BamlType_BeginStoryboard(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
17, "BeginStoryboard",
typeof(System.Windows.Media.Animation.BeginStoryboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.BeginStoryboard(); };
- bamlType.ContentPropertyName = "Storyboard";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.BeginStoryboard(); },
+ ContentPropertyName = "Storyboard",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1824,8 +1850,10 @@ private WpfKnownType Create_BamlType_BevelBitmapEffect(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
18, "BevelBitmapEffect",
typeof(System.Windows.Media.Effects.BevelBitmapEffect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.BevelBitmapEffect(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.BevelBitmapEffect(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1836,8 +1864,10 @@ private WpfKnownType Create_BamlType_BezierSegment(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
19, "BezierSegment",
typeof(System.Windows.Media.BezierSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.BezierSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.BezierSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1848,8 +1878,10 @@ private WpfKnownType Create_BamlType_Binding(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
20, "Binding",
typeof(System.Windows.Data.Binding),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.Binding(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.Binding(); }
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.String) },
delegate(object[] arguments)
@@ -1878,8 +1910,10 @@ private WpfKnownType Create_BamlType_BindingExpression(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
22, "BindingExpression",
typeof(System.Windows.Data.BindingExpression),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.ExpressionConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.ExpressionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1890,8 +1924,10 @@ private WpfKnownType Create_BamlType_BindingExpressionBase(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
23, "BindingExpressionBase",
typeof(System.Windows.Data.BindingExpressionBase),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.ExpressionConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.ExpressionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1935,9 +1971,11 @@ private WpfKnownType Create_BamlType_BitmapEffectCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
27, "BitmapEffectCollection",
typeof(System.Windows.Media.Effects.BitmapEffectCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.BitmapEffectCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.BitmapEffectCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1948,9 +1986,11 @@ private WpfKnownType Create_BamlType_BitmapEffectGroup(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
28, "BitmapEffectGroup",
typeof(System.Windows.Media.Effects.BitmapEffectGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.BitmapEffectGroup(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.BitmapEffectGroup(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1961,8 +2001,10 @@ private WpfKnownType Create_BamlType_BitmapEffectInput(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
29, "BitmapEffectInput",
typeof(System.Windows.Media.Effects.BitmapEffectInput),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.BitmapEffectInput(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.BitmapEffectInput(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1984,8 +2026,10 @@ private WpfKnownType Create_BamlType_BitmapFrame(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
31, "BitmapFrame",
typeof(System.Windows.Media.Imaging.BitmapFrame),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -1996,9 +2040,11 @@ private WpfKnownType Create_BamlType_BitmapImage(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
32, "BitmapImage",
typeof(System.Windows.Media.Imaging.BitmapImage),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.BitmapImage(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.BitmapImage(); },
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2031,8 +2077,10 @@ private WpfKnownType Create_BamlType_BitmapSource(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
35, "BitmapSource",
typeof(System.Windows.Media.Imaging.BitmapSource),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2043,10 +2091,12 @@ private WpfKnownType Create_BamlType_Block(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
36, "Block",
typeof(System.Windows.Documents.Block),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2057,12 +2107,14 @@ private WpfKnownType Create_BamlType_BlockUIContainer(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
37, "BlockUIContainer",
typeof(System.Windows.Documents.BlockUIContainer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.BlockUIContainer(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.BlockUIContainer(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2073,8 +2125,10 @@ private WpfKnownType Create_BamlType_BlurBitmapEffect(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
38, "BlurBitmapEffect",
typeof(System.Windows.Media.Effects.BlurBitmapEffect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.BlurBitmapEffect(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.BlurBitmapEffect(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2096,8 +2150,10 @@ private WpfKnownType Create_BamlType_BmpBitmapEncoder(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
40, "BmpBitmapEncoder",
typeof(System.Windows.Media.Imaging.BmpBitmapEncoder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.BmpBitmapEncoder(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.BmpBitmapEncoder(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2108,12 +2164,14 @@ private WpfKnownType Create_BamlType_Bold(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
41, "Bold",
typeof(System.Windows.Documents.Bold),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Bold(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Bold(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2124,8 +2182,10 @@ private WpfKnownType Create_BamlType_BoolIListConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
42, "BoolIListConverter",
typeof(System.Windows.Media.Converters.BoolIListConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Converters.BoolIListConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Converters.BoolIListConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2136,9 +2196,11 @@ private WpfKnownType Create_BamlType_Boolean(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
43, "Boolean",
typeof(System.Boolean),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Boolean(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.BooleanConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Boolean(); },
+ TypeConverterType = typeof(System.ComponentModel.BooleanConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2149,8 +2211,10 @@ private WpfKnownType Create_BamlType_BooleanAnimationBase(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
44, "BooleanAnimationBase",
typeof(System.Windows.Media.Animation.BooleanAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2161,10 +2225,12 @@ private WpfKnownType Create_BamlType_BooleanAnimationUsingKeyFrames(bool isBamlT
var bamlType = new WpfKnownType(this, // SchemaContext
45, "BooleanAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.BooleanAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2175,8 +2241,10 @@ private WpfKnownType Create_BamlType_BooleanConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
46, "BooleanConverter",
typeof(System.ComponentModel.BooleanConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.BooleanConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.BooleanConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2198,9 +2266,11 @@ private WpfKnownType Create_BamlType_BooleanKeyFrameCollection(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
48, "BooleanKeyFrameCollection",
typeof(System.Windows.Media.Animation.BooleanKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.BooleanKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.BooleanKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2211,8 +2281,10 @@ private WpfKnownType Create_BamlType_BooleanToVisibilityConverter(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
49, "BooleanToVisibilityConverter",
typeof(System.Windows.Controls.BooleanToVisibilityConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.BooleanToVisibilityConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.BooleanToVisibilityConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2223,13 +2295,15 @@ private WpfKnownType Create_BamlType_Border(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
50, "Border",
typeof(System.Windows.Controls.Border),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Border(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Border(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2240,8 +2314,10 @@ private WpfKnownType Create_BamlType_BorderGapMaskConverter(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
51, "BorderGapMaskConverter",
typeof(System.Windows.Controls.BorderGapMaskConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.BorderGapMaskConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.BorderGapMaskConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2252,8 +2328,10 @@ private WpfKnownType Create_BamlType_Brush(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
52, "Brush",
typeof(System.Windows.Media.Brush),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2264,8 +2342,10 @@ private WpfKnownType Create_BamlType_BrushConverter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
53, "BrushConverter",
typeof(System.Windows.Media.BrushConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.BrushConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.BrushConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2276,13 +2356,15 @@ private WpfKnownType Create_BamlType_BulletDecorator(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
54, "BulletDecorator",
typeof(System.Windows.Controls.Primitives.BulletDecorator),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.BulletDecorator(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.BulletDecorator(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2293,13 +2375,15 @@ private WpfKnownType Create_BamlType_Button(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
55, "Button",
typeof(System.Windows.Controls.Button),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Button(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Button(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2310,12 +2394,14 @@ private WpfKnownType Create_BamlType_ButtonBase(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
56, "ButtonBase",
typeof(System.Windows.Controls.Primitives.ButtonBase),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2326,9 +2412,11 @@ private WpfKnownType Create_BamlType_Byte(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
57, "Byte",
typeof(System.Byte),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Byte(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.ByteConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Byte(); },
+ TypeConverterType = typeof(System.ComponentModel.ByteConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2339,9 +2427,11 @@ private WpfKnownType Create_BamlType_ByteAnimation(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
58, "ByteAnimation",
typeof(System.Windows.Media.Animation.ByteAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ByteAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ByteAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2352,8 +2442,10 @@ private WpfKnownType Create_BamlType_ByteAnimationBase(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
59, "ByteAnimationBase",
typeof(System.Windows.Media.Animation.ByteAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2364,10 +2456,12 @@ private WpfKnownType Create_BamlType_ByteAnimationUsingKeyFrames(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
60, "ByteAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.ByteAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ByteAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ByteAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2378,8 +2472,10 @@ private WpfKnownType Create_BamlType_ByteConverter(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
61, "ByteConverter",
typeof(System.ComponentModel.ByteConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.ByteConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.ByteConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2401,9 +2497,11 @@ private WpfKnownType Create_BamlType_ByteKeyFrameCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
63, "ByteKeyFrameCollection",
typeof(System.Windows.Media.Animation.ByteKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ByteKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ByteKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2414,8 +2512,10 @@ private WpfKnownType Create_BamlType_CachedBitmap(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
64, "CachedBitmap",
typeof(System.Windows.Media.Imaging.CachedBitmap),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2437,13 +2537,15 @@ private WpfKnownType Create_BamlType_Canvas(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
66, "Canvas",
typeof(System.Windows.Controls.Canvas),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Canvas(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Canvas(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2454,9 +2556,11 @@ private WpfKnownType Create_BamlType_Char(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
67, "Char",
typeof(System.Char),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Char(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.CharConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Char(); },
+ TypeConverterType = typeof(System.ComponentModel.CharConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2467,8 +2571,10 @@ private WpfKnownType Create_BamlType_CharAnimationBase(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
68, "CharAnimationBase",
typeof(System.Windows.Media.Animation.CharAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2479,10 +2585,12 @@ private WpfKnownType Create_BamlType_CharAnimationUsingKeyFrames(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
69, "CharAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.CharAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.CharAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.CharAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2493,8 +2601,10 @@ private WpfKnownType Create_BamlType_CharConverter(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
70, "CharConverter",
typeof(System.ComponentModel.CharConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.CharConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.CharConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2505,8 +2615,10 @@ private WpfKnownType Create_BamlType_CharIListConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
71, "CharIListConverter",
typeof(System.Windows.Media.Converters.CharIListConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Converters.CharIListConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Converters.CharIListConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2528,9 +2640,11 @@ private WpfKnownType Create_BamlType_CharKeyFrameCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
73, "CharKeyFrameCollection",
typeof(System.Windows.Media.Animation.CharKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.CharKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.CharKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2541,13 +2655,15 @@ private WpfKnownType Create_BamlType_CheckBox(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
74, "CheckBox",
typeof(System.Windows.Controls.CheckBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.CheckBox(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.CheckBox(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2591,8 +2707,10 @@ private WpfKnownType Create_BamlType_CollectionContainer(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
78, "CollectionContainer",
typeof(System.Windows.Data.CollectionContainer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.CollectionContainer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.CollectionContainer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2614,8 +2732,10 @@ private WpfKnownType Create_BamlType_CollectionViewSource(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
80, "CollectionViewSource",
typeof(System.Windows.Data.CollectionViewSource),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.CollectionViewSource(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.CollectionViewSource(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2626,9 +2746,11 @@ private WpfKnownType Create_BamlType_Color(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
81, "Color",
typeof(System.Windows.Media.Color),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Color(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ColorConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Color(); },
+ TypeConverterType = typeof(System.Windows.Media.ColorConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2639,9 +2761,11 @@ private WpfKnownType Create_BamlType_ColorAnimation(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
82, "ColorAnimation",
typeof(System.Windows.Media.Animation.ColorAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ColorAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ColorAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2652,8 +2776,10 @@ private WpfKnownType Create_BamlType_ColorAnimationBase(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
83, "ColorAnimationBase",
typeof(System.Windows.Media.Animation.ColorAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2664,10 +2790,12 @@ private WpfKnownType Create_BamlType_ColorAnimationUsingKeyFrames(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
84, "ColorAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.ColorAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ColorAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ColorAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2678,9 +2806,11 @@ private WpfKnownType Create_BamlType_ColorConvertedBitmap(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
85, "ColorConvertedBitmap",
typeof(System.Windows.Media.Imaging.ColorConvertedBitmap),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.ColorConvertedBitmap(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.ColorConvertedBitmap(); },
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2691,8 +2821,10 @@ private WpfKnownType Create_BamlType_ColorConvertedBitmapExtension(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
86, "ColorConvertedBitmapExtension",
typeof(System.Windows.ColorConvertedBitmapExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ColorConvertedBitmapExtension(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ColorConvertedBitmapExtension(); }
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Object) },
delegate(object[] arguments)
@@ -2710,8 +2842,10 @@ private WpfKnownType Create_BamlType_ColorConverter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
87, "ColorConverter",
typeof(System.Windows.Media.ColorConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ColorConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ColorConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2733,9 +2867,11 @@ private WpfKnownType Create_BamlType_ColorKeyFrameCollection(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
89, "ColorKeyFrameCollection",
typeof(System.Windows.Media.Animation.ColorKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ColorKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ColorKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2746,11 +2882,13 @@ private WpfKnownType Create_BamlType_ColumnDefinition(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
90, "ColumnDefinition",
typeof(System.Windows.Controls.ColumnDefinition),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ColumnDefinition(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ColumnDefinition(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2761,9 +2899,11 @@ private WpfKnownType Create_BamlType_CombinedGeometry(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
91, "CombinedGeometry",
typeof(System.Windows.Media.CombinedGeometry),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.CombinedGeometry(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.CombinedGeometry(); },
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2774,13 +2914,15 @@ private WpfKnownType Create_BamlType_ComboBox(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
92, "ComboBox",
typeof(System.Windows.Controls.ComboBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ComboBox(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ComboBox(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2791,13 +2933,15 @@ private WpfKnownType Create_BamlType_ComboBoxItem(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
93, "ComboBoxItem",
typeof(System.Windows.Controls.ComboBoxItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ComboBoxItem(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ComboBoxItem(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2808,8 +2952,10 @@ private WpfKnownType Create_BamlType_CommandConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
94, "CommandConverter",
typeof(System.Windows.Input.CommandConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.CommandConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.CommandConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2820,9 +2966,11 @@ private WpfKnownType Create_BamlType_ComponentResourceKey(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
95, "ComponentResourceKey",
typeof(System.Windows.ComponentResourceKey),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ComponentResourceKey(); };
- bamlType.TypeConverterType = typeof(System.Windows.Markup.ComponentResourceKeyConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ComponentResourceKey(); },
+ TypeConverterType = typeof(System.Windows.Markup.ComponentResourceKeyConverter)
+ };
bamlType.Constructors.Add(2, new Baml6ConstructorInfo(
new List() { typeof(System.Type), typeof(System.Object) },
delegate(object[] arguments)
@@ -2841,8 +2989,10 @@ private WpfKnownType Create_BamlType_ComponentResourceKeyConverter(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
96, "ComponentResourceKeyConverter",
typeof(System.Windows.Markup.ComponentResourceKeyConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.ComponentResourceKeyConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.ComponentResourceKeyConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2864,8 +3014,10 @@ private WpfKnownType Create_BamlType_Condition(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
98, "Condition",
typeof(System.Windows.Condition),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Condition(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Condition(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2876,8 +3028,10 @@ private WpfKnownType Create_BamlType_ContainerVisual(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
99, "ContainerVisual",
typeof(System.Windows.Media.ContainerVisual),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ContainerVisual(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ContainerVisual(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2888,13 +3042,15 @@ private WpfKnownType Create_BamlType_ContentControl(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
100, "ContentControl",
typeof(System.Windows.Controls.ContentControl),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContentControl(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ContentControl(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2905,8 +3061,10 @@ private WpfKnownType Create_BamlType_ContentElement(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
101, "ContentElement",
typeof(System.Windows.ContentElement),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ContentElement(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ContentElement(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2917,12 +3075,14 @@ private WpfKnownType Create_BamlType_ContentPresenter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
102, "ContentPresenter",
typeof(System.Windows.Controls.ContentPresenter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContentPresenter(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ContentPresenter(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2933,8 +3093,10 @@ private WpfKnownType Create_BamlType_ContentPropertyAttribute(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
103, "ContentPropertyAttribute",
typeof(System.Windows.Markup.ContentPropertyAttribute),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.ContentPropertyAttribute(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.ContentPropertyAttribute(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2956,13 +3118,15 @@ private WpfKnownType Create_BamlType_ContextMenu(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
105, "ContextMenu",
typeof(System.Windows.Controls.ContextMenu),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ContextMenu(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ContextMenu(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -2984,12 +3148,14 @@ private WpfKnownType Create_BamlType_Control(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
107, "Control",
typeof(System.Windows.Controls.Control),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Control(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Control(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3000,10 +3166,12 @@ private WpfKnownType Create_BamlType_ControlTemplate(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
108, "ControlTemplate",
typeof(System.Windows.Controls.ControlTemplate),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ControlTemplate(); };
- bamlType.ContentPropertyName = "Template";
- bamlType.DictionaryKeyPropertyName = "TargetType";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ControlTemplate(); },
+ ContentPropertyName = "Template",
+ DictionaryKeyPropertyName = "TargetType"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3025,9 +3193,11 @@ private WpfKnownType Create_BamlType_CornerRadius(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
110, "CornerRadius",
typeof(System.Windows.CornerRadius),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.CornerRadius(); };
- bamlType.TypeConverterType = typeof(System.Windows.CornerRadiusConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.CornerRadius(); },
+ TypeConverterType = typeof(System.Windows.CornerRadiusConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3038,8 +3208,10 @@ private WpfKnownType Create_BamlType_CornerRadiusConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
111, "CornerRadiusConverter",
typeof(System.Windows.CornerRadiusConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.CornerRadiusConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.CornerRadiusConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3050,9 +3222,11 @@ private WpfKnownType Create_BamlType_CroppedBitmap(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
112, "CroppedBitmap",
typeof(System.Windows.Media.Imaging.CroppedBitmap),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.CroppedBitmap(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.CroppedBitmap(); },
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3063,8 +3237,10 @@ private WpfKnownType Create_BamlType_CultureInfo(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
113, "CultureInfo",
typeof(System.Globalization.CultureInfo),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.ComponentModel.CultureInfoConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.ComponentModel.CultureInfoConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3075,8 +3251,10 @@ private WpfKnownType Create_BamlType_CultureInfoConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
114, "CultureInfoConverter",
typeof(System.ComponentModel.CultureInfoConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.CultureInfoConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.CultureInfoConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3087,8 +3265,10 @@ private WpfKnownType Create_BamlType_CultureInfoIetfLanguageTagConverter(bool is
var bamlType = new WpfKnownType(this, // SchemaContext
115, "CultureInfoIetfLanguageTagConverter",
typeof(System.Windows.CultureInfoIetfLanguageTagConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.CultureInfoIetfLanguageTagConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.CultureInfoIetfLanguageTagConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3099,8 +3279,10 @@ private WpfKnownType Create_BamlType_Cursor(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
116, "Cursor",
typeof(System.Windows.Input.Cursor),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Input.CursorConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Input.CursorConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3111,8 +3293,10 @@ private WpfKnownType Create_BamlType_CursorConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
117, "CursorConverter",
typeof(System.Windows.Input.CursorConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.CursorConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.CursorConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3123,8 +3307,10 @@ private WpfKnownType Create_BamlType_DashStyle(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
118, "DashStyle",
typeof(System.Windows.Media.DashStyle),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DashStyle(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DashStyle(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3146,10 +3332,12 @@ private WpfKnownType Create_BamlType_DataTemplate(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
120, "DataTemplate",
typeof(System.Windows.DataTemplate),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DataTemplate(); };
- bamlType.ContentPropertyName = "Template";
- bamlType.DictionaryKeyPropertyName = "DataTemplateKey";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DataTemplate(); },
+ ContentPropertyName = "Template",
+ DictionaryKeyPropertyName = "DataTemplateKey"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3160,9 +3348,11 @@ private WpfKnownType Create_BamlType_DataTemplateKey(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
121, "DataTemplateKey",
typeof(System.Windows.DataTemplateKey),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DataTemplateKey(); };
- bamlType.TypeConverterType = typeof(System.Windows.Markup.TemplateKeyConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DataTemplateKey(); },
+ TypeConverterType = typeof(System.Windows.Markup.TemplateKeyConverter)
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Object) },
delegate(object[] arguments)
@@ -3180,9 +3370,11 @@ private WpfKnownType Create_BamlType_DataTrigger(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
122, "DataTrigger",
typeof(System.Windows.DataTrigger),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DataTrigger(); };
- bamlType.ContentPropertyName = "Setters";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DataTrigger(); },
+ ContentPropertyName = "Setters"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3193,9 +3385,11 @@ private WpfKnownType Create_BamlType_DateTime(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
123, "DateTime",
typeof(System.DateTime),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.DateTime(); };
- bamlType.HasSpecialValueConverter = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.DateTime(); },
+ HasSpecialValueConverter = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3206,8 +3400,10 @@ private WpfKnownType Create_BamlType_DateTimeConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
124, "DateTimeConverter",
typeof(System.ComponentModel.DateTimeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.DateTimeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.DateTimeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3218,8 +3414,10 @@ private WpfKnownType Create_BamlType_DateTimeConverter2(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
125, "DateTimeConverter2",
typeof(System.Windows.Markup.DateTimeConverter2),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.DateTimeConverter2(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.DateTimeConverter2(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3230,9 +3428,11 @@ private WpfKnownType Create_BamlType_Decimal(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
126, "Decimal",
typeof(System.Decimal),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Decimal(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.DecimalConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Decimal(); },
+ TypeConverterType = typeof(System.ComponentModel.DecimalConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3243,9 +3443,11 @@ private WpfKnownType Create_BamlType_DecimalAnimation(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
127, "DecimalAnimation",
typeof(System.Windows.Media.Animation.DecimalAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DecimalAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DecimalAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3256,8 +3458,10 @@ private WpfKnownType Create_BamlType_DecimalAnimationBase(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
128, "DecimalAnimationBase",
typeof(System.Windows.Media.Animation.DecimalAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3268,10 +3472,12 @@ private WpfKnownType Create_BamlType_DecimalAnimationUsingKeyFrames(bool isBamlT
var bamlType = new WpfKnownType(this, // SchemaContext
129, "DecimalAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DecimalAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3282,8 +3488,10 @@ private WpfKnownType Create_BamlType_DecimalConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
130, "DecimalConverter",
typeof(System.ComponentModel.DecimalConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.DecimalConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.DecimalConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3305,9 +3513,11 @@ private WpfKnownType Create_BamlType_DecimalKeyFrameCollection(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
132, "DecimalKeyFrameCollection",
typeof(System.Windows.Media.Animation.DecimalKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DecimalKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DecimalKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3318,13 +3528,15 @@ private WpfKnownType Create_BamlType_Decorator(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
133, "Decorator",
typeof(System.Windows.Controls.Decorator),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Decorator(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Decorator(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3335,10 +3547,12 @@ private WpfKnownType Create_BamlType_DefinitionBase(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
134, "DefinitionBase",
typeof(System.Windows.Controls.DefinitionBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3349,8 +3563,10 @@ private WpfKnownType Create_BamlType_DependencyObject(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
135, "DependencyObject",
typeof(System.Windows.DependencyObject),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DependencyObject(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DependencyObject(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3361,8 +3577,10 @@ private WpfKnownType Create_BamlType_DependencyProperty(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
136, "DependencyProperty",
typeof(System.Windows.DependencyProperty),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Markup.DependencyPropertyConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Markup.DependencyPropertyConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3373,8 +3591,10 @@ private WpfKnownType Create_BamlType_DependencyPropertyConverter(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
137, "DependencyPropertyConverter",
typeof(System.Windows.Markup.DependencyPropertyConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.DependencyPropertyConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.DependencyPropertyConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3385,8 +3605,10 @@ private WpfKnownType Create_BamlType_DialogResultConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
138, "DialogResultConverter",
typeof(System.Windows.DialogResultConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DialogResultConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DialogResultConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3397,8 +3619,10 @@ private WpfKnownType Create_BamlType_DiffuseMaterial(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
139, "DiffuseMaterial",
typeof(System.Windows.Media.Media3D.DiffuseMaterial),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.DiffuseMaterial(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.DiffuseMaterial(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3409,8 +3633,10 @@ private WpfKnownType Create_BamlType_DirectionalLight(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
140, "DirectionalLight",
typeof(System.Windows.Media.Media3D.DirectionalLight),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.DirectionalLight(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.DirectionalLight(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3421,8 +3647,10 @@ private WpfKnownType Create_BamlType_DiscreteBooleanKeyFrame(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
141, "DiscreteBooleanKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteBooleanKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteBooleanKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteBooleanKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3433,8 +3661,10 @@ private WpfKnownType Create_BamlType_DiscreteByteKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
142, "DiscreteByteKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteByteKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteByteKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteByteKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3445,8 +3675,10 @@ private WpfKnownType Create_BamlType_DiscreteCharKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
143, "DiscreteCharKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteCharKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteCharKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteCharKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3457,8 +3689,10 @@ private WpfKnownType Create_BamlType_DiscreteColorKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
144, "DiscreteColorKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteColorKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteColorKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteColorKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3469,8 +3703,10 @@ private WpfKnownType Create_BamlType_DiscreteDecimalKeyFrame(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
145, "DiscreteDecimalKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteDecimalKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteDecimalKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteDecimalKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3481,8 +3717,10 @@ private WpfKnownType Create_BamlType_DiscreteDoubleKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
146, "DiscreteDoubleKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteDoubleKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteDoubleKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteDoubleKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3493,8 +3731,10 @@ private WpfKnownType Create_BamlType_DiscreteInt16KeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
147, "DiscreteInt16KeyFrame",
typeof(System.Windows.Media.Animation.DiscreteInt16KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteInt16KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteInt16KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3505,8 +3745,10 @@ private WpfKnownType Create_BamlType_DiscreteInt32KeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
148, "DiscreteInt32KeyFrame",
typeof(System.Windows.Media.Animation.DiscreteInt32KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteInt32KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteInt32KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3517,8 +3759,10 @@ private WpfKnownType Create_BamlType_DiscreteInt64KeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
149, "DiscreteInt64KeyFrame",
typeof(System.Windows.Media.Animation.DiscreteInt64KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteInt64KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteInt64KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3529,8 +3773,10 @@ private WpfKnownType Create_BamlType_DiscreteMatrixKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
150, "DiscreteMatrixKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteMatrixKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteMatrixKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteMatrixKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3541,8 +3787,10 @@ private WpfKnownType Create_BamlType_DiscreteObjectKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
151, "DiscreteObjectKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteObjectKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteObjectKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteObjectKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3553,8 +3801,10 @@ private WpfKnownType Create_BamlType_DiscretePoint3DKeyFrame(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
152, "DiscretePoint3DKeyFrame",
typeof(System.Windows.Media.Animation.DiscretePoint3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscretePoint3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscretePoint3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3565,8 +3815,10 @@ private WpfKnownType Create_BamlType_DiscretePointKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
153, "DiscretePointKeyFrame",
typeof(System.Windows.Media.Animation.DiscretePointKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscretePointKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscretePointKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3577,8 +3829,10 @@ private WpfKnownType Create_BamlType_DiscreteQuaternionKeyFrame(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
154, "DiscreteQuaternionKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteQuaternionKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteQuaternionKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteQuaternionKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3589,8 +3843,10 @@ private WpfKnownType Create_BamlType_DiscreteRectKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
155, "DiscreteRectKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteRectKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteRectKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteRectKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3601,8 +3857,10 @@ private WpfKnownType Create_BamlType_DiscreteRotation3DKeyFrame(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
156, "DiscreteRotation3DKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteRotation3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteRotation3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteRotation3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3613,8 +3871,10 @@ private WpfKnownType Create_BamlType_DiscreteSingleKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
157, "DiscreteSingleKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteSingleKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteSingleKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteSingleKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3625,8 +3885,10 @@ private WpfKnownType Create_BamlType_DiscreteSizeKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
158, "DiscreteSizeKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteSizeKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteSizeKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteSizeKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3637,8 +3899,10 @@ private WpfKnownType Create_BamlType_DiscreteStringKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
159, "DiscreteStringKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteStringKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteStringKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteStringKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3649,8 +3913,10 @@ private WpfKnownType Create_BamlType_DiscreteThicknessKeyFrame(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
160, "DiscreteThicknessKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteThicknessKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteThicknessKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteThicknessKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3661,8 +3927,10 @@ private WpfKnownType Create_BamlType_DiscreteVector3DKeyFrame(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
161, "DiscreteVector3DKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteVector3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteVector3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteVector3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3673,8 +3941,10 @@ private WpfKnownType Create_BamlType_DiscreteVectorKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
162, "DiscreteVectorKeyFrame",
typeof(System.Windows.Media.Animation.DiscreteVectorKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DiscreteVectorKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DiscreteVectorKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3685,13 +3955,15 @@ private WpfKnownType Create_BamlType_DockPanel(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
163, "DockPanel",
typeof(System.Windows.Controls.DockPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.DockPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.DockPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3702,12 +3974,14 @@ private WpfKnownType Create_BamlType_DocumentPageView(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
164, "DocumentPageView",
typeof(System.Windows.Controls.Primitives.DocumentPageView),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.DocumentPageView(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.DocumentPageView(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3718,11 +3992,13 @@ private WpfKnownType Create_BamlType_DocumentReference(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
165, "DocumentReference",
typeof(System.Windows.Documents.DocumentReference),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.DocumentReference(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.DocumentReference(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3733,13 +4009,15 @@ private WpfKnownType Create_BamlType_DocumentViewer(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
166, "DocumentViewer",
typeof(System.Windows.Controls.DocumentViewer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.DocumentViewer(); };
- bamlType.ContentPropertyName = "Document";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.DocumentViewer(); },
+ ContentPropertyName = "Document",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3750,12 +4028,14 @@ private WpfKnownType Create_BamlType_DocumentViewerBase(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
167, "DocumentViewerBase",
typeof(System.Windows.Controls.Primitives.DocumentViewerBase),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Document";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Document",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3766,9 +4046,11 @@ private WpfKnownType Create_BamlType_Double(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
168, "Double",
typeof(System.Double),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Double(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.DoubleConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Double(); },
+ TypeConverterType = typeof(System.ComponentModel.DoubleConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3779,9 +4061,11 @@ private WpfKnownType Create_BamlType_DoubleAnimation(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
169, "DoubleAnimation",
typeof(System.Windows.Media.Animation.DoubleAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DoubleAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DoubleAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3792,8 +4076,10 @@ private WpfKnownType Create_BamlType_DoubleAnimationBase(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
170, "DoubleAnimationBase",
typeof(System.Windows.Media.Animation.DoubleAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3804,10 +4090,12 @@ private WpfKnownType Create_BamlType_DoubleAnimationUsingKeyFrames(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
171, "DoubleAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3818,9 +4106,11 @@ private WpfKnownType Create_BamlType_DoubleAnimationUsingPath(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
172, "DoubleAnimationUsingPath",
typeof(System.Windows.Media.Animation.DoubleAnimationUsingPath),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DoubleAnimationUsingPath(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DoubleAnimationUsingPath(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3831,10 +4121,12 @@ private WpfKnownType Create_BamlType_DoubleCollection(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
173, "DoubleCollection",
typeof(System.Windows.Media.DoubleCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DoubleCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.DoubleCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DoubleCollection(); },
+ TypeConverterType = typeof(System.Windows.Media.DoubleCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3845,8 +4137,10 @@ private WpfKnownType Create_BamlType_DoubleCollectionConverter(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
174, "DoubleCollectionConverter",
typeof(System.Windows.Media.DoubleCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DoubleCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DoubleCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3857,8 +4151,10 @@ private WpfKnownType Create_BamlType_DoubleConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
175, "DoubleConverter",
typeof(System.ComponentModel.DoubleConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.DoubleConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.DoubleConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3869,8 +4165,10 @@ private WpfKnownType Create_BamlType_DoubleIListConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
176, "DoubleIListConverter",
typeof(System.Windows.Media.Converters.DoubleIListConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Converters.DoubleIListConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Converters.DoubleIListConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3892,9 +4190,11 @@ private WpfKnownType Create_BamlType_DoubleKeyFrameCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
178, "DoubleKeyFrameCollection",
typeof(System.Windows.Media.Animation.DoubleKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.DoubleKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.DoubleKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3916,9 +4216,11 @@ private WpfKnownType Create_BamlType_DrawingBrush(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
180, "DrawingBrush",
typeof(System.Windows.Media.DrawingBrush),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DrawingBrush(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DrawingBrush(); },
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3929,9 +4231,11 @@ private WpfKnownType Create_BamlType_DrawingCollection(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
181, "DrawingCollection",
typeof(System.Windows.Media.DrawingCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DrawingCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DrawingCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3953,9 +4257,11 @@ private WpfKnownType Create_BamlType_DrawingGroup(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
183, "DrawingGroup",
typeof(System.Windows.Media.DrawingGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DrawingGroup(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DrawingGroup(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3966,9 +4272,11 @@ private WpfKnownType Create_BamlType_DrawingImage(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
184, "DrawingImage",
typeof(System.Windows.Media.DrawingImage),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DrawingImage(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DrawingImage(); },
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3979,8 +4287,10 @@ private WpfKnownType Create_BamlType_DrawingVisual(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
185, "DrawingVisual",
typeof(System.Windows.Media.DrawingVisual),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.DrawingVisual(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.DrawingVisual(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -3991,8 +4301,10 @@ private WpfKnownType Create_BamlType_DropShadowBitmapEffect(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
186, "DropShadowBitmapEffect",
typeof(System.Windows.Media.Effects.DropShadowBitmapEffect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.DropShadowBitmapEffect(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.DropShadowBitmapEffect(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4003,9 +4315,11 @@ private WpfKnownType Create_BamlType_Duration(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
187, "Duration",
typeof(System.Windows.Duration),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Duration(); };
- bamlType.TypeConverterType = typeof(System.Windows.DurationConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Duration(); },
+ TypeConverterType = typeof(System.Windows.DurationConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4016,8 +4330,10 @@ private WpfKnownType Create_BamlType_DurationConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
188, "DurationConverter",
typeof(System.Windows.DurationConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DurationConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DurationConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4028,9 +4344,11 @@ private WpfKnownType Create_BamlType_DynamicResourceExtension(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
189, "DynamicResourceExtension",
typeof(System.Windows.DynamicResourceExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DynamicResourceExtension(); };
- bamlType.TypeConverterType = typeof(System.Windows.DynamicResourceExtensionConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DynamicResourceExtension(); },
+ TypeConverterType = typeof(System.Windows.DynamicResourceExtensionConverter)
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Object) },
delegate(object[] arguments)
@@ -4048,8 +4366,10 @@ private WpfKnownType Create_BamlType_DynamicResourceExtensionConverter(bool isBa
var bamlType = new WpfKnownType(this, // SchemaContext
190, "DynamicResourceExtensionConverter",
typeof(System.Windows.DynamicResourceExtensionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.DynamicResourceExtensionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.DynamicResourceExtensionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4060,12 +4380,14 @@ private WpfKnownType Create_BamlType_Ellipse(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
191, "Ellipse",
typeof(System.Windows.Shapes.Ellipse),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Shapes.Ellipse(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Shapes.Ellipse(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4076,9 +4398,11 @@ private WpfKnownType Create_BamlType_EllipseGeometry(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
192, "EllipseGeometry",
typeof(System.Windows.Media.EllipseGeometry),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.EllipseGeometry(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.EllipseGeometry(); },
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4089,8 +4413,10 @@ private WpfKnownType Create_BamlType_EmbossBitmapEffect(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
193, "EmbossBitmapEffect",
typeof(System.Windows.Media.Effects.EmbossBitmapEffect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.EmbossBitmapEffect(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.EmbossBitmapEffect(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4101,8 +4427,10 @@ private WpfKnownType Create_BamlType_EmissiveMaterial(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
194, "EmissiveMaterial",
typeof(System.Windows.Media.Media3D.EmissiveMaterial),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.EmissiveMaterial(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.EmissiveMaterial(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4135,8 +4463,10 @@ private WpfKnownType Create_BamlType_EventSetter(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
197, "EventSetter",
typeof(System.Windows.EventSetter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.EventSetter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.EventSetter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4147,9 +4477,11 @@ private WpfKnownType Create_BamlType_EventTrigger(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
198, "EventTrigger",
typeof(System.Windows.EventTrigger),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.EventTrigger(); };
- bamlType.ContentPropertyName = "Actions";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.EventTrigger(); },
+ ContentPropertyName = "Actions"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4160,13 +4492,15 @@ private WpfKnownType Create_BamlType_Expander(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
199, "Expander",
typeof(System.Windows.Controls.Expander),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Expander(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Expander(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4177,8 +4511,10 @@ private WpfKnownType Create_BamlType_Expression(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
200, "Expression",
typeof(System.Windows.Expression),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.ExpressionConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.ExpressionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4189,8 +4525,10 @@ private WpfKnownType Create_BamlType_ExpressionConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
201, "ExpressionConverter",
typeof(System.Windows.ExpressionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ExpressionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ExpressionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4201,12 +4539,14 @@ private WpfKnownType Create_BamlType_Figure(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
202, "Figure",
typeof(System.Windows.Documents.Figure),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Figure(); };
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Figure(); },
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4217,9 +4557,11 @@ private WpfKnownType Create_BamlType_FigureLength(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
203, "FigureLength",
typeof(System.Windows.FigureLength),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FigureLength(); };
- bamlType.TypeConverterType = typeof(System.Windows.FigureLengthConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FigureLength(); },
+ TypeConverterType = typeof(System.Windows.FigureLengthConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4230,8 +4572,10 @@ private WpfKnownType Create_BamlType_FigureLengthConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
204, "FigureLengthConverter",
typeof(System.Windows.FigureLengthConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FigureLengthConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FigureLengthConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4242,12 +4586,14 @@ private WpfKnownType Create_BamlType_FixedDocument(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
205, "FixedDocument",
typeof(System.Windows.Documents.FixedDocument),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.FixedDocument(); };
- bamlType.ContentPropertyName = "Pages";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.FixedDocument(); },
+ ContentPropertyName = "Pages",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4258,12 +4604,14 @@ private WpfKnownType Create_BamlType_FixedDocumentSequence(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
206, "FixedDocumentSequence",
typeof(System.Windows.Documents.FixedDocumentSequence),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.FixedDocumentSequence(); };
- bamlType.ContentPropertyName = "References";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.FixedDocumentSequence(); },
+ ContentPropertyName = "References",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4274,13 +4622,15 @@ private WpfKnownType Create_BamlType_FixedPage(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
207, "FixedPage",
typeof(System.Windows.Documents.FixedPage),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.FixedPage(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.FixedPage(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4291,12 +4641,14 @@ private WpfKnownType Create_BamlType_Floater(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
208, "Floater",
typeof(System.Windows.Documents.Floater),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Floater(); };
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Floater(); },
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4307,12 +4659,14 @@ private WpfKnownType Create_BamlType_FlowDocument(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
209, "FlowDocument",
typeof(System.Windows.Documents.FlowDocument),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.FlowDocument(); };
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.FlowDocument(); },
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4323,13 +4677,15 @@ private WpfKnownType Create_BamlType_FlowDocumentPageViewer(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
210, "FlowDocumentPageViewer",
typeof(System.Windows.Controls.FlowDocumentPageViewer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.FlowDocumentPageViewer(); };
- bamlType.ContentPropertyName = "Document";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.FlowDocumentPageViewer(); },
+ ContentPropertyName = "Document",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4340,13 +4696,15 @@ private WpfKnownType Create_BamlType_FlowDocumentReader(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
211, "FlowDocumentReader",
typeof(System.Windows.Controls.FlowDocumentReader),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.FlowDocumentReader(); };
- bamlType.ContentPropertyName = "Document";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.FlowDocumentReader(); },
+ ContentPropertyName = "Document",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4357,13 +4715,15 @@ private WpfKnownType Create_BamlType_FlowDocumentScrollViewer(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
212, "FlowDocumentScrollViewer",
typeof(System.Windows.Controls.FlowDocumentScrollViewer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.FlowDocumentScrollViewer(); };
- bamlType.ContentPropertyName = "Document";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.FlowDocumentScrollViewer(); },
+ ContentPropertyName = "Document",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4385,9 +4745,11 @@ private WpfKnownType Create_BamlType_FontFamily(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
214, "FontFamily",
typeof(System.Windows.Media.FontFamily),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.FontFamily(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.FontFamily(); },
+ TypeConverterType = typeof(System.Windows.Media.FontFamilyConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4398,8 +4760,10 @@ private WpfKnownType Create_BamlType_FontFamilyConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
215, "FontFamilyConverter",
typeof(System.Windows.Media.FontFamilyConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.FontFamilyConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.FontFamilyConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4410,8 +4774,10 @@ private WpfKnownType Create_BamlType_FontSizeConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
216, "FontSizeConverter",
typeof(System.Windows.FontSizeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontSizeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontSizeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4422,9 +4788,11 @@ private WpfKnownType Create_BamlType_FontStretch(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
217, "FontStretch",
typeof(System.Windows.FontStretch),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontStretch(); };
- bamlType.TypeConverterType = typeof(System.Windows.FontStretchConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontStretch(); },
+ TypeConverterType = typeof(System.Windows.FontStretchConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4435,8 +4803,10 @@ private WpfKnownType Create_BamlType_FontStretchConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
218, "FontStretchConverter",
typeof(System.Windows.FontStretchConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontStretchConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontStretchConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4447,9 +4817,11 @@ private WpfKnownType Create_BamlType_FontStyle(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
219, "FontStyle",
typeof(System.Windows.FontStyle),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontStyle(); };
- bamlType.TypeConverterType = typeof(System.Windows.FontStyleConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontStyle(); },
+ TypeConverterType = typeof(System.Windows.FontStyleConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4460,8 +4832,10 @@ private WpfKnownType Create_BamlType_FontStyleConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
220, "FontStyleConverter",
typeof(System.Windows.FontStyleConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontStyleConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontStyleConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4472,9 +4846,11 @@ private WpfKnownType Create_BamlType_FontWeight(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
221, "FontWeight",
typeof(System.Windows.FontWeight),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontWeight(); };
- bamlType.TypeConverterType = typeof(System.Windows.FontWeightConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontWeight(); },
+ TypeConverterType = typeof(System.Windows.FontWeightConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4485,8 +4861,10 @@ private WpfKnownType Create_BamlType_FontWeightConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
222, "FontWeightConverter",
typeof(System.Windows.FontWeightConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FontWeightConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FontWeightConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4497,9 +4875,11 @@ private WpfKnownType Create_BamlType_FormatConvertedBitmap(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
223, "FormatConvertedBitmap",
typeof(System.Windows.Media.Imaging.FormatConvertedBitmap),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.FormatConvertedBitmap(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.FormatConvertedBitmap(); },
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4510,12 +4890,14 @@ private WpfKnownType Create_BamlType_Frame(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
224, "Frame",
typeof(System.Windows.Controls.Frame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Frame(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Frame(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4526,11 +4908,13 @@ private WpfKnownType Create_BamlType_FrameworkContentElement(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
225, "FrameworkContentElement",
typeof(System.Windows.FrameworkContentElement),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkContentElement(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FrameworkContentElement(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4541,12 +4925,14 @@ private WpfKnownType Create_BamlType_FrameworkElement(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
226, "FrameworkElement",
typeof(System.Windows.FrameworkElement),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkElement(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FrameworkElement(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4557,8 +4943,10 @@ private WpfKnownType Create_BamlType_FrameworkElementFactory(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
227, "FrameworkElementFactory",
typeof(System.Windows.FrameworkElementFactory),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkElementFactory(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FrameworkElementFactory(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4569,8 +4957,10 @@ private WpfKnownType Create_BamlType_FrameworkPropertyMetadata(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
228, "FrameworkPropertyMetadata",
typeof(System.Windows.FrameworkPropertyMetadata),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkPropertyMetadata(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FrameworkPropertyMetadata(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4581,9 +4971,11 @@ private WpfKnownType Create_BamlType_FrameworkPropertyMetadataOptions(bool isBam
var bamlType = new WpfKnownType(this, // SchemaContext
229, "FrameworkPropertyMetadataOptions",
typeof(System.Windows.FrameworkPropertyMetadataOptions),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.FrameworkPropertyMetadataOptions(); };
- bamlType.TypeConverterType = typeof(System.Windows.FrameworkPropertyMetadataOptions);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.FrameworkPropertyMetadataOptions(); },
+ TypeConverterType = typeof(System.Windows.FrameworkPropertyMetadataOptions)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4605,8 +4997,10 @@ private WpfKnownType Create_BamlType_FrameworkTemplate(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
231, "FrameworkTemplate",
typeof(System.Windows.FrameworkTemplate),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Template";
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Template"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4650,9 +5044,11 @@ private WpfKnownType Create_BamlType_GeneralTransformCollection(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
235, "GeneralTransformCollection",
typeof(System.Windows.Media.GeneralTransformCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GeneralTransformCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GeneralTransformCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4663,9 +5059,11 @@ private WpfKnownType Create_BamlType_GeneralTransformGroup(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
236, "GeneralTransformGroup",
typeof(System.Windows.Media.GeneralTransformGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GeneralTransformGroup(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GeneralTransformGroup(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4676,8 +5074,10 @@ private WpfKnownType Create_BamlType_Geometry(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
237, "Geometry",
typeof(System.Windows.Media.Geometry),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4699,9 +5099,11 @@ private WpfKnownType Create_BamlType_GeometryCollection(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
239, "GeometryCollection",
typeof(System.Windows.Media.GeometryCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GeometryCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GeometryCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4712,8 +5114,10 @@ private WpfKnownType Create_BamlType_GeometryConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
240, "GeometryConverter",
typeof(System.Windows.Media.GeometryConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GeometryConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GeometryConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4724,8 +5128,10 @@ private WpfKnownType Create_BamlType_GeometryDrawing(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
241, "GeometryDrawing",
typeof(System.Windows.Media.GeometryDrawing),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GeometryDrawing(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GeometryDrawing(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4736,10 +5142,12 @@ private WpfKnownType Create_BamlType_GeometryGroup(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
242, "GeometryGroup",
typeof(System.Windows.Media.GeometryGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GeometryGroup(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GeometryGroup(); },
+ ContentPropertyName = "Children",
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4750,8 +5158,10 @@ private WpfKnownType Create_BamlType_GeometryModel3D(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
243, "GeometryModel3D",
typeof(System.Windows.Media.Media3D.GeometryModel3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.GeometryModel3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.GeometryModel3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4762,8 +5172,10 @@ private WpfKnownType Create_BamlType_GestureRecognizer(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
244, "GestureRecognizer",
typeof(System.Windows.Ink.GestureRecognizer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Ink.GestureRecognizer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Ink.GestureRecognizer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4785,8 +5197,10 @@ private WpfKnownType Create_BamlType_GifBitmapEncoder(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
246, "GifBitmapEncoder",
typeof(System.Windows.Media.Imaging.GifBitmapEncoder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.GifBitmapEncoder(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.GifBitmapEncoder(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4797,8 +5211,10 @@ private WpfKnownType Create_BamlType_GlyphRun(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
247, "GlyphRun",
typeof(System.Windows.Media.GlyphRun),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GlyphRun(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GlyphRun(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4809,8 +5225,10 @@ private WpfKnownType Create_BamlType_GlyphRunDrawing(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
248, "GlyphRunDrawing",
typeof(System.Windows.Media.GlyphRunDrawing),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GlyphRunDrawing(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GlyphRunDrawing(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4821,8 +5239,10 @@ private WpfKnownType Create_BamlType_GlyphTypeface(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
249, "GlyphTypeface",
typeof(System.Windows.Media.GlyphTypeface),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GlyphTypeface(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GlyphTypeface(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4833,12 +5253,14 @@ private WpfKnownType Create_BamlType_Glyphs(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
250, "Glyphs",
typeof(System.Windows.Documents.Glyphs),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Glyphs(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Glyphs(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4849,9 +5271,11 @@ private WpfKnownType Create_BamlType_GradientBrush(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
251, "GradientBrush",
typeof(System.Windows.Media.GradientBrush),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "GradientStops";
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "GradientStops",
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4862,8 +5286,10 @@ private WpfKnownType Create_BamlType_GradientStop(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
252, "GradientStop",
typeof(System.Windows.Media.GradientStop),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GradientStop(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GradientStop(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4874,9 +5300,11 @@ private WpfKnownType Create_BamlType_GradientStopCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
253, "GradientStopCollection",
typeof(System.Windows.Media.GradientStopCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GradientStopCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GradientStopCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4887,13 +5315,15 @@ private WpfKnownType Create_BamlType_Grid(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
254, "Grid",
typeof(System.Windows.Controls.Grid),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Grid(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Grid(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4904,9 +5334,11 @@ private WpfKnownType Create_BamlType_GridLength(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
255, "GridLength",
typeof(System.Windows.GridLength),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.GridLength(); };
- bamlType.TypeConverterType = typeof(System.Windows.GridLengthConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.GridLength(); },
+ TypeConverterType = typeof(System.Windows.GridLengthConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4917,8 +5349,10 @@ private WpfKnownType Create_BamlType_GridLengthConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
256, "GridLengthConverter",
typeof(System.Windows.GridLengthConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.GridLengthConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.GridLengthConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4929,12 +5363,14 @@ private WpfKnownType Create_BamlType_GridSplitter(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
257, "GridSplitter",
typeof(System.Windows.Controls.GridSplitter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GridSplitter(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GridSplitter(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4945,9 +5381,11 @@ private WpfKnownType Create_BamlType_GridView(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
258, "GridView",
typeof(System.Windows.Controls.GridView),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GridView(); };
- bamlType.ContentPropertyName = "Columns";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GridView(); },
+ ContentPropertyName = "Columns"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4958,9 +5396,11 @@ private WpfKnownType Create_BamlType_GridViewColumn(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
259, "GridViewColumn",
typeof(System.Windows.Controls.GridViewColumn),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GridViewColumn(); };
- bamlType.ContentPropertyName = "Header";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GridViewColumn(); },
+ ContentPropertyName = "Header"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4971,13 +5411,15 @@ private WpfKnownType Create_BamlType_GridViewColumnHeader(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
260, "GridViewColumnHeader",
typeof(System.Windows.Controls.GridViewColumnHeader),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GridViewColumnHeader(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GridViewColumnHeader(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -4988,12 +5430,14 @@ private WpfKnownType Create_BamlType_GridViewHeaderRowPresenter(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
261, "GridViewHeaderRowPresenter",
typeof(System.Windows.Controls.GridViewHeaderRowPresenter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GridViewHeaderRowPresenter(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GridViewHeaderRowPresenter(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5004,12 +5448,14 @@ private WpfKnownType Create_BamlType_GridViewRowPresenter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
262, "GridViewRowPresenter",
typeof(System.Windows.Controls.GridViewRowPresenter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GridViewRowPresenter(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GridViewRowPresenter(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5020,11 +5466,13 @@ private WpfKnownType Create_BamlType_GridViewRowPresenterBase(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
263, "GridViewRowPresenterBase",
typeof(System.Windows.Controls.Primitives.GridViewRowPresenterBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5035,13 +5483,15 @@ private WpfKnownType Create_BamlType_GroupBox(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
264, "GroupBox",
typeof(System.Windows.Controls.GroupBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GroupBox(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GroupBox(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5052,13 +5502,15 @@ private WpfKnownType Create_BamlType_GroupItem(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
265, "GroupItem",
typeof(System.Windows.Controls.GroupItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.GroupItem(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.GroupItem(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5069,9 +5521,11 @@ private WpfKnownType Create_BamlType_Guid(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
266, "Guid",
typeof(System.Guid),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Guid(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.GuidConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Guid(); },
+ TypeConverterType = typeof(System.ComponentModel.GuidConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5082,8 +5536,10 @@ private WpfKnownType Create_BamlType_GuidConverter(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
267, "GuidConverter",
typeof(System.ComponentModel.GuidConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.GuidConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.GuidConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5094,8 +5550,10 @@ private WpfKnownType Create_BamlType_GuidelineSet(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
268, "GuidelineSet",
typeof(System.Windows.Media.GuidelineSet),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.GuidelineSet(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.GuidelineSet(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5106,13 +5564,15 @@ private WpfKnownType Create_BamlType_HeaderedContentControl(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
269, "HeaderedContentControl",
typeof(System.Windows.Controls.HeaderedContentControl),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.HeaderedContentControl(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.HeaderedContentControl(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5123,13 +5583,15 @@ private WpfKnownType Create_BamlType_HeaderedItemsControl(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
270, "HeaderedItemsControl",
typeof(System.Windows.Controls.HeaderedItemsControl),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.HeaderedItemsControl(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.HeaderedItemsControl(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5140,10 +5602,12 @@ private WpfKnownType Create_BamlType_HierarchicalDataTemplate(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
271, "HierarchicalDataTemplate",
typeof(System.Windows.HierarchicalDataTemplate),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.HierarchicalDataTemplate(); };
- bamlType.ContentPropertyName = "Template";
- bamlType.DictionaryKeyPropertyName = "DataTemplateKey";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.HierarchicalDataTemplate(); },
+ ContentPropertyName = "Template",
+ DictionaryKeyPropertyName = "DataTemplateKey"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5154,8 +5618,10 @@ private WpfKnownType Create_BamlType_HostVisual(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
272, "HostVisual",
typeof(System.Windows.Media.HostVisual),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.HostVisual(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.HostVisual(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5166,12 +5632,14 @@ private WpfKnownType Create_BamlType_Hyperlink(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
273, "Hyperlink",
typeof(System.Windows.Documents.Hyperlink),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Hyperlink(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Hyperlink(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5204,8 +5672,10 @@ private WpfKnownType Create_BamlType_ICommand(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
276, "ICommand",
typeof(System.Windows.Input.ICommand),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Input.CommandConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Input.CommandConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5260,12 +5730,14 @@ private WpfKnownType Create_BamlType_Image(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
281, "Image",
typeof(System.Windows.Controls.Image),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Image(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Image(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5276,9 +5748,11 @@ private WpfKnownType Create_BamlType_ImageBrush(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
282, "ImageBrush",
typeof(System.Windows.Media.ImageBrush),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ImageBrush(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ImageBrush(); },
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5289,8 +5763,10 @@ private WpfKnownType Create_BamlType_ImageDrawing(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
283, "ImageDrawing",
typeof(System.Windows.Media.ImageDrawing),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ImageDrawing(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ImageDrawing(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5312,8 +5788,10 @@ private WpfKnownType Create_BamlType_ImageSource(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
285, "ImageSource",
typeof(System.Windows.Media.ImageSource),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5324,8 +5802,10 @@ private WpfKnownType Create_BamlType_ImageSourceConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
286, "ImageSourceConverter",
typeof(System.Windows.Media.ImageSourceConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ImageSourceConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ImageSourceConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5347,13 +5827,15 @@ private WpfKnownType Create_BamlType_InkCanvas(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
288, "InkCanvas",
typeof(System.Windows.Controls.InkCanvas),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.InkCanvas(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.InkCanvas(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5364,13 +5846,15 @@ private WpfKnownType Create_BamlType_InkPresenter(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
289, "InkPresenter",
typeof(System.Windows.Controls.InkPresenter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.InkPresenter(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.InkPresenter(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5381,10 +5865,12 @@ private WpfKnownType Create_BamlType_Inline(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
290, "Inline",
typeof(System.Windows.Documents.Inline),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5395,9 +5881,11 @@ private WpfKnownType Create_BamlType_InlineCollection(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
291, "InlineCollection",
typeof(System.Windows.Documents.InlineCollection),
- isBamlType, useV3Rules);
- bamlType.WhitespaceSignificantCollection = true;
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ WhitespaceSignificantCollection = true,
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5408,12 +5896,14 @@ private WpfKnownType Create_BamlType_InlineUIContainer(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
292, "InlineUIContainer",
typeof(System.Windows.Documents.InlineUIContainer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.InlineUIContainer(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.InlineUIContainer(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5479,9 +5969,11 @@ private WpfKnownType Create_BamlType_InputScope(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
298, "InputScope",
typeof(System.Windows.Input.InputScope),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.InputScope(); };
- bamlType.TypeConverterType = typeof(System.Windows.Input.InputScopeConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.InputScope(); },
+ TypeConverterType = typeof(System.Windows.Input.InputScopeConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5492,8 +5984,10 @@ private WpfKnownType Create_BamlType_InputScopeConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
299, "InputScopeConverter",
typeof(System.Windows.Input.InputScopeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.InputScopeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.InputScopeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5504,10 +5998,12 @@ private WpfKnownType Create_BamlType_InputScopeName(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
300, "InputScopeName",
typeof(System.Windows.Input.InputScopeName),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.InputScopeName(); };
- bamlType.ContentPropertyName = "NameValue";
- bamlType.TypeConverterType = typeof(System.Windows.Input.InputScopeNameConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.InputScopeName(); },
+ ContentPropertyName = "NameValue",
+ TypeConverterType = typeof(System.Windows.Input.InputScopeNameConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5518,8 +6014,10 @@ private WpfKnownType Create_BamlType_InputScopeNameConverter(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
301, "InputScopeNameConverter",
typeof(System.Windows.Input.InputScopeNameConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.InputScopeNameConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.InputScopeNameConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5530,9 +6028,11 @@ private WpfKnownType Create_BamlType_Int16(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
302, "Int16",
typeof(System.Int16),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Int16(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.Int16Converter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Int16(); },
+ TypeConverterType = typeof(System.ComponentModel.Int16Converter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5543,9 +6043,11 @@ private WpfKnownType Create_BamlType_Int16Animation(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
303, "Int16Animation",
typeof(System.Windows.Media.Animation.Int16Animation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int16Animation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int16Animation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5556,8 +6058,10 @@ private WpfKnownType Create_BamlType_Int16AnimationBase(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
304, "Int16AnimationBase",
typeof(System.Windows.Media.Animation.Int16AnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5568,10 +6072,12 @@ private WpfKnownType Create_BamlType_Int16AnimationUsingKeyFrames(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
305, "Int16AnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.Int16AnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int16AnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int16AnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5582,8 +6088,10 @@ private WpfKnownType Create_BamlType_Int16Converter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
306, "Int16Converter",
typeof(System.ComponentModel.Int16Converter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.Int16Converter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.Int16Converter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5605,9 +6113,11 @@ private WpfKnownType Create_BamlType_Int16KeyFrameCollection(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
308, "Int16KeyFrameCollection",
typeof(System.Windows.Media.Animation.Int16KeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int16KeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int16KeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5618,9 +6128,11 @@ private WpfKnownType Create_BamlType_Int32(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
309, "Int32",
typeof(System.Int32),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Int32(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.Int32Converter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Int32(); },
+ TypeConverterType = typeof(System.ComponentModel.Int32Converter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5631,9 +6143,11 @@ private WpfKnownType Create_BamlType_Int32Animation(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
310, "Int32Animation",
typeof(System.Windows.Media.Animation.Int32Animation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int32Animation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int32Animation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5644,8 +6158,10 @@ private WpfKnownType Create_BamlType_Int32AnimationBase(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
311, "Int32AnimationBase",
typeof(System.Windows.Media.Animation.Int32AnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5656,10 +6172,12 @@ private WpfKnownType Create_BamlType_Int32AnimationUsingKeyFrames(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
312, "Int32AnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.Int32AnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int32AnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int32AnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5670,10 +6188,12 @@ private WpfKnownType Create_BamlType_Int32Collection(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
313, "Int32Collection",
typeof(System.Windows.Media.Int32Collection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Int32Collection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Int32CollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Int32Collection(); },
+ TypeConverterType = typeof(System.Windows.Media.Int32CollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5684,8 +6204,10 @@ private WpfKnownType Create_BamlType_Int32CollectionConverter(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
314, "Int32CollectionConverter",
typeof(System.Windows.Media.Int32CollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Int32CollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Int32CollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5696,8 +6218,10 @@ private WpfKnownType Create_BamlType_Int32Converter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
315, "Int32Converter",
typeof(System.ComponentModel.Int32Converter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.Int32Converter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.Int32Converter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5719,9 +6243,11 @@ private WpfKnownType Create_BamlType_Int32KeyFrameCollection(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
317, "Int32KeyFrameCollection",
typeof(System.Windows.Media.Animation.Int32KeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int32KeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int32KeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5732,9 +6258,11 @@ private WpfKnownType Create_BamlType_Int32Rect(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
318, "Int32Rect",
typeof(System.Windows.Int32Rect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Int32Rect(); };
- bamlType.TypeConverterType = typeof(System.Windows.Int32RectConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Int32Rect(); },
+ TypeConverterType = typeof(System.Windows.Int32RectConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5745,8 +6273,10 @@ private WpfKnownType Create_BamlType_Int32RectConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
319, "Int32RectConverter",
typeof(System.Windows.Int32RectConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Int32RectConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Int32RectConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5757,9 +6287,11 @@ private WpfKnownType Create_BamlType_Int64(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
320, "Int64",
typeof(System.Int64),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Int64(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.Int64Converter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Int64(); },
+ TypeConverterType = typeof(System.ComponentModel.Int64Converter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5770,9 +6302,11 @@ private WpfKnownType Create_BamlType_Int64Animation(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
321, "Int64Animation",
typeof(System.Windows.Media.Animation.Int64Animation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int64Animation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int64Animation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5783,8 +6317,10 @@ private WpfKnownType Create_BamlType_Int64AnimationBase(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
322, "Int64AnimationBase",
typeof(System.Windows.Media.Animation.Int64AnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5795,10 +6331,12 @@ private WpfKnownType Create_BamlType_Int64AnimationUsingKeyFrames(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
323, "Int64AnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.Int64AnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int64AnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int64AnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5809,8 +6347,10 @@ private WpfKnownType Create_BamlType_Int64Converter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
324, "Int64Converter",
typeof(System.ComponentModel.Int64Converter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.Int64Converter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.Int64Converter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5832,9 +6372,11 @@ private WpfKnownType Create_BamlType_Int64KeyFrameCollection(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
326, "Int64KeyFrameCollection",
typeof(System.Windows.Media.Animation.Int64KeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Int64KeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Int64KeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5845,12 +6387,14 @@ private WpfKnownType Create_BamlType_Italic(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
327, "Italic",
typeof(System.Windows.Documents.Italic),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Italic(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Italic(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5861,8 +6405,10 @@ private WpfKnownType Create_BamlType_ItemCollection(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
328, "ItemCollection",
typeof(System.Windows.Controls.ItemCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5873,13 +6419,15 @@ private WpfKnownType Create_BamlType_ItemsControl(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
329, "ItemsControl",
typeof(System.Windows.Controls.ItemsControl),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemsControl(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ItemsControl(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5890,9 +6438,11 @@ private WpfKnownType Create_BamlType_ItemsPanelTemplate(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
330, "ItemsPanelTemplate",
typeof(System.Windows.Controls.ItemsPanelTemplate),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemsPanelTemplate(); };
- bamlType.ContentPropertyName = "Template";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ItemsPanelTemplate(); },
+ ContentPropertyName = "Template"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5903,12 +6453,14 @@ private WpfKnownType Create_BamlType_ItemsPresenter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
331, "ItemsPresenter",
typeof(System.Windows.Controls.ItemsPresenter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemsPresenter(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ItemsPresenter(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5930,8 +6482,10 @@ private WpfKnownType Create_BamlType_JournalEntryListConverter(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
333, "JournalEntryListConverter",
typeof(System.Windows.Navigation.JournalEntryListConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Navigation.JournalEntryListConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Navigation.JournalEntryListConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5942,8 +6496,10 @@ private WpfKnownType Create_BamlType_JournalEntryUnifiedViewConverter(bool isBam
var bamlType = new WpfKnownType(this, // SchemaContext
334, "JournalEntryUnifiedViewConverter",
typeof(System.Windows.Navigation.JournalEntryUnifiedViewConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Navigation.JournalEntryUnifiedViewConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Navigation.JournalEntryUnifiedViewConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5965,8 +6521,10 @@ private WpfKnownType Create_BamlType_JpegBitmapEncoder(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
336, "JpegBitmapEncoder",
typeof(System.Windows.Media.Imaging.JpegBitmapEncoder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.JpegBitmapEncoder(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.JpegBitmapEncoder(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5977,8 +6535,10 @@ private WpfKnownType Create_BamlType_KeyBinding(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
337, "KeyBinding",
typeof(System.Windows.Input.KeyBinding),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.KeyBinding(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.KeyBinding(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -5989,8 +6549,10 @@ private WpfKnownType Create_BamlType_KeyConverter(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
338, "KeyConverter",
typeof(System.Windows.Input.KeyConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.KeyConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.KeyConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6001,8 +6563,10 @@ private WpfKnownType Create_BamlType_KeyGesture(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
339, "KeyGesture",
typeof(System.Windows.Input.KeyGesture),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Input.KeyGestureConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Input.KeyGestureConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6013,8 +6577,10 @@ private WpfKnownType Create_BamlType_KeyGestureConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
340, "KeyGestureConverter",
typeof(System.Windows.Input.KeyGestureConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.KeyGestureConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.KeyGestureConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6025,9 +6591,11 @@ private WpfKnownType Create_BamlType_KeySpline(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
341, "KeySpline",
typeof(System.Windows.Media.Animation.KeySpline),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.KeySpline(); };
- bamlType.TypeConverterType = typeof(System.Windows.KeySplineConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.KeySpline(); },
+ TypeConverterType = typeof(System.Windows.KeySplineConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6038,8 +6606,10 @@ private WpfKnownType Create_BamlType_KeySplineConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
342, "KeySplineConverter",
typeof(System.Windows.KeySplineConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.KeySplineConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.KeySplineConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6050,9 +6620,11 @@ private WpfKnownType Create_BamlType_KeyTime(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
343, "KeyTime",
typeof(System.Windows.Media.Animation.KeyTime),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.KeyTime(); };
- bamlType.TypeConverterType = typeof(System.Windows.KeyTimeConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.KeyTime(); },
+ TypeConverterType = typeof(System.Windows.KeyTimeConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6063,8 +6635,10 @@ private WpfKnownType Create_BamlType_KeyTimeConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
344, "KeyTimeConverter",
typeof(System.Windows.KeyTimeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.KeyTimeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.KeyTimeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6086,13 +6660,15 @@ private WpfKnownType Create_BamlType_Label(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
346, "Label",
typeof(System.Windows.Controls.Label),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Label(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Label(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6114,8 +6690,10 @@ private WpfKnownType Create_BamlType_LengthConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
348, "LengthConverter",
typeof(System.Windows.LengthConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.LengthConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.LengthConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6137,12 +6715,14 @@ private WpfKnownType Create_BamlType_Line(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
350, "Line",
typeof(System.Windows.Shapes.Line),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Shapes.Line(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Shapes.Line(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6153,11 +6733,13 @@ private WpfKnownType Create_BamlType_LineBreak(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
351, "LineBreak",
typeof(System.Windows.Documents.LineBreak),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.LineBreak(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.LineBreak(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6168,9 +6750,11 @@ private WpfKnownType Create_BamlType_LineGeometry(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
352, "LineGeometry",
typeof(System.Windows.Media.LineGeometry),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.LineGeometry(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.LineGeometry(); },
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6181,8 +6765,10 @@ private WpfKnownType Create_BamlType_LineSegment(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
353, "LineSegment",
typeof(System.Windows.Media.LineSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.LineSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.LineSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6193,8 +6779,10 @@ private WpfKnownType Create_BamlType_LinearByteKeyFrame(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
354, "LinearByteKeyFrame",
typeof(System.Windows.Media.Animation.LinearByteKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearByteKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearByteKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6205,8 +6793,10 @@ private WpfKnownType Create_BamlType_LinearColorKeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
355, "LinearColorKeyFrame",
typeof(System.Windows.Media.Animation.LinearColorKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearColorKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearColorKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6217,8 +6807,10 @@ private WpfKnownType Create_BamlType_LinearDecimalKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
356, "LinearDecimalKeyFrame",
typeof(System.Windows.Media.Animation.LinearDecimalKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearDecimalKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearDecimalKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6229,8 +6821,10 @@ private WpfKnownType Create_BamlType_LinearDoubleKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
357, "LinearDoubleKeyFrame",
typeof(System.Windows.Media.Animation.LinearDoubleKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearDoubleKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearDoubleKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6241,10 +6835,12 @@ private WpfKnownType Create_BamlType_LinearGradientBrush(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
358, "LinearGradientBrush",
typeof(System.Windows.Media.LinearGradientBrush),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.LinearGradientBrush(); };
- bamlType.ContentPropertyName = "GradientStops";
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.LinearGradientBrush(); },
+ ContentPropertyName = "GradientStops",
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6255,8 +6851,10 @@ private WpfKnownType Create_BamlType_LinearInt16KeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
359, "LinearInt16KeyFrame",
typeof(System.Windows.Media.Animation.LinearInt16KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearInt16KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearInt16KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6267,8 +6865,10 @@ private WpfKnownType Create_BamlType_LinearInt32KeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
360, "LinearInt32KeyFrame",
typeof(System.Windows.Media.Animation.LinearInt32KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearInt32KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearInt32KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6279,8 +6879,10 @@ private WpfKnownType Create_BamlType_LinearInt64KeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
361, "LinearInt64KeyFrame",
typeof(System.Windows.Media.Animation.LinearInt64KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearInt64KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearInt64KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6291,8 +6893,10 @@ private WpfKnownType Create_BamlType_LinearPoint3DKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
362, "LinearPoint3DKeyFrame",
typeof(System.Windows.Media.Animation.LinearPoint3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearPoint3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearPoint3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6303,8 +6907,10 @@ private WpfKnownType Create_BamlType_LinearPointKeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
363, "LinearPointKeyFrame",
typeof(System.Windows.Media.Animation.LinearPointKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearPointKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearPointKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6315,8 +6921,10 @@ private WpfKnownType Create_BamlType_LinearQuaternionKeyFrame(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
364, "LinearQuaternionKeyFrame",
typeof(System.Windows.Media.Animation.LinearQuaternionKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearQuaternionKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearQuaternionKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6327,8 +6935,10 @@ private WpfKnownType Create_BamlType_LinearRectKeyFrame(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
365, "LinearRectKeyFrame",
typeof(System.Windows.Media.Animation.LinearRectKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearRectKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearRectKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6339,8 +6949,10 @@ private WpfKnownType Create_BamlType_LinearRotation3DKeyFrame(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
366, "LinearRotation3DKeyFrame",
typeof(System.Windows.Media.Animation.LinearRotation3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearRotation3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearRotation3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6351,8 +6963,10 @@ private WpfKnownType Create_BamlType_LinearSingleKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
367, "LinearSingleKeyFrame",
typeof(System.Windows.Media.Animation.LinearSingleKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearSingleKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearSingleKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6363,8 +6977,10 @@ private WpfKnownType Create_BamlType_LinearSizeKeyFrame(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
368, "LinearSizeKeyFrame",
typeof(System.Windows.Media.Animation.LinearSizeKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearSizeKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearSizeKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6375,8 +6991,10 @@ private WpfKnownType Create_BamlType_LinearThicknessKeyFrame(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
369, "LinearThicknessKeyFrame",
typeof(System.Windows.Media.Animation.LinearThicknessKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearThicknessKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearThicknessKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6387,8 +7005,10 @@ private WpfKnownType Create_BamlType_LinearVector3DKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
370, "LinearVector3DKeyFrame",
typeof(System.Windows.Media.Animation.LinearVector3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearVector3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearVector3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6399,8 +7019,10 @@ private WpfKnownType Create_BamlType_LinearVectorKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
371, "LinearVectorKeyFrame",
typeof(System.Windows.Media.Animation.LinearVectorKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.LinearVectorKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.LinearVectorKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6411,12 +7033,14 @@ private WpfKnownType Create_BamlType_List(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
372, "List",
typeof(System.Windows.Documents.List),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.List(); };
- bamlType.ContentPropertyName = "ListItems";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.List(); },
+ ContentPropertyName = "ListItems",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6427,13 +7051,15 @@ private WpfKnownType Create_BamlType_ListBox(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
373, "ListBox",
typeof(System.Windows.Controls.ListBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ListBox(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ListBox(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6444,13 +7070,15 @@ private WpfKnownType Create_BamlType_ListBoxItem(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
374, "ListBoxItem",
typeof(System.Windows.Controls.ListBoxItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ListBoxItem(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ListBoxItem(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6472,12 +7100,14 @@ private WpfKnownType Create_BamlType_ListItem(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
376, "ListItem",
typeof(System.Windows.Documents.ListItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.ListItem(); };
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.ListItem(); },
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6488,13 +7118,15 @@ private WpfKnownType Create_BamlType_ListView(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
377, "ListView",
typeof(System.Windows.Controls.ListView),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ListView(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ListView(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6505,13 +7137,15 @@ private WpfKnownType Create_BamlType_ListViewItem(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
378, "ListViewItem",
typeof(System.Windows.Controls.ListViewItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ListViewItem(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ListViewItem(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6566,9 +7200,11 @@ private WpfKnownType Create_BamlType_MaterialCollection(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
383, "MaterialCollection",
typeof(System.Windows.Media.Media3D.MaterialCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.MaterialCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.MaterialCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6579,9 +7215,11 @@ private WpfKnownType Create_BamlType_MaterialGroup(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
384, "MaterialGroup",
typeof(System.Windows.Media.Media3D.MaterialGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.MaterialGroup(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.MaterialGroup(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6592,9 +7230,11 @@ private WpfKnownType Create_BamlType_Matrix(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
385, "Matrix",
typeof(System.Windows.Media.Matrix),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Matrix(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.MatrixConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Matrix(); },
+ TypeConverterType = typeof(System.Windows.Media.MatrixConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6605,9 +7245,11 @@ private WpfKnownType Create_BamlType_Matrix3D(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
386, "Matrix3D",
typeof(System.Windows.Media.Media3D.Matrix3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Matrix3D(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Matrix3DConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Matrix3D(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Matrix3DConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6618,8 +7260,10 @@ private WpfKnownType Create_BamlType_Matrix3DConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
387, "Matrix3DConverter",
typeof(System.Windows.Media.Media3D.Matrix3DConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Matrix3DConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Matrix3DConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6630,8 +7274,10 @@ private WpfKnownType Create_BamlType_MatrixAnimationBase(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
388, "MatrixAnimationBase",
typeof(System.Windows.Media.Animation.MatrixAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6642,10 +7288,12 @@ private WpfKnownType Create_BamlType_MatrixAnimationUsingKeyFrames(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
389, "MatrixAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.MatrixAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6656,9 +7304,11 @@ private WpfKnownType Create_BamlType_MatrixAnimationUsingPath(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
390, "MatrixAnimationUsingPath",
typeof(System.Windows.Media.Animation.MatrixAnimationUsingPath),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.MatrixAnimationUsingPath(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.MatrixAnimationUsingPath(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6669,8 +7319,10 @@ private WpfKnownType Create_BamlType_MatrixCamera(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
391, "MatrixCamera",
typeof(System.Windows.Media.Media3D.MatrixCamera),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.MatrixCamera(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.MatrixCamera(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6681,8 +7333,10 @@ private WpfKnownType Create_BamlType_MatrixConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
392, "MatrixConverter",
typeof(System.Windows.Media.MatrixConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.MatrixConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.MatrixConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6704,9 +7358,11 @@ private WpfKnownType Create_BamlType_MatrixKeyFrameCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
394, "MatrixKeyFrameCollection",
typeof(System.Windows.Media.Animation.MatrixKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.MatrixKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.MatrixKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6717,9 +7373,11 @@ private WpfKnownType Create_BamlType_MatrixTransform(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
395, "MatrixTransform",
typeof(System.Windows.Media.MatrixTransform),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.MatrixTransform(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.MatrixTransform(); },
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6730,8 +7388,10 @@ private WpfKnownType Create_BamlType_MatrixTransform3D(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
396, "MatrixTransform3D",
typeof(System.Windows.Media.Media3D.MatrixTransform3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.MatrixTransform3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.MatrixTransform3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6753,12 +7413,14 @@ private WpfKnownType Create_BamlType_MediaElement(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
398, "MediaElement",
typeof(System.Windows.Controls.MediaElement),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.MediaElement(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.MediaElement(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6769,8 +7431,10 @@ private WpfKnownType Create_BamlType_MediaPlayer(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
399, "MediaPlayer",
typeof(System.Windows.Media.MediaPlayer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.MediaPlayer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.MediaPlayer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6781,9 +7445,11 @@ private WpfKnownType Create_BamlType_MediaTimeline(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
400, "MediaTimeline",
typeof(System.Windows.Media.MediaTimeline),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.MediaTimeline(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.MediaTimeline(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6794,13 +7460,15 @@ private WpfKnownType Create_BamlType_Menu(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
401, "Menu",
typeof(System.Windows.Controls.Menu),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Menu(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Menu(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6811,12 +7479,14 @@ private WpfKnownType Create_BamlType_MenuBase(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
402, "MenuBase",
typeof(System.Windows.Controls.Primitives.MenuBase),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6827,13 +7497,15 @@ private WpfKnownType Create_BamlType_MenuItem(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
403, "MenuItem",
typeof(System.Windows.Controls.MenuItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.MenuItem(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.MenuItem(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6844,8 +7516,10 @@ private WpfKnownType Create_BamlType_MenuScrollingVisibilityConverter(bool isBam
var bamlType = new WpfKnownType(this, // SchemaContext
404, "MenuScrollingVisibilityConverter",
typeof(System.Windows.Controls.MenuScrollingVisibilityConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.MenuScrollingVisibilityConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.MenuScrollingVisibilityConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6856,8 +7530,10 @@ private WpfKnownType Create_BamlType_MeshGeometry3D(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
405, "MeshGeometry3D",
typeof(System.Windows.Media.Media3D.MeshGeometry3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.MeshGeometry3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.MeshGeometry3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6879,9 +7555,11 @@ private WpfKnownType Create_BamlType_Model3DCollection(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
407, "Model3DCollection",
typeof(System.Windows.Media.Media3D.Model3DCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Model3DCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Model3DCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6892,9 +7570,11 @@ private WpfKnownType Create_BamlType_Model3DGroup(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
408, "Model3DGroup",
typeof(System.Windows.Media.Media3D.Model3DGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Model3DGroup(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Model3DGroup(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6905,9 +7585,11 @@ private WpfKnownType Create_BamlType_ModelVisual3D(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
409, "ModelVisual3D",
typeof(System.Windows.Media.Media3D.ModelVisual3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.ModelVisual3D(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.ModelVisual3D(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6918,8 +7600,10 @@ private WpfKnownType Create_BamlType_ModifierKeysConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
410, "ModifierKeysConverter",
typeof(System.Windows.Input.ModifierKeysConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.ModifierKeysConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.ModifierKeysConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6930,8 +7614,10 @@ private WpfKnownType Create_BamlType_MouseActionConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
411, "MouseActionConverter",
typeof(System.Windows.Input.MouseActionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.MouseActionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.MouseActionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6942,8 +7628,10 @@ private WpfKnownType Create_BamlType_MouseBinding(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
412, "MouseBinding",
typeof(System.Windows.Input.MouseBinding),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.MouseBinding(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.MouseBinding(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6965,9 +7653,11 @@ private WpfKnownType Create_BamlType_MouseGesture(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
414, "MouseGesture",
typeof(System.Windows.Input.MouseGesture),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.MouseGesture(); };
- bamlType.TypeConverterType = typeof(System.Windows.Input.MouseGestureConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.MouseGesture(); },
+ TypeConverterType = typeof(System.Windows.Input.MouseGestureConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6978,8 +7668,10 @@ private WpfKnownType Create_BamlType_MouseGestureConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
415, "MouseGestureConverter",
typeof(System.Windows.Input.MouseGestureConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.MouseGestureConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.MouseGestureConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -6990,9 +7682,11 @@ private WpfKnownType Create_BamlType_MultiBinding(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
416, "MultiBinding",
typeof(System.Windows.Data.MultiBinding),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.MultiBinding(); };
- bamlType.ContentPropertyName = "Bindings";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.MultiBinding(); },
+ ContentPropertyName = "Bindings"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7003,8 +7697,10 @@ private WpfKnownType Create_BamlType_MultiBindingExpression(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
417, "MultiBindingExpression",
typeof(System.Windows.Data.MultiBindingExpression),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.ExpressionConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.ExpressionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7015,9 +7711,11 @@ private WpfKnownType Create_BamlType_MultiDataTrigger(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
418, "MultiDataTrigger",
typeof(System.Windows.MultiDataTrigger),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.MultiDataTrigger(); };
- bamlType.ContentPropertyName = "Setters";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.MultiDataTrigger(); },
+ ContentPropertyName = "Setters"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7028,9 +7726,11 @@ private WpfKnownType Create_BamlType_MultiTrigger(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
419, "MultiTrigger",
typeof(System.Windows.MultiTrigger),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.MultiTrigger(); };
- bamlType.ContentPropertyName = "Setters";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.MultiTrigger(); },
+ ContentPropertyName = "Setters"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7041,9 +7741,11 @@ private WpfKnownType Create_BamlType_NameScope(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
420, "NameScope",
typeof(System.Windows.NameScope),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.NameScope(); };
- bamlType.CollectionKind = XamlCollectionKind.Dictionary;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.NameScope(); },
+ CollectionKind = XamlCollectionKind.Dictionary
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7054,12 +7756,14 @@ private WpfKnownType Create_BamlType_NavigationWindow(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
421, "NavigationWindow",
typeof(System.Windows.Navigation.NavigationWindow),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Navigation.NavigationWindow(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Navigation.NavigationWindow(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7070,8 +7774,10 @@ private WpfKnownType Create_BamlType_NullExtension(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
422, "NullExtension",
typeof(System.Windows.Markup.NullExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.NullExtension(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.NullExtension(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7082,8 +7788,10 @@ private WpfKnownType Create_BamlType_NullableBoolConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
423, "NullableBoolConverter",
typeof(System.Windows.NullableBoolConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.NullableBoolConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.NullableBoolConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7105,8 +7813,10 @@ private WpfKnownType Create_BamlType_NumberSubstitution(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
425, "NumberSubstitution",
typeof(System.Windows.Media.NumberSubstitution),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.NumberSubstitution(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.NumberSubstitution(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7117,9 +7827,11 @@ private WpfKnownType Create_BamlType_Object(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
426, "Object",
typeof(System.Object),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Object(); };
- bamlType.HasSpecialValueConverter = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Object(); },
+ HasSpecialValueConverter = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7130,8 +7842,10 @@ private WpfKnownType Create_BamlType_ObjectAnimationBase(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
427, "ObjectAnimationBase",
typeof(System.Windows.Media.Animation.ObjectAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7142,10 +7856,12 @@ private WpfKnownType Create_BamlType_ObjectAnimationUsingKeyFrames(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
428, "ObjectAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7156,8 +7872,10 @@ private WpfKnownType Create_BamlType_ObjectDataProvider(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
429, "ObjectDataProvider",
typeof(System.Windows.Data.ObjectDataProvider),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.ObjectDataProvider(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.ObjectDataProvider(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7179,9 +7897,11 @@ private WpfKnownType Create_BamlType_ObjectKeyFrameCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
431, "ObjectKeyFrameCollection",
typeof(System.Windows.Media.Animation.ObjectKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ObjectKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ObjectKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7192,8 +7912,10 @@ private WpfKnownType Create_BamlType_OrthographicCamera(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
432, "OrthographicCamera",
typeof(System.Windows.Media.Media3D.OrthographicCamera),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.OrthographicCamera(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.OrthographicCamera(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7204,8 +7926,10 @@ private WpfKnownType Create_BamlType_OuterGlowBitmapEffect(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
433, "OuterGlowBitmapEffect",
typeof(System.Windows.Media.Effects.OuterGlowBitmapEffect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Effects.OuterGlowBitmapEffect(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Effects.OuterGlowBitmapEffect(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7216,13 +7940,15 @@ private WpfKnownType Create_BamlType_Page(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
434, "Page",
typeof(System.Windows.Controls.Page),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Page(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Page(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7233,13 +7959,15 @@ private WpfKnownType Create_BamlType_PageContent(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
435, "PageContent",
typeof(System.Windows.Documents.PageContent),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.PageContent(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.PageContent(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7250,12 +7978,14 @@ private WpfKnownType Create_BamlType_PageFunctionBase(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
436, "PageFunctionBase",
typeof(System.Windows.Navigation.PageFunctionBase),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7266,12 +7996,14 @@ private WpfKnownType Create_BamlType_Panel(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
437, "Panel",
typeof(System.Windows.Controls.Panel),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7282,12 +8014,14 @@ private WpfKnownType Create_BamlType_Paragraph(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
438, "Paragraph",
typeof(System.Windows.Documents.Paragraph),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Paragraph(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Paragraph(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7298,10 +8032,12 @@ private WpfKnownType Create_BamlType_ParallelTimeline(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
439, "ParallelTimeline",
typeof(System.Windows.Media.Animation.ParallelTimeline),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ParallelTimeline(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ParallelTimeline(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7312,8 +8048,10 @@ private WpfKnownType Create_BamlType_ParserContext(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
440, "ParserContext",
typeof(System.Windows.Markup.ParserContext),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.ParserContext(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.ParserContext(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7324,12 +8062,14 @@ private WpfKnownType Create_BamlType_PasswordBox(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
441, "PasswordBox",
typeof(System.Windows.Controls.PasswordBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.PasswordBox(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.PasswordBox(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7340,12 +8080,14 @@ private WpfKnownType Create_BamlType_Path(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
442, "Path",
typeof(System.Windows.Shapes.Path),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Shapes.Path(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Shapes.Path(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7356,9 +8098,11 @@ private WpfKnownType Create_BamlType_PathFigure(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
443, "PathFigure",
typeof(System.Windows.Media.PathFigure),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PathFigure(); };
- bamlType.ContentPropertyName = "Segments";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PathFigure(); },
+ ContentPropertyName = "Segments"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7369,10 +8113,12 @@ private WpfKnownType Create_BamlType_PathFigureCollection(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
444, "PathFigureCollection",
typeof(System.Windows.Media.PathFigureCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PathFigureCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.PathFigureCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PathFigureCollection(); },
+ TypeConverterType = typeof(System.Windows.Media.PathFigureCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7383,8 +8129,10 @@ private WpfKnownType Create_BamlType_PathFigureCollectionConverter(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
445, "PathFigureCollectionConverter",
typeof(System.Windows.Media.PathFigureCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PathFigureCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PathFigureCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7395,10 +8143,12 @@ private WpfKnownType Create_BamlType_PathGeometry(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
446, "PathGeometry",
typeof(System.Windows.Media.PathGeometry),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PathGeometry(); };
- bamlType.ContentPropertyName = "Figures";
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PathGeometry(); },
+ ContentPropertyName = "Figures",
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7420,9 +8170,11 @@ private WpfKnownType Create_BamlType_PathSegmentCollection(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
448, "PathSegmentCollection",
typeof(System.Windows.Media.PathSegmentCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PathSegmentCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PathSegmentCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7433,8 +8185,10 @@ private WpfKnownType Create_BamlType_PauseStoryboard(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
449, "PauseStoryboard",
typeof(System.Windows.Media.Animation.PauseStoryboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.PauseStoryboard(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.PauseStoryboard(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7445,8 +8199,10 @@ private WpfKnownType Create_BamlType_Pen(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
450, "Pen",
typeof(System.Windows.Media.Pen),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Pen(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Pen(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7457,8 +8213,10 @@ private WpfKnownType Create_BamlType_PerspectiveCamera(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
451, "PerspectiveCamera",
typeof(System.Windows.Media.Media3D.PerspectiveCamera),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.PerspectiveCamera(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.PerspectiveCamera(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7469,9 +8227,11 @@ private WpfKnownType Create_BamlType_PixelFormat(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
452, "PixelFormat",
typeof(System.Windows.Media.PixelFormat),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PixelFormat(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.PixelFormatConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PixelFormat(); },
+ TypeConverterType = typeof(System.Windows.Media.PixelFormatConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7482,8 +8242,10 @@ private WpfKnownType Create_BamlType_PixelFormatConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
453, "PixelFormatConverter",
typeof(System.Windows.Media.PixelFormatConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PixelFormatConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PixelFormatConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7505,8 +8267,10 @@ private WpfKnownType Create_BamlType_PngBitmapEncoder(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
455, "PngBitmapEncoder",
typeof(System.Windows.Media.Imaging.PngBitmapEncoder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.PngBitmapEncoder(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.PngBitmapEncoder(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7517,9 +8281,11 @@ private WpfKnownType Create_BamlType_Point(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
456, "Point",
typeof(System.Windows.Point),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Point(); };
- bamlType.TypeConverterType = typeof(System.Windows.PointConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Point(); },
+ TypeConverterType = typeof(System.Windows.PointConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7530,9 +8296,11 @@ private WpfKnownType Create_BamlType_Point3D(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
457, "Point3D",
typeof(System.Windows.Media.Media3D.Point3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Point3D(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Point3DConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Point3D(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Point3DConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7543,9 +8311,11 @@ private WpfKnownType Create_BamlType_Point3DAnimation(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
458, "Point3DAnimation",
typeof(System.Windows.Media.Animation.Point3DAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Point3DAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Point3DAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7556,8 +8326,10 @@ private WpfKnownType Create_BamlType_Point3DAnimationBase(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
459, "Point3DAnimationBase",
typeof(System.Windows.Media.Animation.Point3DAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7568,10 +8340,12 @@ private WpfKnownType Create_BamlType_Point3DAnimationUsingKeyFrames(bool isBamlT
var bamlType = new WpfKnownType(this, // SchemaContext
460, "Point3DAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Point3DAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7582,10 +8356,12 @@ private WpfKnownType Create_BamlType_Point3DCollection(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
461, "Point3DCollection",
typeof(System.Windows.Media.Media3D.Point3DCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Point3DCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Point3DCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Point3DCollection(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Point3DCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7596,8 +8372,10 @@ private WpfKnownType Create_BamlType_Point3DCollectionConverter(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
462, "Point3DCollectionConverter",
typeof(System.Windows.Media.Media3D.Point3DCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Point3DCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Point3DCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7608,8 +8386,10 @@ private WpfKnownType Create_BamlType_Point3DConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
463, "Point3DConverter",
typeof(System.Windows.Media.Media3D.Point3DConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Point3DConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Point3DConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7631,9 +8411,11 @@ private WpfKnownType Create_BamlType_Point3DKeyFrameCollection(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
465, "Point3DKeyFrameCollection",
typeof(System.Windows.Media.Animation.Point3DKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Point3DKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Point3DKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7644,9 +8426,11 @@ private WpfKnownType Create_BamlType_Point4D(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
466, "Point4D",
typeof(System.Windows.Media.Media3D.Point4D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Point4D(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Point4DConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Point4D(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Point4DConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7657,8 +8441,10 @@ private WpfKnownType Create_BamlType_Point4DConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
467, "Point4DConverter",
typeof(System.Windows.Media.Media3D.Point4DConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Point4DConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Point4DConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7669,9 +8455,11 @@ private WpfKnownType Create_BamlType_PointAnimation(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
468, "PointAnimation",
typeof(System.Windows.Media.Animation.PointAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.PointAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.PointAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7682,8 +8470,10 @@ private WpfKnownType Create_BamlType_PointAnimationBase(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
469, "PointAnimationBase",
typeof(System.Windows.Media.Animation.PointAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7694,10 +8484,12 @@ private WpfKnownType Create_BamlType_PointAnimationUsingKeyFrames(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
470, "PointAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.PointAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.PointAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.PointAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7708,9 +8500,11 @@ private WpfKnownType Create_BamlType_PointAnimationUsingPath(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
471, "PointAnimationUsingPath",
typeof(System.Windows.Media.Animation.PointAnimationUsingPath),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.PointAnimationUsingPath(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.PointAnimationUsingPath(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7721,10 +8515,12 @@ private WpfKnownType Create_BamlType_PointCollection(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
472, "PointCollection",
typeof(System.Windows.Media.PointCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PointCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.PointCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PointCollection(); },
+ TypeConverterType = typeof(System.Windows.Media.PointCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7735,8 +8531,10 @@ private WpfKnownType Create_BamlType_PointCollectionConverter(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
473, "PointCollectionConverter",
typeof(System.Windows.Media.PointCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PointCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PointCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7747,8 +8545,10 @@ private WpfKnownType Create_BamlType_PointConverter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
474, "PointConverter",
typeof(System.Windows.PointConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.PointConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.PointConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7759,8 +8559,10 @@ private WpfKnownType Create_BamlType_PointIListConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
475, "PointIListConverter",
typeof(System.Windows.Media.Converters.PointIListConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Converters.PointIListConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Converters.PointIListConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7782,9 +8584,11 @@ private WpfKnownType Create_BamlType_PointKeyFrameCollection(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
477, "PointKeyFrameCollection",
typeof(System.Windows.Media.Animation.PointKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.PointKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.PointKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7795,8 +8599,10 @@ private WpfKnownType Create_BamlType_PointLight(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
478, "PointLight",
typeof(System.Windows.Media.Media3D.PointLight),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.PointLight(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.PointLight(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7818,8 +8624,10 @@ private WpfKnownType Create_BamlType_PolyBezierSegment(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
480, "PolyBezierSegment",
typeof(System.Windows.Media.PolyBezierSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PolyBezierSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PolyBezierSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7830,8 +8638,10 @@ private WpfKnownType Create_BamlType_PolyLineSegment(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
481, "PolyLineSegment",
typeof(System.Windows.Media.PolyLineSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PolyLineSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PolyLineSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7842,8 +8652,10 @@ private WpfKnownType Create_BamlType_PolyQuadraticBezierSegment(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
482, "PolyQuadraticBezierSegment",
typeof(System.Windows.Media.PolyQuadraticBezierSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PolyQuadraticBezierSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PolyQuadraticBezierSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7854,12 +8666,14 @@ private WpfKnownType Create_BamlType_Polygon(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
483, "Polygon",
typeof(System.Windows.Shapes.Polygon),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Shapes.Polygon(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Shapes.Polygon(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7870,12 +8684,14 @@ private WpfKnownType Create_BamlType_Polyline(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
484, "Polyline",
typeof(System.Windows.Shapes.Polyline),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Shapes.Polyline(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Shapes.Polyline(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7886,13 +8702,15 @@ private WpfKnownType Create_BamlType_Popup(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
485, "Popup",
typeof(System.Windows.Controls.Primitives.Popup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.Popup(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.Popup(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7914,9 +8732,11 @@ private WpfKnownType Create_BamlType_PriorityBinding(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
487, "PriorityBinding",
typeof(System.Windows.Data.PriorityBinding),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.PriorityBinding(); };
- bamlType.ContentPropertyName = "Bindings";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.PriorityBinding(); },
+ ContentPropertyName = "Bindings"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7927,8 +8747,10 @@ private WpfKnownType Create_BamlType_PriorityBindingExpression(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
488, "PriorityBindingExpression",
typeof(System.Windows.Data.PriorityBindingExpression),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.ExpressionConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.ExpressionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7939,12 +8761,14 @@ private WpfKnownType Create_BamlType_ProgressBar(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
489, "ProgressBar",
typeof(System.Windows.Controls.ProgressBar),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ProgressBar(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ProgressBar(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7966,8 +8790,10 @@ private WpfKnownType Create_BamlType_PropertyPath(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
491, "PropertyPath",
typeof(System.Windows.PropertyPath),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.PropertyPathConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.PropertyPathConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7978,8 +8804,10 @@ private WpfKnownType Create_BamlType_PropertyPathConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
492, "PropertyPathConverter",
typeof(System.Windows.PropertyPathConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.PropertyPathConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.PropertyPathConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -7990,8 +8818,10 @@ private WpfKnownType Create_BamlType_QuadraticBezierSegment(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
493, "QuadraticBezierSegment",
typeof(System.Windows.Media.QuadraticBezierSegment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.QuadraticBezierSegment(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.QuadraticBezierSegment(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8002,9 +8832,11 @@ private WpfKnownType Create_BamlType_Quaternion(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
494, "Quaternion",
typeof(System.Windows.Media.Media3D.Quaternion),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Quaternion(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.QuaternionConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Quaternion(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.QuaternionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8015,9 +8847,11 @@ private WpfKnownType Create_BamlType_QuaternionAnimation(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
495, "QuaternionAnimation",
typeof(System.Windows.Media.Animation.QuaternionAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.QuaternionAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.QuaternionAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8028,8 +8862,10 @@ private WpfKnownType Create_BamlType_QuaternionAnimationBase(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
496, "QuaternionAnimationBase",
typeof(System.Windows.Media.Animation.QuaternionAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8040,10 +8876,12 @@ private WpfKnownType Create_BamlType_QuaternionAnimationUsingKeyFrames(bool isBa
var bamlType = new WpfKnownType(this, // SchemaContext
497, "QuaternionAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.QuaternionAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8054,8 +8892,10 @@ private WpfKnownType Create_BamlType_QuaternionConverter(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
498, "QuaternionConverter",
typeof(System.Windows.Media.Media3D.QuaternionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.QuaternionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.QuaternionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8077,9 +8917,11 @@ private WpfKnownType Create_BamlType_QuaternionKeyFrameCollection(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
500, "QuaternionKeyFrameCollection",
typeof(System.Windows.Media.Animation.QuaternionKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.QuaternionKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.QuaternionKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8090,8 +8932,10 @@ private WpfKnownType Create_BamlType_QuaternionRotation3D(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
501, "QuaternionRotation3D",
typeof(System.Windows.Media.Media3D.QuaternionRotation3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.QuaternionRotation3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.QuaternionRotation3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8102,10 +8946,12 @@ private WpfKnownType Create_BamlType_RadialGradientBrush(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
502, "RadialGradientBrush",
typeof(System.Windows.Media.RadialGradientBrush),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.RadialGradientBrush(); };
- bamlType.ContentPropertyName = "GradientStops";
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.RadialGradientBrush(); },
+ ContentPropertyName = "GradientStops",
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8116,13 +8962,15 @@ private WpfKnownType Create_BamlType_RadioButton(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
503, "RadioButton",
typeof(System.Windows.Controls.RadioButton),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.RadioButton(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.RadioButton(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8133,11 +8981,13 @@ private WpfKnownType Create_BamlType_RangeBase(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
504, "RangeBase",
typeof(System.Windows.Controls.Primitives.RangeBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8148,9 +8998,11 @@ private WpfKnownType Create_BamlType_Rect(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
505, "Rect",
typeof(System.Windows.Rect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Rect(); };
- bamlType.TypeConverterType = typeof(System.Windows.RectConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Rect(); },
+ TypeConverterType = typeof(System.Windows.RectConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8161,9 +9013,11 @@ private WpfKnownType Create_BamlType_Rect3D(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
506, "Rect3D",
typeof(System.Windows.Media.Media3D.Rect3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Rect3D(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Rect3DConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Rect3D(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Rect3DConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8174,8 +9028,10 @@ private WpfKnownType Create_BamlType_Rect3DConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
507, "Rect3DConverter",
typeof(System.Windows.Media.Media3D.Rect3DConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Rect3DConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Rect3DConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8186,9 +9042,11 @@ private WpfKnownType Create_BamlType_RectAnimation(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
508, "RectAnimation",
typeof(System.Windows.Media.Animation.RectAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.RectAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RectAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8199,8 +9057,10 @@ private WpfKnownType Create_BamlType_RectAnimationBase(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
509, "RectAnimationBase",
typeof(System.Windows.Media.Animation.RectAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8211,10 +9071,12 @@ private WpfKnownType Create_BamlType_RectAnimationUsingKeyFrames(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
510, "RectAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.RectAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.RectAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RectAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8225,8 +9087,10 @@ private WpfKnownType Create_BamlType_RectConverter(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
511, "RectConverter",
typeof(System.Windows.RectConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.RectConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.RectConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8248,9 +9112,11 @@ private WpfKnownType Create_BamlType_RectKeyFrameCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
513, "RectKeyFrameCollection",
typeof(System.Windows.Media.Animation.RectKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.RectKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RectKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8261,12 +9127,14 @@ private WpfKnownType Create_BamlType_Rectangle(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
514, "Rectangle",
typeof(System.Windows.Shapes.Rectangle),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Shapes.Rectangle(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Shapes.Rectangle(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8277,9 +9145,11 @@ private WpfKnownType Create_BamlType_RectangleGeometry(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
515, "RectangleGeometry",
typeof(System.Windows.Media.RectangleGeometry),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.RectangleGeometry(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.RectangleGeometry(); },
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8290,8 +9160,10 @@ private WpfKnownType Create_BamlType_RelativeSource(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
516, "RelativeSource",
typeof(System.Windows.Data.RelativeSource),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.RelativeSource(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.RelativeSource(); }
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Windows.Data.RelativeSourceMode) },
delegate(object[] arguments)
@@ -8318,8 +9190,10 @@ private WpfKnownType Create_BamlType_RemoveStoryboard(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
517, "RemoveStoryboard",
typeof(System.Windows.Media.Animation.RemoveStoryboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.RemoveStoryboard(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RemoveStoryboard(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8341,8 +9215,10 @@ private WpfKnownType Create_BamlType_RenderTargetBitmap(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
519, "RenderTargetBitmap",
typeof(System.Windows.Media.Imaging.RenderTargetBitmap),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8353,9 +9229,11 @@ private WpfKnownType Create_BamlType_RepeatBehavior(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
520, "RepeatBehavior",
typeof(System.Windows.Media.Animation.RepeatBehavior),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.RepeatBehavior(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Animation.RepeatBehaviorConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RepeatBehavior(); },
+ TypeConverterType = typeof(System.Windows.Media.Animation.RepeatBehaviorConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8366,8 +9244,10 @@ private WpfKnownType Create_BamlType_RepeatBehaviorConverter(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
521, "RepeatBehaviorConverter",
typeof(System.Windows.Media.Animation.RepeatBehaviorConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.RepeatBehaviorConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.RepeatBehaviorConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8378,13 +9258,15 @@ private WpfKnownType Create_BamlType_RepeatButton(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
522, "RepeatButton",
typeof(System.Windows.Controls.Primitives.RepeatButton),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.RepeatButton(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.RepeatButton(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8395,12 +9277,14 @@ private WpfKnownType Create_BamlType_ResizeGrip(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
523, "ResizeGrip",
typeof(System.Windows.Controls.Primitives.ResizeGrip),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.ResizeGrip(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.ResizeGrip(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8411,10 +9295,12 @@ private WpfKnownType Create_BamlType_ResourceDictionary(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
524, "ResourceDictionary",
typeof(System.Windows.ResourceDictionary),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ResourceDictionary(); };
- bamlType.IsUsableDuringInit = true;
- bamlType.CollectionKind = XamlCollectionKind.Dictionary;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ResourceDictionary(); },
+ IsUsableDuringInit = true,
+ CollectionKind = XamlCollectionKind.Dictionary
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8436,8 +9322,10 @@ private WpfKnownType Create_BamlType_ResumeStoryboard(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
526, "ResumeStoryboard",
typeof(System.Windows.Media.Animation.ResumeStoryboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ResumeStoryboard(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ResumeStoryboard(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8448,13 +9336,15 @@ private WpfKnownType Create_BamlType_RichTextBox(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
527, "RichTextBox",
typeof(System.Windows.Controls.RichTextBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.RichTextBox(); };
- bamlType.ContentPropertyName = "Document";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.RichTextBox(); },
+ ContentPropertyName = "Document",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8465,9 +9355,11 @@ private WpfKnownType Create_BamlType_RotateTransform(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
528, "RotateTransform",
typeof(System.Windows.Media.RotateTransform),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.RotateTransform(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.RotateTransform(); },
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8478,8 +9370,10 @@ private WpfKnownType Create_BamlType_RotateTransform3D(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
529, "RotateTransform3D",
typeof(System.Windows.Media.Media3D.RotateTransform3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.RotateTransform3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.RotateTransform3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8501,9 +9395,11 @@ private WpfKnownType Create_BamlType_Rotation3DAnimation(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
531, "Rotation3DAnimation",
typeof(System.Windows.Media.Animation.Rotation3DAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Rotation3DAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Rotation3DAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8514,8 +9410,10 @@ private WpfKnownType Create_BamlType_Rotation3DAnimationBase(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
532, "Rotation3DAnimationBase",
typeof(System.Windows.Media.Animation.Rotation3DAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8526,10 +9424,12 @@ private WpfKnownType Create_BamlType_Rotation3DAnimationUsingKeyFrames(bool isBa
var bamlType = new WpfKnownType(this, // SchemaContext
533, "Rotation3DAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Rotation3DAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8551,9 +9451,11 @@ private WpfKnownType Create_BamlType_Rotation3DKeyFrameCollection(bool isBamlTyp
var bamlType = new WpfKnownType(this, // SchemaContext
535, "Rotation3DKeyFrameCollection",
typeof(System.Windows.Media.Animation.Rotation3DKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Rotation3DKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Rotation3DKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8564,9 +9466,11 @@ private WpfKnownType Create_BamlType_RoutedCommand(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
536, "RoutedCommand",
typeof(System.Windows.Input.RoutedCommand),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.RoutedCommand(); };
- bamlType.TypeConverterType = typeof(System.Windows.Input.CommandConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.RoutedCommand(); },
+ TypeConverterType = typeof(System.Windows.Input.CommandConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8577,8 +9481,10 @@ private WpfKnownType Create_BamlType_RoutedEvent(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
537, "RoutedEvent",
typeof(System.Windows.RoutedEvent),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Markup.RoutedEventConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Markup.RoutedEventConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8589,8 +9495,10 @@ private WpfKnownType Create_BamlType_RoutedEventConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
538, "RoutedEventConverter",
typeof(System.Windows.Markup.RoutedEventConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.RoutedEventConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.RoutedEventConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8601,9 +9509,11 @@ private WpfKnownType Create_BamlType_RoutedUICommand(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
539, "RoutedUICommand",
typeof(System.Windows.Input.RoutedUICommand),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.RoutedUICommand(); };
- bamlType.TypeConverterType = typeof(System.Windows.Input.CommandConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.RoutedUICommand(); },
+ TypeConverterType = typeof(System.Windows.Input.CommandConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8614,9 +9524,11 @@ private WpfKnownType Create_BamlType_RoutingStrategy(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
540, "RoutingStrategy",
typeof(System.Windows.RoutingStrategy),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.RoutingStrategy(); };
- bamlType.TypeConverterType = typeof(System.Windows.RoutingStrategy);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.RoutingStrategy(); },
+ TypeConverterType = typeof(System.Windows.RoutingStrategy)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8627,11 +9539,13 @@ private WpfKnownType Create_BamlType_RowDefinition(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
541, "RowDefinition",
typeof(System.Windows.Controls.RowDefinition),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.RowDefinition(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.RowDefinition(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8642,12 +9556,14 @@ private WpfKnownType Create_BamlType_Run(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
542, "Run",
typeof(System.Windows.Documents.Run),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Run(); };
- bamlType.ContentPropertyName = "Text";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Run(); },
+ ContentPropertyName = "Text",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8669,9 +9585,11 @@ private WpfKnownType Create_BamlType_SByte(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
544, "SByte",
typeof(System.SByte),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.SByte(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.SByteConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.SByte(); },
+ TypeConverterType = typeof(System.ComponentModel.SByteConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8682,8 +9600,10 @@ private WpfKnownType Create_BamlType_SByteConverter(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
545, "SByteConverter",
typeof(System.ComponentModel.SByteConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.SByteConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.SByteConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8694,9 +9614,11 @@ private WpfKnownType Create_BamlType_ScaleTransform(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
546, "ScaleTransform",
typeof(System.Windows.Media.ScaleTransform),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.ScaleTransform(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.ScaleTransform(); },
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8707,8 +9629,10 @@ private WpfKnownType Create_BamlType_ScaleTransform3D(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
547, "ScaleTransform3D",
typeof(System.Windows.Media.Media3D.ScaleTransform3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.ScaleTransform3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.ScaleTransform3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8719,12 +9643,14 @@ private WpfKnownType Create_BamlType_ScrollBar(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
548, "ScrollBar",
typeof(System.Windows.Controls.Primitives.ScrollBar),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.ScrollBar(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.ScrollBar(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8735,12 +9661,14 @@ private WpfKnownType Create_BamlType_ScrollContentPresenter(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
549, "ScrollContentPresenter",
typeof(System.Windows.Controls.ScrollContentPresenter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ScrollContentPresenter(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ScrollContentPresenter(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8751,13 +9679,15 @@ private WpfKnownType Create_BamlType_ScrollViewer(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
550, "ScrollViewer",
typeof(System.Windows.Controls.ScrollViewer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ScrollViewer(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ScrollViewer(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8768,12 +9698,14 @@ private WpfKnownType Create_BamlType_Section(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
551, "Section",
typeof(System.Windows.Documents.Section),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Section(); };
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Section(); },
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8784,8 +9716,10 @@ private WpfKnownType Create_BamlType_SeekStoryboard(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
552, "SeekStoryboard",
typeof(System.Windows.Media.Animation.SeekStoryboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SeekStoryboard(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SeekStoryboard(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8796,12 +9730,14 @@ private WpfKnownType Create_BamlType_Selector(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
553, "Selector",
typeof(System.Windows.Controls.Primitives.Selector),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8812,12 +9748,14 @@ private WpfKnownType Create_BamlType_Separator(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
554, "Separator",
typeof(System.Windows.Controls.Separator),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Separator(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Separator(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8828,8 +9766,10 @@ private WpfKnownType Create_BamlType_SetStoryboardSpeedRatio(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
555, "SetStoryboardSpeedRatio",
typeof(System.Windows.Media.Animation.SetStoryboardSpeedRatio),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SetStoryboardSpeedRatio(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SetStoryboardSpeedRatio(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8840,8 +9780,10 @@ private WpfKnownType Create_BamlType_Setter(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
556, "Setter",
typeof(System.Windows.Setter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Setter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Setter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8863,11 +9805,13 @@ private WpfKnownType Create_BamlType_Shape(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
558, "Shape",
typeof(System.Windows.Shapes.Shape),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8878,9 +9822,11 @@ private WpfKnownType Create_BamlType_Single(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
559, "Single",
typeof(System.Single),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Single(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.SingleConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Single(); },
+ TypeConverterType = typeof(System.ComponentModel.SingleConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8891,9 +9837,11 @@ private WpfKnownType Create_BamlType_SingleAnimation(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
560, "SingleAnimation",
typeof(System.Windows.Media.Animation.SingleAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SingleAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SingleAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8904,8 +9852,10 @@ private WpfKnownType Create_BamlType_SingleAnimationBase(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
561, "SingleAnimationBase",
typeof(System.Windows.Media.Animation.SingleAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8916,10 +9866,12 @@ private WpfKnownType Create_BamlType_SingleAnimationUsingKeyFrames(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
562, "SingleAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.SingleAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SingleAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SingleAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8930,8 +9882,10 @@ private WpfKnownType Create_BamlType_SingleConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
563, "SingleConverter",
typeof(System.ComponentModel.SingleConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.SingleConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.SingleConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8953,9 +9907,11 @@ private WpfKnownType Create_BamlType_SingleKeyFrameCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
565, "SingleKeyFrameCollection",
typeof(System.Windows.Media.Animation.SingleKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SingleKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SingleKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8966,9 +9922,11 @@ private WpfKnownType Create_BamlType_Size(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
566, "Size",
typeof(System.Windows.Size),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Size(); };
- bamlType.TypeConverterType = typeof(System.Windows.SizeConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Size(); },
+ TypeConverterType = typeof(System.Windows.SizeConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8979,9 +9937,11 @@ private WpfKnownType Create_BamlType_Size3D(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
567, "Size3D",
typeof(System.Windows.Media.Media3D.Size3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Size3D(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Size3DConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Size3D(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Size3DConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -8992,8 +9952,10 @@ private WpfKnownType Create_BamlType_Size3DConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
568, "Size3DConverter",
typeof(System.Windows.Media.Media3D.Size3DConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Size3DConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Size3DConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9004,9 +9966,11 @@ private WpfKnownType Create_BamlType_SizeAnimation(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
569, "SizeAnimation",
typeof(System.Windows.Media.Animation.SizeAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SizeAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SizeAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9017,8 +9981,10 @@ private WpfKnownType Create_BamlType_SizeAnimationBase(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
570, "SizeAnimationBase",
typeof(System.Windows.Media.Animation.SizeAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9029,10 +9995,12 @@ private WpfKnownType Create_BamlType_SizeAnimationUsingKeyFrames(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
571, "SizeAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.SizeAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SizeAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SizeAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9043,8 +10011,10 @@ private WpfKnownType Create_BamlType_SizeConverter(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
572, "SizeConverter",
typeof(System.Windows.SizeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.SizeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.SizeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9066,9 +10036,11 @@ private WpfKnownType Create_BamlType_SizeKeyFrameCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
574, "SizeKeyFrameCollection",
typeof(System.Windows.Media.Animation.SizeKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SizeKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SizeKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9079,9 +10051,11 @@ private WpfKnownType Create_BamlType_SkewTransform(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
575, "SkewTransform",
typeof(System.Windows.Media.SkewTransform),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.SkewTransform(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.SkewTransform(); },
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9092,8 +10066,10 @@ private WpfKnownType Create_BamlType_SkipStoryboardToFill(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
576, "SkipStoryboardToFill",
typeof(System.Windows.Media.Animation.SkipStoryboardToFill),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SkipStoryboardToFill(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SkipStoryboardToFill(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9104,12 +10080,14 @@ private WpfKnownType Create_BamlType_Slider(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
577, "Slider",
typeof(System.Windows.Controls.Slider),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Slider(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Slider(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9120,9 +10098,11 @@ private WpfKnownType Create_BamlType_SolidColorBrush(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
578, "SolidColorBrush",
typeof(System.Windows.Media.SolidColorBrush),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.SolidColorBrush(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.SolidColorBrush(); },
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9133,8 +10113,10 @@ private WpfKnownType Create_BamlType_SoundPlayerAction(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
579, "SoundPlayerAction",
typeof(System.Windows.Controls.SoundPlayerAction),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.SoundPlayerAction(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.SoundPlayerAction(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9145,12 +10127,14 @@ private WpfKnownType Create_BamlType_Span(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
580, "Span",
typeof(System.Windows.Documents.Span),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Span(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Span(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9161,8 +10145,10 @@ private WpfKnownType Create_BamlType_SpecularMaterial(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
581, "SpecularMaterial",
typeof(System.Windows.Media.Media3D.SpecularMaterial),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.SpecularMaterial(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.SpecularMaterial(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9184,8 +10170,10 @@ private WpfKnownType Create_BamlType_SplineByteKeyFrame(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
583, "SplineByteKeyFrame",
typeof(System.Windows.Media.Animation.SplineByteKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineByteKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineByteKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9196,8 +10184,10 @@ private WpfKnownType Create_BamlType_SplineColorKeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
584, "SplineColorKeyFrame",
typeof(System.Windows.Media.Animation.SplineColorKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineColorKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineColorKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9208,8 +10198,10 @@ private WpfKnownType Create_BamlType_SplineDecimalKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
585, "SplineDecimalKeyFrame",
typeof(System.Windows.Media.Animation.SplineDecimalKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineDecimalKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineDecimalKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9220,8 +10212,10 @@ private WpfKnownType Create_BamlType_SplineDoubleKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
586, "SplineDoubleKeyFrame",
typeof(System.Windows.Media.Animation.SplineDoubleKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineDoubleKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineDoubleKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9232,8 +10226,10 @@ private WpfKnownType Create_BamlType_SplineInt16KeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
587, "SplineInt16KeyFrame",
typeof(System.Windows.Media.Animation.SplineInt16KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineInt16KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineInt16KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9244,8 +10240,10 @@ private WpfKnownType Create_BamlType_SplineInt32KeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
588, "SplineInt32KeyFrame",
typeof(System.Windows.Media.Animation.SplineInt32KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineInt32KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineInt32KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9256,8 +10254,10 @@ private WpfKnownType Create_BamlType_SplineInt64KeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
589, "SplineInt64KeyFrame",
typeof(System.Windows.Media.Animation.SplineInt64KeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineInt64KeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineInt64KeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9268,8 +10268,10 @@ private WpfKnownType Create_BamlType_SplinePoint3DKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
590, "SplinePoint3DKeyFrame",
typeof(System.Windows.Media.Animation.SplinePoint3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplinePoint3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplinePoint3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9280,8 +10282,10 @@ private WpfKnownType Create_BamlType_SplinePointKeyFrame(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
591, "SplinePointKeyFrame",
typeof(System.Windows.Media.Animation.SplinePointKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplinePointKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplinePointKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9292,8 +10296,10 @@ private WpfKnownType Create_BamlType_SplineQuaternionKeyFrame(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
592, "SplineQuaternionKeyFrame",
typeof(System.Windows.Media.Animation.SplineQuaternionKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineQuaternionKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineQuaternionKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9304,8 +10310,10 @@ private WpfKnownType Create_BamlType_SplineRectKeyFrame(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
593, "SplineRectKeyFrame",
typeof(System.Windows.Media.Animation.SplineRectKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineRectKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineRectKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9316,8 +10324,10 @@ private WpfKnownType Create_BamlType_SplineRotation3DKeyFrame(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
594, "SplineRotation3DKeyFrame",
typeof(System.Windows.Media.Animation.SplineRotation3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineRotation3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineRotation3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9328,8 +10338,10 @@ private WpfKnownType Create_BamlType_SplineSingleKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
595, "SplineSingleKeyFrame",
typeof(System.Windows.Media.Animation.SplineSingleKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineSingleKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineSingleKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9340,8 +10352,10 @@ private WpfKnownType Create_BamlType_SplineSizeKeyFrame(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
596, "SplineSizeKeyFrame",
typeof(System.Windows.Media.Animation.SplineSizeKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineSizeKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineSizeKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9352,8 +10366,10 @@ private WpfKnownType Create_BamlType_SplineThicknessKeyFrame(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
597, "SplineThicknessKeyFrame",
typeof(System.Windows.Media.Animation.SplineThicknessKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineThicknessKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineThicknessKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9364,8 +10380,10 @@ private WpfKnownType Create_BamlType_SplineVector3DKeyFrame(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
598, "SplineVector3DKeyFrame",
typeof(System.Windows.Media.Animation.SplineVector3DKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineVector3DKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineVector3DKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9376,8 +10394,10 @@ private WpfKnownType Create_BamlType_SplineVectorKeyFrame(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
599, "SplineVectorKeyFrame",
typeof(System.Windows.Media.Animation.SplineVectorKeyFrame),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.SplineVectorKeyFrame(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.SplineVectorKeyFrame(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9388,8 +10408,10 @@ private WpfKnownType Create_BamlType_SpotLight(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
600, "SpotLight",
typeof(System.Windows.Media.Media3D.SpotLight),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.SpotLight(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.SpotLight(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9400,13 +10422,15 @@ private WpfKnownType Create_BamlType_StackPanel(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
601, "StackPanel",
typeof(System.Windows.Controls.StackPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.StackPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.StackPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9419,9 +10443,11 @@ private WpfKnownType Create_BamlType_StaticExtension(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
602, "StaticExtension",
typeof(System.Windows.Markup.StaticExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new MS.Internal.Markup.StaticExtension(); };
- bamlType.HasSpecialValueConverter = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new MS.Internal.Markup.StaticExtension(); },
+ HasSpecialValueConverter = true
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.String) },
delegate(object[] arguments)
@@ -9439,8 +10465,10 @@ private WpfKnownType Create_BamlType_StaticResourceExtension(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
603, "StaticResourceExtension",
typeof(System.Windows.StaticResourceExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.StaticResourceExtension(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.StaticResourceExtension(); }
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Object) },
delegate(object[] arguments)
@@ -9458,13 +10486,15 @@ private WpfKnownType Create_BamlType_StatusBar(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
604, "StatusBar",
typeof(System.Windows.Controls.Primitives.StatusBar),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.StatusBar(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.StatusBar(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9475,13 +10505,15 @@ private WpfKnownType Create_BamlType_StatusBarItem(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
605, "StatusBarItem",
typeof(System.Windows.Controls.Primitives.StatusBarItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.StatusBarItem(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.StatusBarItem(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9492,11 +10524,13 @@ private WpfKnownType Create_BamlType_StickyNoteControl(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
606, "StickyNoteControl",
typeof(System.Windows.Controls.StickyNoteControl),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9507,8 +10541,10 @@ private WpfKnownType Create_BamlType_StopStoryboard(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
607, "StopStoryboard",
typeof(System.Windows.Media.Animation.StopStoryboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.StopStoryboard(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.StopStoryboard(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9519,10 +10555,12 @@ private WpfKnownType Create_BamlType_Storyboard(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
608, "Storyboard",
typeof(System.Windows.Media.Animation.Storyboard),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Storyboard(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Storyboard(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9533,9 +10571,11 @@ private WpfKnownType Create_BamlType_StreamGeometry(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
609, "StreamGeometry",
typeof(System.Windows.Media.StreamGeometry),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.StreamGeometry(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.GeometryConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.StreamGeometry(); },
+ TypeConverterType = typeof(System.Windows.Media.GeometryConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9557,8 +10597,10 @@ private WpfKnownType Create_BamlType_StreamResourceInfo(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
611, "StreamResourceInfo",
typeof(System.Windows.Resources.StreamResourceInfo),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Resources.StreamResourceInfo(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Resources.StreamResourceInfo(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9569,8 +10611,10 @@ private WpfKnownType Create_BamlType_String(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
612, "String",
typeof(System.String),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.ComponentModel.StringConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.ComponentModel.StringConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9581,8 +10625,10 @@ private WpfKnownType Create_BamlType_StringAnimationBase(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
613, "StringAnimationBase",
typeof(System.Windows.Media.Animation.StringAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9593,10 +10639,12 @@ private WpfKnownType Create_BamlType_StringAnimationUsingKeyFrames(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
614, "StringAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.StringAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.StringAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.StringAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9607,8 +10655,10 @@ private WpfKnownType Create_BamlType_StringConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
615, "StringConverter",
typeof(System.ComponentModel.StringConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.StringConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.StringConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9630,9 +10680,11 @@ private WpfKnownType Create_BamlType_StringKeyFrameCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
617, "StringKeyFrameCollection",
typeof(System.Windows.Media.Animation.StringKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.StringKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.StringKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9643,10 +10695,12 @@ private WpfKnownType Create_BamlType_StrokeCollection(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
618, "StrokeCollection",
typeof(System.Windows.Ink.StrokeCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Ink.StrokeCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.StrokeCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Ink.StrokeCollection(); },
+ TypeConverterType = typeof(System.Windows.StrokeCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9657,8 +10711,10 @@ private WpfKnownType Create_BamlType_StrokeCollectionConverter(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
619, "StrokeCollectionConverter",
typeof(System.Windows.StrokeCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.StrokeCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.StrokeCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9669,10 +10725,12 @@ private WpfKnownType Create_BamlType_Style(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
620, "Style",
typeof(System.Windows.Style),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Style(); };
- bamlType.ContentPropertyName = "Setters";
- bamlType.DictionaryKeyPropertyName = "TargetType";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Style(); },
+ ContentPropertyName = "Setters",
+ DictionaryKeyPropertyName = "TargetType"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9705,13 +10763,15 @@ private WpfKnownType Create_BamlType_TabControl(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
623, "TabControl",
typeof(System.Windows.Controls.TabControl),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TabControl(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.TabControl(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9722,13 +10782,15 @@ private WpfKnownType Create_BamlType_TabItem(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
624, "TabItem",
typeof(System.Windows.Controls.TabItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TabItem(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.TabItem(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9739,13 +10801,15 @@ private WpfKnownType Create_BamlType_TabPanel(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
625, "TabPanel",
typeof(System.Windows.Controls.Primitives.TabPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.TabPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.TabPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9756,12 +10820,14 @@ private WpfKnownType Create_BamlType_Table(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
626, "Table",
typeof(System.Windows.Documents.Table),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Table(); };
- bamlType.ContentPropertyName = "RowGroups";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Table(); },
+ ContentPropertyName = "RowGroups",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9772,12 +10838,14 @@ private WpfKnownType Create_BamlType_TableCell(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
627, "TableCell",
typeof(System.Windows.Documents.TableCell),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.TableCell(); };
- bamlType.ContentPropertyName = "Blocks";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.TableCell(); },
+ ContentPropertyName = "Blocks",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9788,11 +10856,13 @@ private WpfKnownType Create_BamlType_TableColumn(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
628, "TableColumn",
typeof(System.Windows.Documents.TableColumn),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.TableColumn(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.TableColumn(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9803,12 +10873,14 @@ private WpfKnownType Create_BamlType_TableRow(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
629, "TableRow",
typeof(System.Windows.Documents.TableRow),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.TableRow(); };
- bamlType.ContentPropertyName = "Cells";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.TableRow(); },
+ ContentPropertyName = "Cells",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9819,12 +10891,14 @@ private WpfKnownType Create_BamlType_TableRowGroup(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
630, "TableRowGroup",
typeof(System.Windows.Documents.TableRowGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.TableRowGroup(); };
- bamlType.ContentPropertyName = "Rows";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.TableRowGroup(); },
+ ContentPropertyName = "Rows",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9846,8 +10920,10 @@ private WpfKnownType Create_BamlType_TemplateBindingExpression(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
632, "TemplateBindingExpression",
typeof(System.Windows.TemplateBindingExpression),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.TemplateBindingExpressionConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.TemplateBindingExpressionConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9858,8 +10934,10 @@ private WpfKnownType Create_BamlType_TemplateBindingExpressionConverter(bool isB
var bamlType = new WpfKnownType(this, // SchemaContext
633, "TemplateBindingExpressionConverter",
typeof(System.Windows.TemplateBindingExpressionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TemplateBindingExpressionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TemplateBindingExpressionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9870,9 +10948,11 @@ private WpfKnownType Create_BamlType_TemplateBindingExtension(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
634, "TemplateBindingExtension",
typeof(System.Windows.TemplateBindingExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TemplateBindingExtension(); };
- bamlType.TypeConverterType = typeof(System.Windows.TemplateBindingExtensionConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TemplateBindingExtension(); },
+ TypeConverterType = typeof(System.Windows.TemplateBindingExtensionConverter)
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Windows.DependencyProperty) },
delegate(object[] arguments)
@@ -9890,8 +10970,10 @@ private WpfKnownType Create_BamlType_TemplateBindingExtensionConverter(bool isBa
var bamlType = new WpfKnownType(this, // SchemaContext
635, "TemplateBindingExtensionConverter",
typeof(System.Windows.TemplateBindingExtensionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TemplateBindingExtensionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TemplateBindingExtensionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9902,8 +10984,10 @@ private WpfKnownType Create_BamlType_TemplateKey(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
636, "TemplateKey",
typeof(System.Windows.TemplateKey),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Markup.TemplateKeyConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Markup.TemplateKeyConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9914,8 +10998,10 @@ private WpfKnownType Create_BamlType_TemplateKeyConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
637, "TemplateKeyConverter",
typeof(System.Windows.Markup.TemplateKeyConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.TemplateKeyConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.TemplateKeyConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9926,13 +11012,15 @@ private WpfKnownType Create_BamlType_TextBlock(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
638, "TextBlock",
typeof(System.Windows.Controls.TextBlock),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TextBlock(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.TextBlock(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9943,13 +11031,15 @@ private WpfKnownType Create_BamlType_TextBox(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
639, "TextBox",
typeof(System.Windows.Controls.TextBox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TextBox(); };
- bamlType.ContentPropertyName = "Text";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.TextBox(); },
+ ContentPropertyName = "Text",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9960,11 +11050,13 @@ private WpfKnownType Create_BamlType_TextBoxBase(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
640, "TextBoxBase",
typeof(System.Windows.Controls.Primitives.TextBoxBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -9997,8 +11089,10 @@ private WpfKnownType Create_BamlType_TextDecoration(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
643, "TextDecoration",
typeof(System.Windows.TextDecoration),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TextDecoration(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TextDecoration(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10009,10 +11103,12 @@ private WpfKnownType Create_BamlType_TextDecorationCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
644, "TextDecorationCollection",
typeof(System.Windows.TextDecorationCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TextDecorationCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.TextDecorationCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TextDecorationCollection(); },
+ TypeConverterType = typeof(System.Windows.TextDecorationCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10023,8 +11119,10 @@ private WpfKnownType Create_BamlType_TextDecorationCollectionConverter(bool isBa
var bamlType = new WpfKnownType(this, // SchemaContext
645, "TextDecorationCollectionConverter",
typeof(System.Windows.TextDecorationCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TextDecorationCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TextDecorationCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10035,8 +11133,10 @@ private WpfKnownType Create_BamlType_TextEffect(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
646, "TextEffect",
typeof(System.Windows.Media.TextEffect),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.TextEffect(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.TextEffect(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10047,9 +11147,11 @@ private WpfKnownType Create_BamlType_TextEffectCollection(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
647, "TextEffectCollection",
typeof(System.Windows.Media.TextEffectCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.TextEffectCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.TextEffectCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10060,10 +11162,12 @@ private WpfKnownType Create_BamlType_TextElement(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
648, "TextElement",
typeof(System.Windows.Documents.TextElement),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10085,8 +11189,10 @@ private WpfKnownType Create_BamlType_ThemeDictionaryExtension(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
650, "ThemeDictionaryExtension",
typeof(System.Windows.ThemeDictionaryExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ThemeDictionaryExtension(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ThemeDictionaryExtension(); }
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.String) },
delegate(object[] arguments)
@@ -10104,9 +11210,11 @@ private WpfKnownType Create_BamlType_Thickness(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
651, "Thickness",
typeof(System.Windows.Thickness),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Thickness(); };
- bamlType.TypeConverterType = typeof(System.Windows.ThicknessConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Thickness(); },
+ TypeConverterType = typeof(System.Windows.ThicknessConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10117,9 +11225,11 @@ private WpfKnownType Create_BamlType_ThicknessAnimation(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
652, "ThicknessAnimation",
typeof(System.Windows.Media.Animation.ThicknessAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ThicknessAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ThicknessAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10130,8 +11240,10 @@ private WpfKnownType Create_BamlType_ThicknessAnimationBase(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
653, "ThicknessAnimationBase",
typeof(System.Windows.Media.Animation.ThicknessAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10142,10 +11254,12 @@ private WpfKnownType Create_BamlType_ThicknessAnimationUsingKeyFrames(bool isBam
var bamlType = new WpfKnownType(this, // SchemaContext
654, "ThicknessAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ThicknessAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10156,8 +11270,10 @@ private WpfKnownType Create_BamlType_ThicknessConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
655, "ThicknessConverter",
typeof(System.Windows.ThicknessConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.ThicknessConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.ThicknessConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10179,9 +11295,11 @@ private WpfKnownType Create_BamlType_ThicknessKeyFrameCollection(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
657, "ThicknessKeyFrameCollection",
typeof(System.Windows.Media.Animation.ThicknessKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.ThicknessKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.ThicknessKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10192,12 +11310,14 @@ private WpfKnownType Create_BamlType_Thumb(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
658, "Thumb",
typeof(System.Windows.Controls.Primitives.Thumb),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.Thumb(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.Thumb(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10208,12 +11328,14 @@ private WpfKnownType Create_BamlType_TickBar(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
659, "TickBar",
typeof(System.Windows.Controls.Primitives.TickBar),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.TickBar(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.TickBar(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10235,8 +11357,10 @@ private WpfKnownType Create_BamlType_TiffBitmapEncoder(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
661, "TiffBitmapEncoder",
typeof(System.Windows.Media.Imaging.TiffBitmapEncoder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.TiffBitmapEncoder(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.TiffBitmapEncoder(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10247,8 +11371,10 @@ private WpfKnownType Create_BamlType_TileBrush(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
662, "TileBrush",
typeof(System.Windows.Media.TileBrush),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10259,9 +11385,11 @@ private WpfKnownType Create_BamlType_TimeSpan(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
663, "TimeSpan",
typeof(System.TimeSpan),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.TimeSpan(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.TimeSpanConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.TimeSpan(); },
+ TypeConverterType = typeof(System.ComponentModel.TimeSpanConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10272,8 +11400,10 @@ private WpfKnownType Create_BamlType_TimeSpanConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
664, "TimeSpanConverter",
typeof(System.ComponentModel.TimeSpanConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.TimeSpanConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.TimeSpanConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10284,8 +11414,10 @@ private WpfKnownType Create_BamlType_Timeline(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
665, "Timeline",
typeof(System.Windows.Media.Animation.Timeline),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10296,9 +11428,11 @@ private WpfKnownType Create_BamlType_TimelineCollection(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
666, "TimelineCollection",
typeof(System.Windows.Media.Animation.TimelineCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.TimelineCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.TimelineCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10309,9 +11443,11 @@ private WpfKnownType Create_BamlType_TimelineGroup(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
667, "TimelineGroup",
typeof(System.Windows.Media.Animation.TimelineGroup),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10322,13 +11458,15 @@ private WpfKnownType Create_BamlType_ToggleButton(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
668, "ToggleButton",
typeof(System.Windows.Controls.Primitives.ToggleButton),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.ToggleButton(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.ToggleButton(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10339,13 +11477,15 @@ private WpfKnownType Create_BamlType_ToolBar(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
669, "ToolBar",
typeof(System.Windows.Controls.ToolBar),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ToolBar(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ToolBar(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10356,13 +11496,15 @@ private WpfKnownType Create_BamlType_ToolBarOverflowPanel(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
670, "ToolBarOverflowPanel",
typeof(System.Windows.Controls.Primitives.ToolBarOverflowPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.ToolBarOverflowPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.ToolBarOverflowPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10373,13 +11515,15 @@ private WpfKnownType Create_BamlType_ToolBarPanel(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
671, "ToolBarPanel",
typeof(System.Windows.Controls.Primitives.ToolBarPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.ToolBarPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.ToolBarPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10390,13 +11534,15 @@ private WpfKnownType Create_BamlType_ToolBarTray(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
672, "ToolBarTray",
typeof(System.Windows.Controls.ToolBarTray),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ToolBarTray(); };
- bamlType.ContentPropertyName = "ToolBars";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ToolBarTray(); },
+ ContentPropertyName = "ToolBars",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10407,13 +11553,15 @@ private WpfKnownType Create_BamlType_ToolTip(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
673, "ToolTip",
typeof(System.Windows.Controls.ToolTip),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ToolTip(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ToolTip(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10435,12 +11583,14 @@ private WpfKnownType Create_BamlType_Track(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
675, "Track",
typeof(System.Windows.Controls.Primitives.Track),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.Track(); };
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.Track(); },
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10451,8 +11601,10 @@ private WpfKnownType Create_BamlType_Transform(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
676, "Transform",
typeof(System.Windows.Media.Transform),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10474,9 +11626,11 @@ private WpfKnownType Create_BamlType_Transform3DCollection(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
678, "Transform3DCollection",
typeof(System.Windows.Media.Media3D.Transform3DCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Transform3DCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Transform3DCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10487,9 +11641,11 @@ private WpfKnownType Create_BamlType_Transform3DGroup(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
679, "Transform3DGroup",
typeof(System.Windows.Media.Media3D.Transform3DGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Transform3DGroup(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Transform3DGroup(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10500,9 +11656,11 @@ private WpfKnownType Create_BamlType_TransformCollection(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
680, "TransformCollection",
typeof(System.Windows.Media.TransformCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.TransformCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.TransformCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10513,8 +11671,10 @@ private WpfKnownType Create_BamlType_TransformConverter(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
681, "TransformConverter",
typeof(System.Windows.Media.TransformConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.TransformConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.TransformConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10525,10 +11685,12 @@ private WpfKnownType Create_BamlType_TransformGroup(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
682, "TransformGroup",
typeof(System.Windows.Media.TransformGroup),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.TransformGroup(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.TransformGroup(); },
+ ContentPropertyName = "Children",
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10539,9 +11701,11 @@ private WpfKnownType Create_BamlType_TransformedBitmap(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
683, "TransformedBitmap",
typeof(System.Windows.Media.Imaging.TransformedBitmap),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.TransformedBitmap(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.TransformedBitmap(); },
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10552,9 +11716,11 @@ private WpfKnownType Create_BamlType_TranslateTransform(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
684, "TranslateTransform",
typeof(System.Windows.Media.TranslateTransform),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.TranslateTransform(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.TransformConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.TranslateTransform(); },
+ TypeConverterType = typeof(System.Windows.Media.TransformConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10565,8 +11731,10 @@ private WpfKnownType Create_BamlType_TranslateTransform3D(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
685, "TranslateTransform3D",
typeof(System.Windows.Media.Media3D.TranslateTransform3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.TranslateTransform3D(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.TranslateTransform3D(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10577,13 +11745,15 @@ private WpfKnownType Create_BamlType_TreeView(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
686, "TreeView",
typeof(System.Windows.Controls.TreeView),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TreeView(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.TreeView(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10594,13 +11764,15 @@ private WpfKnownType Create_BamlType_TreeViewItem(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
687, "TreeViewItem",
typeof(System.Windows.Controls.TreeViewItem),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.TreeViewItem(); };
- bamlType.ContentPropertyName = "Items";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.TreeViewItem(); },
+ ContentPropertyName = "Items",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10611,9 +11783,11 @@ private WpfKnownType Create_BamlType_Trigger(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
688, "Trigger",
typeof(System.Windows.Trigger),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Trigger(); };
- bamlType.ContentPropertyName = "Setters";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Trigger(); },
+ ContentPropertyName = "Setters"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10646,9 +11820,11 @@ private WpfKnownType Create_BamlType_TypeExtension(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
691, "TypeExtension",
typeof(System.Windows.Markup.TypeExtension),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.TypeExtension(); };
- bamlType.HasSpecialValueConverter = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.TypeExtension(); },
+ HasSpecialValueConverter = true
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Type) },
delegate(object[] arguments)
@@ -10666,8 +11842,10 @@ private WpfKnownType Create_BamlType_TypeTypeConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
692, "TypeTypeConverter",
typeof(System.Windows.Markup.TypeTypeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.TypeTypeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.TypeTypeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10689,9 +11867,11 @@ private WpfKnownType Create_BamlType_UIElement(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
694, "UIElement",
typeof(System.Windows.UIElement),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.UIElement(); };
- bamlType.UidPropertyName = "Uid";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.UIElement(); },
+ UidPropertyName = "Uid"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10702,9 +11882,11 @@ private WpfKnownType Create_BamlType_UInt16(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
695, "UInt16",
typeof(System.UInt16),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.UInt16(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.UInt16Converter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.UInt16(); },
+ TypeConverterType = typeof(System.ComponentModel.UInt16Converter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10715,8 +11897,10 @@ private WpfKnownType Create_BamlType_UInt16Converter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
696, "UInt16Converter",
typeof(System.ComponentModel.UInt16Converter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.UInt16Converter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.UInt16Converter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10727,9 +11911,11 @@ private WpfKnownType Create_BamlType_UInt32(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
697, "UInt32",
typeof(System.UInt32),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.UInt32(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.UInt32Converter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.UInt32(); },
+ TypeConverterType = typeof(System.ComponentModel.UInt32Converter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10740,8 +11926,10 @@ private WpfKnownType Create_BamlType_UInt32Converter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
698, "UInt32Converter",
typeof(System.ComponentModel.UInt32Converter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.UInt32Converter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.UInt32Converter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10752,9 +11940,11 @@ private WpfKnownType Create_BamlType_UInt64(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
699, "UInt64",
typeof(System.UInt64),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.UInt64(); };
- bamlType.TypeConverterType = typeof(System.ComponentModel.UInt64Converter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.UInt64(); },
+ TypeConverterType = typeof(System.ComponentModel.UInt64Converter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10765,8 +11955,10 @@ private WpfKnownType Create_BamlType_UInt64Converter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
700, "UInt64Converter",
typeof(System.ComponentModel.UInt64Converter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.ComponentModel.UInt64Converter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.ComponentModel.UInt64Converter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10777,8 +11969,10 @@ private WpfKnownType Create_BamlType_UShortIListConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
701, "UShortIListConverter",
typeof(System.Windows.Media.Converters.UShortIListConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Converters.UShortIListConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Converters.UShortIListConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10789,12 +11983,14 @@ private WpfKnownType Create_BamlType_Underline(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
702, "Underline",
typeof(System.Windows.Documents.Underline),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Underline(); };
- bamlType.ContentPropertyName = "Inlines";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.Underline(); },
+ ContentPropertyName = "Inlines",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10805,13 +12001,15 @@ private WpfKnownType Create_BamlType_UniformGrid(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
703, "UniformGrid",
typeof(System.Windows.Controls.Primitives.UniformGrid),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Primitives.UniformGrid(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Primitives.UniformGrid(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10822,8 +12020,10 @@ private WpfKnownType Create_BamlType_Uri(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
704, "Uri",
typeof(System.Uri),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.UriTypeConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.UriTypeConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10834,8 +12034,10 @@ private WpfKnownType Create_BamlType_UriTypeConverter(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
705, "UriTypeConverter",
typeof(System.UriTypeConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.UriTypeConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.UriTypeConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10846,13 +12048,15 @@ private WpfKnownType Create_BamlType_UserControl(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
706, "UserControl",
typeof(System.Windows.Controls.UserControl),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.UserControl(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.UserControl(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10874,9 +12078,11 @@ private WpfKnownType Create_BamlType_Vector(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
708, "Vector",
typeof(System.Windows.Vector),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Vector(); };
- bamlType.TypeConverterType = typeof(System.Windows.VectorConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Vector(); },
+ TypeConverterType = typeof(System.Windows.VectorConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10887,9 +12093,11 @@ private WpfKnownType Create_BamlType_Vector3D(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
709, "Vector3D",
typeof(System.Windows.Media.Media3D.Vector3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Vector3D(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Vector3DConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Vector3D(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Vector3DConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10900,9 +12108,11 @@ private WpfKnownType Create_BamlType_Vector3DAnimation(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
710, "Vector3DAnimation",
typeof(System.Windows.Media.Animation.Vector3DAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Vector3DAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Vector3DAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10913,8 +12123,10 @@ private WpfKnownType Create_BamlType_Vector3DAnimationBase(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
711, "Vector3DAnimationBase",
typeof(System.Windows.Media.Animation.Vector3DAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10925,10 +12137,12 @@ private WpfKnownType Create_BamlType_Vector3DAnimationUsingKeyFrames(bool isBaml
var bamlType = new WpfKnownType(this, // SchemaContext
712, "Vector3DAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Vector3DAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10939,10 +12153,12 @@ private WpfKnownType Create_BamlType_Vector3DCollection(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
713, "Vector3DCollection",
typeof(System.Windows.Media.Media3D.Vector3DCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Vector3DCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Media3D.Vector3DCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Vector3DCollection(); },
+ TypeConverterType = typeof(System.Windows.Media.Media3D.Vector3DCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10953,8 +12169,10 @@ private WpfKnownType Create_BamlType_Vector3DCollectionConverter(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
714, "Vector3DCollectionConverter",
typeof(System.Windows.Media.Media3D.Vector3DCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Vector3DCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Vector3DCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10965,8 +12183,10 @@ private WpfKnownType Create_BamlType_Vector3DConverter(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
715, "Vector3DConverter",
typeof(System.Windows.Media.Media3D.Vector3DConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Vector3DConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Vector3DConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -10988,9 +12208,11 @@ private WpfKnownType Create_BamlType_Vector3DKeyFrameCollection(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
717, "Vector3DKeyFrameCollection",
typeof(System.Windows.Media.Animation.Vector3DKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.Vector3DKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.Vector3DKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11001,9 +12223,11 @@ private WpfKnownType Create_BamlType_VectorAnimation(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
718, "VectorAnimation",
typeof(System.Windows.Media.Animation.VectorAnimation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.VectorAnimation(); };
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.VectorAnimation(); },
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11014,8 +12238,10 @@ private WpfKnownType Create_BamlType_VectorAnimationBase(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
719, "VectorAnimationBase",
typeof(System.Windows.Media.Animation.VectorAnimationBase),
- isBamlType, useV3Rules);
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11026,10 +12252,12 @@ private WpfKnownType Create_BamlType_VectorAnimationUsingKeyFrames(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
720, "VectorAnimationUsingKeyFrames",
typeof(System.Windows.Media.Animation.VectorAnimationUsingKeyFrames),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.VectorAnimationUsingKeyFrames(); };
- bamlType.ContentPropertyName = "KeyFrames";
- bamlType.RuntimeNamePropertyName = "Name";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.VectorAnimationUsingKeyFrames(); },
+ ContentPropertyName = "KeyFrames",
+ RuntimeNamePropertyName = "Name"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11040,10 +12268,12 @@ private WpfKnownType Create_BamlType_VectorCollection(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
721, "VectorCollection",
typeof(System.Windows.Media.VectorCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.VectorCollection(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.VectorCollectionConverter);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.VectorCollection(); },
+ TypeConverterType = typeof(System.Windows.Media.VectorCollectionConverter),
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11054,8 +12284,10 @@ private WpfKnownType Create_BamlType_VectorCollectionConverter(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
722, "VectorCollectionConverter",
typeof(System.Windows.Media.VectorCollectionConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.VectorCollectionConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.VectorCollectionConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11066,8 +12298,10 @@ private WpfKnownType Create_BamlType_VectorConverter(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
723, "VectorConverter",
typeof(System.Windows.VectorConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.VectorConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.VectorConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11089,9 +12323,11 @@ private WpfKnownType Create_BamlType_VectorKeyFrameCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
725, "VectorKeyFrameCollection",
typeof(System.Windows.Media.Animation.VectorKeyFrameCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Animation.VectorKeyFrameCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Animation.VectorKeyFrameCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11102,8 +12338,10 @@ private WpfKnownType Create_BamlType_VideoDrawing(bool isBamlType, bool useV3Rul
var bamlType = new WpfKnownType(this, // SchemaContext
726, "VideoDrawing",
typeof(System.Windows.Media.VideoDrawing),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.VideoDrawing(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.VideoDrawing(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11125,13 +12363,15 @@ private WpfKnownType Create_BamlType_Viewbox(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
728, "Viewbox",
typeof(System.Windows.Controls.Viewbox),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Viewbox(); };
- bamlType.ContentPropertyName = "Child";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Viewbox(); },
+ ContentPropertyName = "Child",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11142,13 +12382,15 @@ private WpfKnownType Create_BamlType_Viewport3D(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
729, "Viewport3D",
typeof(System.Windows.Controls.Viewport3D),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Viewport3D(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Viewport3D(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11159,9 +12401,11 @@ private WpfKnownType Create_BamlType_Viewport3DVisual(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
730, "Viewport3DVisual",
typeof(System.Windows.Media.Media3D.Viewport3DVisual),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Media3D.Viewport3DVisual(); };
- bamlType.ContentPropertyName = "Children";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Media3D.Viewport3DVisual(); },
+ ContentPropertyName = "Children"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11172,12 +12416,14 @@ private WpfKnownType Create_BamlType_VirtualizingPanel(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
731, "VirtualizingPanel",
typeof(System.Windows.Controls.VirtualizingPanel),
- isBamlType, useV3Rules);
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11188,13 +12434,15 @@ private WpfKnownType Create_BamlType_VirtualizingStackPanel(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
732, "VirtualizingStackPanel",
typeof(System.Windows.Controls.VirtualizingStackPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.VirtualizingStackPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.VirtualizingStackPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11227,9 +12475,11 @@ private WpfKnownType Create_BamlType_VisualBrush(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
735, "VisualBrush",
typeof(System.Windows.Media.VisualBrush),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.VisualBrush(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.BrushConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.VisualBrush(); },
+ TypeConverterType = typeof(System.Windows.Media.BrushConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11262,8 +12512,10 @@ private WpfKnownType Create_BamlType_WhitespaceSignificantCollectionAttribute(bo
var bamlType = new WpfKnownType(this, // SchemaContext
738, "WhitespaceSignificantCollectionAttribute",
typeof(System.Windows.Markup.WhitespaceSignificantCollectionAttribute),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.WhitespaceSignificantCollectionAttribute(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.WhitespaceSignificantCollectionAttribute(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11274,13 +12526,15 @@ private WpfKnownType Create_BamlType_Window(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
739, "Window",
typeof(System.Windows.Window),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Window(); };
- bamlType.ContentPropertyName = "Content";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Window(); },
+ ContentPropertyName = "Content",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11302,8 +12556,10 @@ private WpfKnownType Create_BamlType_WmpBitmapEncoder(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
741, "WmpBitmapEncoder",
typeof(System.Windows.Media.Imaging.WmpBitmapEncoder),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Imaging.WmpBitmapEncoder(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Imaging.WmpBitmapEncoder(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11314,13 +12570,15 @@ private WpfKnownType Create_BamlType_WrapPanel(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
742, "WrapPanel",
typeof(System.Windows.Controls.WrapPanel),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.WrapPanel(); };
- bamlType.ContentPropertyName = "Children";
- bamlType.RuntimeNamePropertyName = "Name";
- bamlType.XmlLangPropertyName = "Language";
- bamlType.UidPropertyName = "Uid";
- bamlType.IsUsableDuringInit = true;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.WrapPanel(); },
+ ContentPropertyName = "Children",
+ RuntimeNamePropertyName = "Name",
+ XmlLangPropertyName = "Language",
+ UidPropertyName = "Uid",
+ IsUsableDuringInit = true
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11331,8 +12589,10 @@ private WpfKnownType Create_BamlType_WriteableBitmap(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
743, "WriteableBitmap",
typeof(System.Windows.Media.Imaging.WriteableBitmap),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Media.ImageSourceConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11343,8 +12603,10 @@ private WpfKnownType Create_BamlType_XamlBrushSerializer(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
744, "XamlBrushSerializer",
typeof(System.Windows.Markup.XamlBrushSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlBrushSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlBrushSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11355,8 +12617,10 @@ private WpfKnownType Create_BamlType_XamlInt32CollectionSerializer(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
745, "XamlInt32CollectionSerializer",
typeof(System.Windows.Markup.XamlInt32CollectionSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlInt32CollectionSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlInt32CollectionSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11367,8 +12631,10 @@ private WpfKnownType Create_BamlType_XamlPathDataSerializer(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
746, "XamlPathDataSerializer",
typeof(System.Windows.Markup.XamlPathDataSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlPathDataSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlPathDataSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11379,8 +12645,10 @@ private WpfKnownType Create_BamlType_XamlPoint3DCollectionSerializer(bool isBaml
var bamlType = new WpfKnownType(this, // SchemaContext
747, "XamlPoint3DCollectionSerializer",
typeof(System.Windows.Markup.XamlPoint3DCollectionSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlPoint3DCollectionSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlPoint3DCollectionSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11391,8 +12659,10 @@ private WpfKnownType Create_BamlType_XamlPointCollectionSerializer(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
748, "XamlPointCollectionSerializer",
typeof(System.Windows.Markup.XamlPointCollectionSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlPointCollectionSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlPointCollectionSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11403,8 +12673,10 @@ private WpfKnownType Create_BamlType_XamlReader(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
749, "XamlReader",
typeof(System.Windows.Markup.XamlReader),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlReader(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlReader(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11415,8 +12687,10 @@ private WpfKnownType Create_BamlType_XamlStyleSerializer(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
750, "XamlStyleSerializer",
typeof(System.Windows.Markup.XamlStyleSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlStyleSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlStyleSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11427,8 +12701,10 @@ private WpfKnownType Create_BamlType_XamlTemplateSerializer(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
751, "XamlTemplateSerializer",
typeof(System.Windows.Markup.XamlTemplateSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlTemplateSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlTemplateSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11439,8 +12715,10 @@ private WpfKnownType Create_BamlType_XamlVector3DCollectionSerializer(bool isBam
var bamlType = new WpfKnownType(this, // SchemaContext
752, "XamlVector3DCollectionSerializer",
typeof(System.Windows.Markup.XamlVector3DCollectionSerializer),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XamlVector3DCollectionSerializer(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XamlVector3DCollectionSerializer(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11462,9 +12740,11 @@ private WpfKnownType Create_BamlType_XmlDataProvider(bool isBamlType, bool useV3
var bamlType = new WpfKnownType(this, // SchemaContext
754, "XmlDataProvider",
typeof(System.Windows.Data.XmlDataProvider),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.XmlDataProvider(); };
- bamlType.ContentPropertyName = "XmlSerializer";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.XmlDataProvider(); },
+ ContentPropertyName = "XmlSerializer"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11486,8 +12766,10 @@ private WpfKnownType Create_BamlType_XmlLanguage(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
756, "XmlLanguage",
typeof(System.Windows.Markup.XmlLanguage),
- isBamlType, useV3Rules);
- bamlType.TypeConverterType = typeof(System.Windows.Markup.XmlLanguageConverter);
+ isBamlType, useV3Rules)
+ {
+ TypeConverterType = typeof(System.Windows.Markup.XmlLanguageConverter)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11498,8 +12780,10 @@ private WpfKnownType Create_BamlType_XmlLanguageConverter(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
757, "XmlLanguageConverter",
typeof(System.Windows.Markup.XmlLanguageConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Markup.XmlLanguageConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Markup.XmlLanguageConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11510,8 +12794,10 @@ private WpfKnownType Create_BamlType_XmlNamespaceMapping(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
758, "XmlNamespaceMapping",
typeof(System.Windows.Data.XmlNamespaceMapping),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.XmlNamespaceMapping(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.XmlNamespaceMapping(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11522,8 +12808,10 @@ private WpfKnownType Create_BamlType_ZoomPercentageConverter(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
759, "ZoomPercentageConverter",
typeof(System.Windows.Documents.ZoomPercentageConverter),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.ZoomPercentageConverter(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Documents.ZoomPercentageConverter(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11534,8 +12822,10 @@ private WpfKnownType Create_BamlType_CommandBinding(bool isBamlType, bool useV3R
var bamlType = new WpfKnownType(this, // SchemaContext
0, "CommandBinding",
typeof(System.Windows.Input.CommandBinding),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.CommandBinding(); };
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.CommandBinding(); }
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11546,9 +12836,11 @@ private WpfKnownType Create_BamlType_XmlNamespaceMappingCollection(bool isBamlTy
var bamlType = new WpfKnownType(this, // SchemaContext
0, "XmlNamespaceMappingCollection",
typeof(System.Windows.Data.XmlNamespaceMappingCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.XmlNamespaceMappingCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.XmlNamespaceMappingCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11559,8 +12851,10 @@ private WpfKnownType Create_BamlType_PageContentCollection(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
0, "PageContentCollection",
typeof(System.Windows.Documents.PageContentCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11571,8 +12865,10 @@ private WpfKnownType Create_BamlType_DocumentReferenceCollection(bool isBamlType
var bamlType = new WpfKnownType(this, // SchemaContext
0, "DocumentReferenceCollection",
typeof(System.Windows.Documents.DocumentReferenceCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11583,9 +12879,11 @@ private WpfKnownType Create_BamlType_KeyboardNavigationMode(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
0, "KeyboardNavigationMode",
typeof(System.Windows.Input.KeyboardNavigationMode),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.KeyboardNavigationMode(); };
- bamlType.TypeConverterType = typeof(System.Windows.Input.KeyboardNavigationMode);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.KeyboardNavigationMode(); },
+ TypeConverterType = typeof(System.Windows.Input.KeyboardNavigationMode)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11607,9 +12905,11 @@ private WpfKnownType Create_BamlType_RelativeSourceMode(bool isBamlType, bool us
var bamlType = new WpfKnownType(this, // SchemaContext
0, "RelativeSourceMode",
typeof(System.Windows.Data.RelativeSourceMode),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.RelativeSourceMode(); };
- bamlType.TypeConverterType = typeof(System.Windows.Data.RelativeSourceMode);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Data.RelativeSourceMode(); },
+ TypeConverterType = typeof(System.Windows.Data.RelativeSourceMode)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11620,9 +12920,11 @@ private WpfKnownType Create_BamlType_PenLineJoin(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
0, "PenLineJoin",
typeof(System.Windows.Media.PenLineJoin),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PenLineJoin(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.PenLineJoin);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PenLineJoin(); },
+ TypeConverterType = typeof(System.Windows.Media.PenLineJoin)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11633,9 +12935,11 @@ private WpfKnownType Create_BamlType_PenLineCap(bool isBamlType, bool useV3Rules
var bamlType = new WpfKnownType(this, // SchemaContext
0, "PenLineCap",
typeof(System.Windows.Media.PenLineCap),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PenLineCap(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.PenLineCap);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.PenLineCap(); },
+ TypeConverterType = typeof(System.Windows.Media.PenLineCap)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11646,9 +12950,11 @@ private WpfKnownType Create_BamlType_InputBindingCollection(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
0, "InputBindingCollection",
typeof(System.Windows.Input.InputBindingCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.InputBindingCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.InputBindingCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11659,9 +12965,11 @@ private WpfKnownType Create_BamlType_CommandBindingCollection(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
0, "CommandBindingCollection",
typeof(System.Windows.Input.CommandBindingCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.CommandBindingCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Input.CommandBindingCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11672,9 +12980,11 @@ private WpfKnownType Create_BamlType_Stretch(bool isBamlType, bool useV3Rules)
var bamlType = new WpfKnownType(this, // SchemaContext
0, "Stretch",
typeof(System.Windows.Media.Stretch),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.Stretch(); };
- bamlType.TypeConverterType = typeof(System.Windows.Media.Stretch);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Media.Stretch(); },
+ TypeConverterType = typeof(System.Windows.Media.Stretch)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11685,9 +12995,11 @@ private WpfKnownType Create_BamlType_Orientation(bool isBamlType, bool useV3Rule
var bamlType = new WpfKnownType(this, // SchemaContext
0, "Orientation",
typeof(System.Windows.Controls.Orientation),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Orientation(); };
- bamlType.TypeConverterType = typeof(System.Windows.Controls.Orientation);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.Orientation(); },
+ TypeConverterType = typeof(System.Windows.Controls.Orientation)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11698,9 +13010,11 @@ private WpfKnownType Create_BamlType_TextAlignment(bool isBamlType, bool useV3Ru
var bamlType = new WpfKnownType(this, // SchemaContext
0, "TextAlignment",
typeof(System.Windows.TextAlignment),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.TextAlignment(); };
- bamlType.TypeConverterType = typeof(System.Windows.TextAlignment);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.TextAlignment(); },
+ TypeConverterType = typeof(System.Windows.TextAlignment)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11711,9 +13025,11 @@ private WpfKnownType Create_BamlType_NavigationUIVisibility(bool isBamlType, boo
var bamlType = new WpfKnownType(this, // SchemaContext
0, "NavigationUIVisibility",
typeof(System.Windows.Navigation.NavigationUIVisibility),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Navigation.NavigationUIVisibility(); };
- bamlType.TypeConverterType = typeof(System.Windows.Navigation.NavigationUIVisibility);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Navigation.NavigationUIVisibility(); },
+ TypeConverterType = typeof(System.Windows.Navigation.NavigationUIVisibility)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11724,9 +13040,11 @@ private WpfKnownType Create_BamlType_JournalOwnership(bool isBamlType, bool useV
var bamlType = new WpfKnownType(this, // SchemaContext
0, "JournalOwnership",
typeof(System.Windows.Navigation.JournalOwnership),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Navigation.JournalOwnership(); };
- bamlType.TypeConverterType = typeof(System.Windows.Navigation.JournalOwnership);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Navigation.JournalOwnership(); },
+ TypeConverterType = typeof(System.Windows.Navigation.JournalOwnership)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11737,9 +13055,11 @@ private WpfKnownType Create_BamlType_ScrollBarVisibility(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
0, "ScrollBarVisibility",
typeof(System.Windows.Controls.ScrollBarVisibility),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ScrollBarVisibility(); };
- bamlType.TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ScrollBarVisibility(); },
+ TypeConverterType = typeof(System.Windows.Controls.ScrollBarVisibility)
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11750,8 +13070,10 @@ private WpfKnownType Create_BamlType_TriggerCollection(bool isBamlType, bool use
var bamlType = new WpfKnownType(this, // SchemaContext
0, "TriggerCollection",
typeof(System.Windows.TriggerCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11762,8 +13084,10 @@ private WpfKnownType Create_BamlType_UIElementCollection(bool isBamlType, bool u
var bamlType = new WpfKnownType(this, // SchemaContext
0, "UIElementCollection",
typeof(System.Windows.Controls.UIElementCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11774,9 +13098,11 @@ private WpfKnownType Create_BamlType_SetterBaseCollection(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
0, "SetterBaseCollection",
typeof(System.Windows.SetterBaseCollection),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.SetterBaseCollection(); };
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.SetterBaseCollection(); },
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11787,8 +13113,10 @@ private WpfKnownType Create_BamlType_ColumnDefinitionCollection(bool isBamlType,
var bamlType = new WpfKnownType(this, // SchemaContext
0, "ColumnDefinitionCollection",
typeof(System.Windows.Controls.ColumnDefinitionCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11799,8 +13127,10 @@ private WpfKnownType Create_BamlType_RowDefinitionCollection(bool isBamlType, bo
var bamlType = new WpfKnownType(this, // SchemaContext
0, "RowDefinitionCollection",
typeof(System.Windows.Controls.RowDefinitionCollection),
- isBamlType, useV3Rules);
- bamlType.CollectionKind = XamlCollectionKind.Collection;
+ isBamlType, useV3Rules)
+ {
+ CollectionKind = XamlCollectionKind.Collection
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11811,10 +13141,12 @@ private WpfKnownType Create_BamlType_ItemContainerTemplate(bool isBamlType, bool
var bamlType = new WpfKnownType(this, // SchemaContext
0, "ItemContainerTemplate",
typeof(System.Windows.Controls.ItemContainerTemplate),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemContainerTemplate(); };
- bamlType.ContentPropertyName = "Template";
- bamlType.DictionaryKeyPropertyName = "ItemContainerTemplateKey";
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ItemContainerTemplate(); },
+ ContentPropertyName = "Template",
+ DictionaryKeyPropertyName = "ItemContainerTemplateKey"
+ };
bamlType.Freeze();
return bamlType;
}
@@ -11825,9 +13157,11 @@ private WpfKnownType Create_BamlType_ItemContainerTemplateKey(bool isBamlType, b
var bamlType = new WpfKnownType(this, // SchemaContext
0, "ItemContainerTemplateKey",
typeof(System.Windows.Controls.ItemContainerTemplateKey),
- isBamlType, useV3Rules);
- bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemContainerTemplateKey(); };
- bamlType.TypeConverterType = typeof(System.Windows.Markup.TemplateKeyConverter);
+ isBamlType, useV3Rules)
+ {
+ DefaultConstructor = delegate () { return new System.Windows.Controls.ItemContainerTemplateKey(); },
+ TypeConverterType = typeof(System.Windows.Markup.TemplateKeyConverter)
+ };
bamlType.Constructors.Add(1, new Baml6ConstructorInfo(
new List() { typeof(System.Object) },
delegate(object[] arguments)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs
index 3bf284cbfc9..d287cc0bb75 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlMapTable.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -66,9 +66,11 @@ internal BamlMapTable(XamlTypeMapper xamlTypeMapper)
_xamlTypeMapper = xamlTypeMapper;
// Setup the assembly record for the known types of controls
- _knownAssemblyInfoRecord = new BamlAssemblyInfoRecord();
- _knownAssemblyInfoRecord.AssemblyId = -1;
- _knownAssemblyInfoRecord.Assembly = ReflectionHelper.LoadAssembly(_frameworkAssembly, string.Empty);
+ _knownAssemblyInfoRecord = new BamlAssemblyInfoRecord
+ {
+ AssemblyId = -1,
+ Assembly = ReflectionHelper.LoadAssembly(_frameworkAssembly, string.Empty)
+ };
_knownAssemblyInfoRecord.AssemblyFullName = _knownAssemblyInfoRecord.Assembly.FullName;
}
@@ -489,8 +491,10 @@ internal BamlTypeInfoRecord GetTypeInfoFromId(short id)
// we know that it is a known assembly for an Avalon known type. We have to do
// this since some of the known types are not avalon types, such as Bool, Object,
// Double, and others...
- info = new BamlTypeInfoRecord();
- info.AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id]);
+ info = new BamlTypeInfoRecord
+ {
+ AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id])
+ };
}
info.TypeId = id;
@@ -626,9 +630,11 @@ internal BamlAttributeInfoRecord GetAttributeInfoFromId(short id)
if (id < 0)
{
KnownProperties knownId = (KnownProperties)(-id);
- BamlAttributeInfoRecord record = new BamlAttributeInfoRecord();
- record.AttributeId = id;
- record.OwnerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId);
+ BamlAttributeInfoRecord record = new BamlAttributeInfoRecord
+ {
+ AttributeId = id,
+ OwnerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId)
+ };
GetAttributeOwnerType(record); // This will update the OwnerType property
record.Name = GetAttributeNameFromKnownId(knownId);
@@ -1015,16 +1021,20 @@ internal BamlAssemblyInfoRecord AddAssemblyMap(
{
Debug.Assert(assemblyFullName.Length != 0, "empty assembly");
- AssemblyInfoKey key = new AssemblyInfoKey();
- key.AssemblyFullName = assemblyFullName;
+ AssemblyInfoKey key = new AssemblyInfoKey
+ {
+ AssemblyFullName = assemblyFullName
+ };
BamlAssemblyInfoRecord bamlAssemblyInfoRecord =
(BamlAssemblyInfoRecord)GetHashTableData(key);
if (null == bamlAssemblyInfoRecord)
{
- bamlAssemblyInfoRecord = new BamlAssemblyInfoRecord();
- bamlAssemblyInfoRecord.AssemblyFullName = assemblyFullName;
+ bamlAssemblyInfoRecord = new BamlAssemblyInfoRecord
+ {
+ AssemblyFullName = assemblyFullName
+ };
#if PBTCOMPILER
try
@@ -1131,9 +1141,11 @@ internal void EnsureAssemblyRecord(Assembly asm)
// and this is not written out the the baml stream.
if (ObjectHashTable[fullName] is not BamlAssemblyInfoRecord record)
{
- record = new BamlAssemblyInfoRecord();
- record.AssemblyFullName = fullName;
- record.Assembly = asm;
+ record = new BamlAssemblyInfoRecord
+ {
+ AssemblyFullName = fullName,
+ Assembly = asm
+ };
ObjectHashTable[fullName] = record;
}
@@ -1146,9 +1158,11 @@ private TypeInfoKey GetTypeInfoKey(
string assemblyFullName,
string typeFullName)
{
- TypeInfoKey key = new TypeInfoKey();
- key.DeclaringAssembly = assemblyFullName;
- key.TypeFullName = typeFullName;
+ TypeInfoKey key = new TypeInfoKey
+ {
+ DeclaringAssembly = assemblyFullName,
+ TypeFullName = typeFullName
+ };
return key;
}
@@ -1342,10 +1356,11 @@ internal short AddAttributeInfoMap(
if (null == bamlAttributeInfoRecord)
{
// The property is new and needs a record created.
- bamlAttributeInfoRecord = new BamlAttributeInfoRecord();
-
- bamlAttributeInfoRecord.Name = fieldName;
- bamlAttributeInfoRecord.OwnerTypeId = typeId;
+ bamlAttributeInfoRecord = new BamlAttributeInfoRecord
+ {
+ Name = fieldName,
+ OwnerTypeId = typeId
+ };
bamlAttributeInfoRecord.AttributeId = (short)AttributeIdMap.Add(bamlAttributeInfoRecord);
bamlAttributeInfoRecord.AttributeUsage = attributeUsage;
@@ -1684,13 +1699,14 @@ internal void AddHashTableData(object key, object data)
#if !PBTCOMPILER
internal BamlMapTable Clone()
{
- BamlMapTable table = new BamlMapTable(_xamlTypeMapper);
-
- table._objectHashTable = (Hashtable)_objectHashTable.Clone();
- table._assemblyIdToInfo = (ArrayList)_assemblyIdToInfo.Clone();
- table._typeIdToInfo = (ArrayList)_typeIdToInfo.Clone();
- table._attributeIdToInfo = (ArrayList)_attributeIdToInfo.Clone();
- table._stringIdToInfo = (ArrayList)_stringIdToInfo.Clone();
+ BamlMapTable table = new BamlMapTable(_xamlTypeMapper)
+ {
+ _objectHashTable = (Hashtable)_objectHashTable.Clone(),
+ _assemblyIdToInfo = (ArrayList)_assemblyIdToInfo.Clone(),
+ _typeIdToInfo = (ArrayList)_typeIdToInfo.Clone(),
+ _attributeIdToInfo = (ArrayList)_attributeIdToInfo.Clone(),
+ _stringIdToInfo = (ArrayList)_stringIdToInfo.Clone()
+ };
return table;
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs
index 8ac27b017bd..9f6f490e72e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlReader.cs
@@ -155,8 +155,10 @@ internal class BamlReader
/// summary>
public BamlReader(Stream bamlStream)
{
- _parserContext = new ParserContext();
- _parserContext.XamlTypeMapper = XmlParserDefaults.DefaultMapper;
+ _parserContext = new ParserContext
+ {
+ XamlTypeMapper = XmlParserDefaults.DefaultMapper
+ };
_bamlRecordReader = new BamlRecordReader(bamlStream, _parserContext, false);
_readState = ReadState.Initial;
_bamlNodeType = BamlNodeType.None;
@@ -810,17 +812,19 @@ private void ReadXmlnsPropertyRecord()
_parserContext.XmlnsDictionary[bamlRecord.Prefix] = bamlRecord.XmlNamespace;
_prefixDictionary[bamlRecord.XmlNamespace] = bamlRecord.Prefix;
- BamlPropertyInfo info = new BamlPropertyInfo();
- info.Value = bamlRecord.XmlNamespace;
- info.XmlNamespace = string.Empty;
- info.ClrNamespace = string.Empty;
- info.AssemblyName = string.Empty;
- info.Prefix = "xmlns";
- info.LocalName = bamlRecord.Prefix ?? string.Empty;
- info.Name = string.IsNullOrEmpty(bamlRecord.Prefix) ?
+ BamlPropertyInfo info = new BamlPropertyInfo
+ {
+ Value = bamlRecord.XmlNamespace,
+ XmlNamespace = string.Empty,
+ ClrNamespace = string.Empty,
+ AssemblyName = string.Empty,
+ Prefix = "xmlns",
+ LocalName = bamlRecord.Prefix ?? string.Empty,
+ Name = string.IsNullOrEmpty(bamlRecord.Prefix) ?
"xmlns" :
- $"xmlns:{bamlRecord.Prefix}";
- info.RecordType = BamlRecordType.XmlnsProperty;
+ $"xmlns:{bamlRecord.Prefix}",
+ RecordType = BamlRecordType.XmlnsProperty
+ };
AddToPropertyInfoCollection(info);
}
@@ -1092,13 +1096,15 @@ private void ReadDefAttributeRecord()
BamlDefAttributeRecord bamlRecord = (BamlDefAttributeRecord)_currentBamlRecord;
bamlRecord.Name = MapTable.GetStringFromStringId(bamlRecord.NameId);
- BamlPropertyInfo info = new BamlPropertyInfo();
- info.Value = bamlRecord.Value;
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = bamlRecord.Name;
+ BamlPropertyInfo info = new BamlPropertyInfo
+ {
+ Value = bamlRecord.Value,
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI],
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = bamlRecord.Name
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
@@ -1119,13 +1125,15 @@ private void ReadPresentationOptionsAttributeRecord()
BamlPresentationOptionsAttributeRecord bamlRecord = (BamlPresentationOptionsAttributeRecord)_currentBamlRecord;
bamlRecord.Name = MapTable.GetStringFromStringId(bamlRecord.NameId);
- BamlPropertyInfo info = new BamlPropertyInfo();
- info.Value = bamlRecord.Value;
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.PresentationOptionsNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.PresentationOptionsNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = bamlRecord.Name;
+ BamlPropertyInfo info = new BamlPropertyInfo
+ {
+ Value = bamlRecord.Value,
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.PresentationOptionsNamespaceURI],
+ XmlNamespace = XamlReaderHelper.PresentationOptionsNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = bamlRecord.Name
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.PresentationOptionsAttribute;
@@ -1146,13 +1154,15 @@ private void ReadDefAttributeKeyTypeRecord()
{
BamlDefAttributeKeyTypeRecord bamlRecord = (BamlDefAttributeKeyTypeRecord)_currentBamlRecord;
- BamlPropertyInfo info = new BamlPropertyInfo();
- info.Value = GetTypeValueString(bamlRecord.TypeId);
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = XamlReaderHelper.DefinitionName;
+ BamlPropertyInfo info = new BamlPropertyInfo
+ {
+ Value = GetTypeValueString(bamlRecord.TypeId),
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI],
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = XamlReaderHelper.DefinitionName
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
@@ -1262,13 +1272,15 @@ private void ProcessDeferKey()
// Add information to the key list to indicate we have a x:Key
// attribute
- info = new BamlKeyInfo();
- info.Value = stringKeyRecord.Value;
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = XamlReaderHelper.DefinitionName;
+ info = new BamlKeyInfo
+ {
+ Value = stringKeyRecord.Value,
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI],
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = XamlReaderHelper.DefinitionName
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
info.Offset = ((IBamlDictionaryKey)stringKeyRecord).ValuePosition;
@@ -1311,13 +1323,15 @@ private void ProcessDeferKey()
// Add information to the key list to indicate we have a x:Key
// attribute
- BamlKeyInfo info = new BamlKeyInfo();
- info.Value = typeName;
- info.AssemblyName = string.Empty;
- info.Prefix = typeExtensionPrefix;
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = XamlReaderHelper.DefinitionName;
+ BamlKeyInfo info = new BamlKeyInfo
+ {
+ Value = typeName,
+ AssemblyName = string.Empty,
+ Prefix = typeExtensionPrefix,
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = XamlReaderHelper.DefinitionName
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
info.Offset = ((IBamlDictionaryKey)typeKeyRecord).ValuePosition;
@@ -1381,13 +1395,15 @@ private BamlKeyInfo CheckForSharedness()
if (!dictKey.SharedSet)
return null;
- BamlKeyInfo info = new BamlKeyInfo();
- info.Value = dictKey.Shared.ToString();
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = XamlReaderHelper.DefinitionShared;
+ BamlKeyInfo info = new BamlKeyInfo
+ {
+ Value = dictKey.Shared.ToString(),
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI],
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = XamlReaderHelper.DefinitionShared
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
info.Offset = dictKey.ValuePosition;
@@ -1670,13 +1686,15 @@ private BamlKeyInfo ProcessKeyTree()
// At this point the markup string representing the MarkupExtension should
// be complete, so set this as the value for this key.
- BamlKeyInfo info = new BamlKeyInfo();
- info.Value = markupString;
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = XamlReaderHelper.DefinitionName;
+ BamlKeyInfo info = new BamlKeyInfo
+ {
+ Value = markupString,
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI],
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = XamlReaderHelper.DefinitionName
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
info.Offset = ((IBamlDictionaryKey)keyStartRecord).ValuePosition;
@@ -1814,8 +1832,10 @@ private void ReadDocumentStartRecord()
_parserContext.IsDebugBamlStream = documentStartRecord.DebugBaml;
// Push information on the node stack to indicate we have a start document
- BamlNodeInfo nodeInfo = new BamlNodeInfo();
- nodeInfo.RecordType = BamlRecordType.DocumentStart;
+ BamlNodeInfo nodeInfo = new BamlNodeInfo
+ {
+ RecordType = BamlRecordType.DocumentStart
+ };
_nodeStack.Push(nodeInfo);
}
@@ -1952,14 +1972,16 @@ private void ReadElementStartRecord()
GetAssemblyAndPrefixAndXmlns(typeInfo, out _assemblyName, out _prefix, out _xmlNamespace);
// Push information on the node stack to indicate we have a start element
- BamlNodeInfo nodeInfo = new BamlNodeInfo();
- nodeInfo.Name = _name;
- nodeInfo.LocalName = _localName;
- nodeInfo.AssemblyName = _assemblyName;
- nodeInfo.Prefix = _prefix;
- nodeInfo.ClrNamespace = _clrNamespace;
- nodeInfo.XmlNamespace = _xmlNamespace;
- nodeInfo.RecordType = BamlRecordType.ElementStart;
+ BamlNodeInfo nodeInfo = new BamlNodeInfo
+ {
+ Name = _name,
+ LocalName = _localName,
+ AssemblyName = _assemblyName,
+ Prefix = _prefix,
+ ClrNamespace = _clrNamespace,
+ XmlNamespace = _xmlNamespace,
+ RecordType = BamlRecordType.ElementStart
+ };
_useTypeConverter = bamlRecord.CreateUsingTypeConverter;
_isInjected = bamlRecord.IsInjected;
@@ -2206,8 +2228,10 @@ private void ReadConstructorStart()
NodeTypeInternal = BamlNodeType.StartConstructor;
// Push information on the node stack to indicate we have a start array
- BamlNodeInfo nodeInfo = new BamlNodeInfo();
- nodeInfo.RecordType = BamlRecordType.ConstructorParametersStart;
+ BamlNodeInfo nodeInfo = new BamlNodeInfo
+ {
+ RecordType = BamlRecordType.ConstructorParametersStart
+ };
_nodeStack.Push(nodeInfo);
}
@@ -2266,13 +2290,15 @@ private void InsertDeferedKey(Int32 valueOffset)
// records that may occur within the corresponding value.
_currentKeyInfo = keyInfo;
- BamlPropertyInfo info = new BamlPropertyInfo();
- info.Value = keyInfo.Value;
- info.AssemblyName = string.Empty;
- info.Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI];
- info.XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI;
- info.ClrNamespace = string.Empty;
- info.Name = keyInfo.Name;
+ BamlPropertyInfo info = new BamlPropertyInfo
+ {
+ Value = keyInfo.Value,
+ AssemblyName = string.Empty,
+ Prefix = (string)_prefixDictionary[XamlReaderHelper.DefinitionNamespaceURI],
+ XmlNamespace = XamlReaderHelper.DefinitionNamespaceURI,
+ ClrNamespace = string.Empty,
+ Name = keyInfo.Name
+ };
info.LocalName = info.Name;
info.RecordType = BamlRecordType.DefAttribute;
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs
index b4fa5c3e629..cd52e89d718 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlRecordReader.cs
@@ -2365,9 +2365,11 @@ private object GetStaticExtensionValue(short memberId)
BamlAttributeInfoRecord attribInfo = MapTable.GetAttributeInfoFromId(memberId);
if (attribInfo != null)
{
- StaticExtension se = new StaticExtension();
- se.MemberType = MapTable.GetTypeFromId(attribInfo.OwnerTypeId);
- se.Member = attribInfo.Name;
+ StaticExtension se = new StaticExtension
+ {
+ MemberType = MapTable.GetTypeFromId(attribInfo.OwnerTypeId),
+ Member = attribInfo.Name
+ };
valueObject = se.ProvideValue(null);
}
}
@@ -3133,8 +3135,10 @@ private void InitPropertyCollection(BamlCollectionHolder holder, ReaderContextSt
// arrays are a little different than other collections, because we wrap them in an array extension.
// Here we create an array extension and assign the element type based on the property.
- ArrayExtension arrayExt = new ArrayExtension();
- arrayExt.Type = context.ExpectedType.GetElementType();
+ ArrayExtension arrayExt = new ArrayExtension
+ {
+ Type = context.ExpectedType.GetElementType()
+ };
holder.Collection = arrayExt;
}
else if (holder.DefaultCollection != null)
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs
index 1cd8f15c3ef..76cffa0d4b1 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/BamlWriter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -215,10 +215,12 @@ public void WriteStartElement(
assemblyName,
typeFullName,
elementType,
- serializerType);
- node.IsInjected = isInjected;
- node.CreateUsingTypeConverter = useTypeConverter;
-
+ serializerType)
+ {
+ IsInjected = isInjected,
+ CreateUsingTypeConverter = useTypeConverter
+ };
+
_bamlRecordWriter.WriteElementStart(node);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs
index b9a588d7db4..d02387d974c 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/ParserContext.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -637,23 +637,24 @@ internal ParserContext ScopedCopy()
#if !PBTCOMPILER
internal ParserContext ScopedCopy(bool copyNameScopeStack)
{
- ParserContext context = new ParserContext();
-
- context._baseUri = _baseUri;
- context._skipJournaledProperties = _skipJournaledProperties;
- context._xmlLang = _xmlLang;
- context._xmlSpace = _xmlSpace;
- context._repeat = _repeat;
- context._lineNumber = _lineNumber;
- context._linePosition = _linePosition;
- context._isDebugBamlStream = _isDebugBamlStream;
- context._mapTable = _mapTable;
- context._xamlTypeMapper = _xamlTypeMapper;
- context._targetType = _targetType;
-
- context._streamCreatedAssembly = _streamCreatedAssembly;
- context._rootElement = _rootElement;
- context._styleConnector = _styleConnector;
+ ParserContext context = new ParserContext
+ {
+ _baseUri = _baseUri,
+ _skipJournaledProperties = _skipJournaledProperties,
+ _xmlLang = _xmlLang,
+ _xmlSpace = _xmlSpace,
+ _repeat = _repeat,
+ _lineNumber = _lineNumber,
+ _linePosition = _linePosition,
+ _isDebugBamlStream = _isDebugBamlStream,
+ _mapTable = _mapTable,
+ _xamlTypeMapper = _xamlTypeMapper,
+ _targetType = _targetType,
+
+ _streamCreatedAssembly = _streamCreatedAssembly,
+ _rootElement = _rootElement,
+ _styleConnector = _styleConnector
+ };
// Copy the name scope stack, if necessary.
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs
index 62a20c7e320..7d405f33707 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/Primitives/MarkupWriter.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -32,8 +32,10 @@ public sealed class MarkupWriter : IDisposable
public static MarkupObject GetMarkupObjectFor(object instance)
{
ArgumentNullException.ThrowIfNull(instance);
- XamlDesignerSerializationManager manager = new XamlDesignerSerializationManager(null);
- manager.XamlWriterMode = XamlWriterMode.Expression;
+ XamlDesignerSerializationManager manager = new XamlDesignerSerializationManager(null)
+ {
+ XamlWriterMode = XamlWriterMode.Expression
+ };
return new ElementMarkupObject(instance, manager);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs
index 430dfc8598c..4baebe7f28e 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs
@@ -291,8 +291,10 @@ public object LoadAsync(Stream stream, ParserContext parserContext , bool useRes
parserContext = new ParserContext();
}
- XmlTextReader reader = new XmlTextReader(stream, XmlNodeType.Document, parserContext);
- reader.DtdProcessing = DtdProcessing.Prohibit;
+ XmlTextReader reader = new XmlTextReader(stream, XmlNodeType.Document, parserContext)
+ {
+ DtdProcessing = DtdProcessing.Prohibit
+ };
return LoadAsync(reader, parserContext, useRestrictiveXamlReader);
}
@@ -338,10 +340,12 @@ private object LoadAsync(XmlReader reader, ParserContext parserContext, bool use
}
}
_baseUri = parserContext.BaseUri;
- System.Xaml.XamlXmlReaderSettings settings = new System.Xaml.XamlXmlReaderSettings();
- settings.IgnoreUidsOnPropertyElements = true;
- settings.BaseUri = parserContext.BaseUri;
- settings.ProvideLineInfo = true;
+ System.Xaml.XamlXmlReaderSettings settings = new System.Xaml.XamlXmlReaderSettings
+ {
+ IgnoreUidsOnPropertyElements = true,
+ BaseUri = parserContext.BaseUri,
+ ProvideLineInfo = true
+ };
XamlSchemaContext schemaContext = parserContext.XamlTypeMapper != null ?
parserContext.XamlTypeMapper.SchemaContext : GetWpfSchemaContext();
@@ -718,9 +722,11 @@ public void CancelAsync()
#region Internal Methods
internal static XamlObjectWriterSettings CreateObjectWriterSettings()
{
- XamlObjectWriterSettings owSettings = new XamlObjectWriterSettings();
- owSettings.IgnoreCanConvert = true;
- owSettings.PreferUnconvertedDictionaryKeys = true;
+ XamlObjectWriterSettings owSettings = new XamlObjectWriterSettings
+ {
+ IgnoreCanConvert = true,
+ PreferUnconvertedDictionaryKeys = true
+ };
return owSettings;
}
@@ -746,15 +752,19 @@ internal static XamlObjectWriterSettings CreateObjectWriterSettingsForBaml()
internal static Baml2006ReaderSettings CreateBamlReaderSettings()
{
- Baml2006ReaderSettings brSettings = new Baml2006ReaderSettings();
- brSettings.IgnoreUidsOnPropertyElements = true;
+ Baml2006ReaderSettings brSettings = new Baml2006ReaderSettings
+ {
+ IgnoreUidsOnPropertyElements = true
+ };
return brSettings;
}
internal static XamlSchemaContextSettings CreateSchemaContextSettings()
{
- XamlSchemaContextSettings xscSettings = new XamlSchemaContextSettings();
- xscSettings.SupportMarkupExtensionsWithDuplicateArity = true;
+ XamlSchemaContextSettings xscSettings = new XamlSchemaContextSettings
+ {
+ SupportMarkupExtensionsWithDuplicateArity = true
+ };
return xscSettings;
}
@@ -878,10 +888,12 @@ internal static object Load(
}
}
- System.Xaml.XamlXmlReaderSettings settings = new System.Xaml.XamlXmlReaderSettings();
- settings.IgnoreUidsOnPropertyElements = true;
- settings.BaseUri = parserContext.BaseUri;
- settings.ProvideLineInfo = true;
+ System.Xaml.XamlXmlReaderSettings settings = new System.Xaml.XamlXmlReaderSettings
+ {
+ IgnoreUidsOnPropertyElements = true,
+ BaseUri = parserContext.BaseUri,
+ ProvideLineInfo = true
+ };
XamlSchemaContext schemaContext = parserContext.XamlTypeMapper != null ?
parserContext.XamlTypeMapper.SchemaContext : GetWpfSchemaContext();
@@ -1141,15 +1153,19 @@ static Uri GetBaseUri(Uri uri)
private static WpfSharedBamlSchemaContext CreateBamlSchemaContext()
{
- XamlSchemaContextSettings settings = new XamlSchemaContextSettings();
- settings.SupportMarkupExtensionsWithDuplicateArity = true;
+ XamlSchemaContextSettings settings = new XamlSchemaContextSettings
+ {
+ SupportMarkupExtensionsWithDuplicateArity = true
+ };
return new WpfSharedBamlSchemaContext(settings);
}
private static WpfSharedXamlSchemaContext CreateXamlSchemaContext(bool useV3Rules)
{
- XamlSchemaContextSettings settings = new XamlSchemaContextSettings();
- settings.SupportMarkupExtensionsWithDuplicateArity = true;
+ XamlSchemaContextSettings settings = new XamlSchemaContextSettings
+ {
+ SupportMarkupExtensionsWithDuplicateArity = true
+ };
return new WpfSharedXamlSchemaContext(settings, useV3Rules);
}
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs
index 74370198541..568971e6bc7 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReaderHelper.cs
@@ -139,8 +139,10 @@ internal XamlReaderHelper(
// push a rootLevel stack
// For now always use InlineBlock.
- TextFlowStackData textFlowStackData = new TextFlowStackData();
- textFlowStackData.StripLeadingSpaces = true;
+ TextFlowStackData textFlowStackData = new TextFlowStackData
+ {
+ StripLeadingSpaces = true
+ };
TextFlowStack.Push(textFlowStackData);
@@ -1950,8 +1952,10 @@ bool ReadElementNode()
// Put an item on the context stack for this element. The ContextType
// may be modified by the call to CompileBamlTag.
- ElementContextStackData elementContextStackData = new ElementContextStackData();
- elementContextStackData.IsEmptyElement = isEmptyElement;
+ ElementContextStackData elementContextStackData = new ElementContextStackData
+ {
+ IsEmptyElement = isEmptyElement
+ };
// If we have a parent stack, this context is the same as the parent
// by default.
@@ -1963,8 +1967,10 @@ bool ReadElementNode()
{
if(ShouldImplyContentProperty())
{
- ElementContextStackData CpaStackData = new ElementContextStackData();
- CpaStackData.ContextType = ElementContextType.Default;
+ ElementContextStackData CpaStackData = new ElementContextStackData
+ {
+ ContextType = ElementContextType.Default
+ };
ElementContextStack.Push(CpaStackData);
ParserContext.PushScope();
@@ -4562,8 +4568,10 @@ private void ResolveContentProperty(string contentPropertyName,
Type propertyBaseType = null;
// Push a frame for GetPropertyComplex()
- ElementContextStackData elementContextStackData = new ElementContextStackData();
- elementContextStackData.ContextType = ElementContextType.Default;
+ ElementContextStackData elementContextStackData = new ElementContextStackData
+ {
+ ContextType = ElementContextType.Default
+ };
ElementContextStack.Push(elementContextStackData);
bool resolved = GetPropertyComplex(elementType.Name, contentPropertyName, namespaceUri,
diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs
index 6d57d6f6d8e..ff7749ad817 100644
--- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs
+++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlStyleSerializer.cs
@@ -55,9 +55,11 @@ internal override void ConvertXamlToBaml (
XamlNode xamlNode,
BamlRecordWriter bamlWriter)
{
- StyleXamlParser styleParser = new StyleXamlParser(tokenReader, context);
- styleParser.BamlRecordWriter = bamlWriter;
- styleParser.ParserHooks = _parserHooks;
+ StyleXamlParser styleParser = new StyleXamlParser(tokenReader, context)
+ {
+ BamlRecordWriter = bamlWriter,
+ ParserHooks = _parserHooks
+ };
// Process the xamlNode that is passed in so that the