Skip to content

Commit 8f44ef0

Browse files
Run MilCodeGen for PresentationCore
Contributes to #10429
1 parent 1f724a4 commit 8f44ef0

File tree

300 files changed

+3854
-1024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+3854
-1024
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -11,7 +11,6 @@
1111

1212
using MS.Internal;
1313
using MS.Internal.KnownBoxes;
14-
using MS.Internal.PresentationCore;
1514
using MS.Utility;
1615
using System.ComponentModel;
1716
using System.Windows.Input;
@@ -591,7 +590,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
591590
EventHandlersStoreField.ClearValue(this);
592591
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
593592
}
594-
}
593+
594+
}
595595
}
596596

597597
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
// Please see MilCodeGen.html for more information.
1010
//
1111

12+
using System.Collections;
1213
using System.Windows.Media;
1314
using System.Windows.Media.Animation;
14-
// These types are aliased to match the unamanaged names used in interop
15+
using MS.Utility;
1516

1617
namespace System.Windows
1718
{
19+
20+
1821
sealed partial class TextDecoration : Animatable
1922
{
2023
//------------------------------------------------------
@@ -259,8 +262,7 @@ static TextDecoration()
259262
// We check our static default fields which are of type Freezable
260263
// to make sure that they are not mutable, otherwise we will throw
261264
// if these get touched by more than one thread in the lifetime
262-
// of your app. (Windows OS
263-
265+
// of your app.
264266

265267

266268
// Initializations
@@ -312,6 +314,8 @@ static TextDecoration()
312314
/* coerceValueCallback */ null);
313315
}
314316

317+
318+
315319
#endregion Constructors
316320
}
317321
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
//
6+
//
57
// This file was generated, please do not edit it directly.
68
//
79
// Please see MilCodeGen.html for more information.
10+
//
811

912
using System.Collections;
13+
using System.Windows.Media;
1014
using System.Windows.Media.Animation;
1115
using MS.Utility;
1216

13-
// These types are aliased to match the unamanaged names used in interop
14-
1517
namespace System.Windows
1618
{
1719
/// <summary>
1820
/// A collection of TextDecoration objects.
1921
/// </summary>
2022

21-
2223
public sealed partial class TextDecorationCollection : Animatable, IList, IList<TextDecoration>
2324
{
2425
//------------------------------------------------------
@@ -194,7 +195,7 @@ internal void RemoveAtWithoutFiringPublicEvents(int index)
194195
{
195196
WritePreamble();
196197

197-
TextDecoration oldValue = _collection[index];
198+
TextDecoration oldValue = _collection[ index ];
198199

199200
OnFreezablePropertyChanged(oldValue, null);
200201

@@ -229,12 +230,15 @@ public TextDecoration this[int index]
229230

230231
WritePreamble();
231232

232-
if (!Object.ReferenceEquals(_collection[index], value))
233+
if (!Object.ReferenceEquals(_collection[ index ], value))
233234
{
234-
TextDecoration oldValue = _collection[index];
235+
236+
TextDecoration oldValue = _collection[ index ];
235237
OnFreezablePropertyChanged(oldValue, value);
236238

237-
_collection[index] = value;
239+
_collection[ index ] = value;
240+
241+
238242
}
239243

240244

@@ -471,10 +475,10 @@ internal override void OnInheritanceContextChangedCore(EventArgs args)
471475
{
472476
base.OnInheritanceContextChangedCore(args);
473477

474-
for (int i = 0; i < this.Count; i++)
478+
for (int i=0; i<this.Count; i++)
475479
{
476480
DependencyObject inheritanceChild = _collection[i];
477-
if (inheritanceChild != null && inheritanceChild.InheritanceContext == this)
481+
if (inheritanceChild!= null && inheritanceChild.InheritanceContext == this)
478482
{
479483
inheritanceChild.OnInheritanceContextChanged(args);
480484
}
@@ -494,7 +498,7 @@ private TextDecoration Cast(object value)
494498
throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration"));
495499
}
496500

497-
return (TextDecoration)value;
501+
return (TextDecoration) value;
498502
}
499503

500504
// IList.Add returns int and IList<T>.Add does not. This
@@ -567,7 +571,7 @@ protected override Freezable CreateInstanceCore()
567571
/// </summary>
568572
protected override void CloneCore(Freezable source)
569573
{
570-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
574+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
571575

572576
base.CloneCore(source);
573577

@@ -577,17 +581,19 @@ protected override void CloneCore(Freezable source)
577581

578582
for (int i = 0; i < count; i++)
579583
{
580-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].Clone();
584+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].Clone();
581585
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
582586
_collection.Add(newValue);
587+
583588
}
589+
584590
}
585591
/// <summary>
586592
/// Implementation of Freezable.CloneCurrentValueCore()
587593
/// </summary>
588594
protected override void CloneCurrentValueCore(Freezable source)
589595
{
590-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
596+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
591597

592598
base.CloneCurrentValueCore(source);
593599

@@ -597,17 +603,19 @@ protected override void CloneCurrentValueCore(Freezable source)
597603

598604
for (int i = 0; i < count; i++)
599605
{
600-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].CloneCurrentValue();
606+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].CloneCurrentValue();
601607
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
602608
_collection.Add(newValue);
609+
603610
}
611+
604612
}
605613
/// <summary>
606614
/// Implementation of Freezable.GetAsFrozenCore()
607615
/// </summary>
608616
protected override void GetAsFrozenCore(Freezable source)
609617
{
610-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
618+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
611619

612620
base.GetAsFrozenCore(source);
613621

@@ -617,17 +625,19 @@ protected override void GetAsFrozenCore(Freezable source)
617625

618626
for (int i = 0; i < count; i++)
619627
{
620-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetAsFrozen();
628+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetAsFrozen();
621629
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
622630
_collection.Add(newValue);
631+
623632
}
633+
624634
}
625635
/// <summary>
626636
/// Implementation of Freezable.GetCurrentValueAsFrozenCore()
627637
/// </summary>
628638
protected override void GetCurrentValueAsFrozenCore(Freezable source)
629639
{
630-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
640+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
631641

632642
base.GetCurrentValueAsFrozenCore(source);
633643

@@ -637,10 +647,12 @@ protected override void GetCurrentValueAsFrozenCore(Freezable source)
637647

638648
for (int i = 0; i < count; i++)
639649
{
640-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
650+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
641651
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
642652
_collection.Add(newValue);
653+
643654
}
655+
644656
}
645657
/// <summary>
646658
/// Implementation of <see cref="System.Windows.Freezable.FreezeCore">Freezable.FreezeCore</see>.
@@ -745,6 +757,7 @@ internal Enumerator(TextDecorationCollection list)
745757

746758
void IDisposable.Dispose()
747759
{
760+
748761
}
749762

750763
/// <summary>
@@ -913,6 +926,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
913926
TextDecoration newValue = item;
914927
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
915928
_collection.Add(newValue);
929+
916930
}
917931

918932
needsItemValidation = false;
@@ -928,6 +942,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
928942
throw new System.ArgumentException(SR.Collection_NoNull);
929943
}
930944
OnFreezablePropertyChanged(/* oldValue = */ null, item);
945+
931946
}
932947
}
933948

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationLocation.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// Please see MilCodeGen.html for more information.
1010
//
1111

12-
#if PRESENTATION_CORE
13-
#else
14-
using SR=System.Windows.SR;
15-
#endif
1612

1713
namespace System.Windows
1814
{

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationUnit.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
// Please see MilCodeGen.html for more information.
1010
//
1111

12-
#if PRESENTATION_CORE
13-
#else
14-
using SR=System.Windows.SR;
15-
#endif
1612

1713
namespace System.Windows
1814
{

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -11,7 +11,6 @@
1111

1212
using MS.Internal;
1313
using MS.Internal.KnownBoxes;
14-
using MS.Internal.PresentationCore;
1514
using MS.Utility;
1615
using System.ComponentModel;
1716
using System.Windows.Input;
@@ -591,7 +590,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
591590
EventHandlersStoreField.ClearValue(this);
592591
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
593592
}
594-
}
593+
594+
}
595595
}
596596

597597
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -10,10 +10,11 @@
1010
//
1111

1212
using MS.Internal;
13-
using MS.Internal.PresentationCore;
13+
using MS.Internal.KnownBoxes;
1414
using MS.Utility;
1515
using System.ComponentModel;
1616
using System.Windows.Input;
17+
using System.Windows.Media.Animation;
1718

1819
namespace System.Windows
1920
{
@@ -395,7 +396,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
395396
EventHandlersStoreField.ClearValue(this);
396397
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
397398
}
398-
}
399+
400+
}
399401
}
400402

401403
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Animatable.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
//
6+
//
57
// This file was generated, please do not edit it directly.
68
//
79
// This file was generated from the codegen template located at:
810
// wpf\src\Graphics\codegen\mcg\generators\AnimatableTemplate.cs
911
//
1012
// Please see MilCodeGen.html for more information.
13+
//
14+
15+
using System.Windows.Media.Animation;
1116

1217
namespace System.Windows.Media.Animation
1318
{

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationBase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -9,6 +9,8 @@
99
// Please see MilCodeGen.html for more information.
1010
//
1111

12+
using System.Windows.Media.Media3D;
13+
1214
namespace System.Windows.Media.Animation
1315
{
1416
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationUsingKeyFrames.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
//
6+
//
57
// This file was generated, please do not edit it directly.
8+
//
69
// Please see MilCodeGen.html for more information.
10+
//
711

12+
using MS.Internal.KnownBoxes;
813
using System.Collections;
914
using System.ComponentModel;
1015
using System.Windows.Markup;
11-
16+
using System.Windows.Media.Media3D;
1217
using MS.Internal.PresentationCore;
1318

1419
namespace System.Windows.Media.Animation

0 commit comments

Comments
 (0)