Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -11,7 +11,6 @@

using MS.Internal;
using MS.Internal.KnownBoxes;
using MS.Internal.PresentationCore;
using MS.Utility;
using System.ComponentModel;
using System.Windows.Input;
Expand Down Expand Up @@ -591,7 +590,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
EventHandlersStoreField.ClearValue(this);
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
}
}

}
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
// Please see MilCodeGen.html for more information.
//

using System.Collections;
using System.Windows.Media;
using System.Windows.Media.Animation;
// These types are aliased to match the unamanaged names used in interop
using MS.Utility;

namespace System.Windows
{


sealed partial class TextDecoration : Animatable
{
//------------------------------------------------------
Expand Down Expand Up @@ -259,8 +262,7 @@ static TextDecoration()
// We check our static default fields which are of type Freezable
// to make sure that they are not mutable, otherwise we will throw
// if these get touched by more than one thread in the lifetime
// of your app. (Windows OS

// of your app.


// Initializations
Expand Down Expand Up @@ -312,6 +314,8 @@ static TextDecoration()
/* coerceValueCallback */ null);
}



#endregion Constructors
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
// This file was generated, please do not edit it directly.
//
// Please see MilCodeGen.html for more information.
//

using System.Collections;
using System.Windows.Media;
using System.Windows.Media.Animation;
using MS.Utility;

// These types are aliased to match the unamanaged names used in interop

namespace System.Windows
{
/// <summary>
/// A collection of TextDecoration objects.
/// </summary>


public sealed partial class TextDecorationCollection : Animatable, IList, IList<TextDecoration>
{
//------------------------------------------------------
Expand Down Expand Up @@ -194,7 +195,7 @@ internal void RemoveAtWithoutFiringPublicEvents(int index)
{
WritePreamble();

TextDecoration oldValue = _collection[index];
TextDecoration oldValue = _collection[ index ];

OnFreezablePropertyChanged(oldValue, null);

Expand Down Expand Up @@ -229,12 +230,15 @@ public TextDecoration this[int index]

WritePreamble();

if (!Object.ReferenceEquals(_collection[index], value))
if (!Object.ReferenceEquals(_collection[ index ], value))
{
TextDecoration oldValue = _collection[index];

TextDecoration oldValue = _collection[ index ];
OnFreezablePropertyChanged(oldValue, value);

_collection[index] = value;
_collection[ index ] = value;


}


Expand Down Expand Up @@ -471,10 +475,10 @@ internal override void OnInheritanceContextChangedCore(EventArgs args)
{
base.OnInheritanceContextChangedCore(args);

for (int i = 0; i < this.Count; i++)
for (int i=0; i<this.Count; i++)
{
DependencyObject inheritanceChild = _collection[i];
if (inheritanceChild != null && inheritanceChild.InheritanceContext == this)
if (inheritanceChild!= null && inheritanceChild.InheritanceContext == this)
{
inheritanceChild.OnInheritanceContextChanged(args);
}
Expand All @@ -494,7 +498,7 @@ private TextDecoration Cast(object value)
throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration"));
}

return (TextDecoration)value;
return (TextDecoration) value;
}

// IList.Add returns int and IList<T>.Add does not. This
Expand Down Expand Up @@ -567,7 +571,7 @@ protected override Freezable CreateInstanceCore()
/// </summary>
protected override void CloneCore(Freezable source)
{
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;

base.CloneCore(source);

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

for (int i = 0; i < count; i++)
{
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].Clone();
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].Clone();
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
_collection.Add(newValue);

}

}
/// <summary>
/// Implementation of Freezable.CloneCurrentValueCore()
/// </summary>
protected override void CloneCurrentValueCore(Freezable source)
{
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;

base.CloneCurrentValueCore(source);

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

for (int i = 0; i < count; i++)
{
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].CloneCurrentValue();
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].CloneCurrentValue();
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
_collection.Add(newValue);

}

}
/// <summary>
/// Implementation of Freezable.GetAsFrozenCore()
/// </summary>
protected override void GetAsFrozenCore(Freezable source)
{
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;

base.GetAsFrozenCore(source);

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

for (int i = 0; i < count; i++)
{
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetAsFrozen();
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetAsFrozen();
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
_collection.Add(newValue);

}

}
/// <summary>
/// Implementation of Freezable.GetCurrentValueAsFrozenCore()
/// </summary>
protected override void GetCurrentValueAsFrozenCore(Freezable source)
{
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;

base.GetCurrentValueAsFrozenCore(source);

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

for (int i = 0; i < count; i++)
{
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
_collection.Add(newValue);

}

}
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.FreezeCore">Freezable.FreezeCore</see>.
Expand Down Expand Up @@ -745,6 +757,7 @@ internal Enumerator(TextDecorationCollection list)

void IDisposable.Dispose()
{

}

/// <summary>
Expand Down Expand Up @@ -913,6 +926,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
TextDecoration newValue = item;
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
_collection.Add(newValue);

}

needsItemValidation = false;
Expand All @@ -928,6 +942,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
throw new System.ArgumentException(SR.Collection_NoNull);
}
OnFreezablePropertyChanged(/* oldValue = */ null, item);

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
// Please see MilCodeGen.html for more information.
//

#if PRESENTATION_CORE
#else
using SR=System.Windows.SR;
#endif

namespace System.Windows
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
// Please see MilCodeGen.html for more information.
//

#if PRESENTATION_CORE
#else
using SR=System.Windows.SR;
#endif

namespace System.Windows
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -11,7 +11,6 @@

using MS.Internal;
using MS.Internal.KnownBoxes;
using MS.Internal.PresentationCore;
using MS.Utility;
using System.ComponentModel;
using System.Windows.Input;
Expand Down Expand Up @@ -591,7 +590,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
EventHandlersStoreField.ClearValue(this);
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
}
}

}
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -10,10 +10,11 @@
//

using MS.Internal;
using MS.Internal.PresentationCore;
using MS.Internal.KnownBoxes;
using MS.Utility;
using System.ComponentModel;
using System.Windows.Input;
using System.Windows.Media.Animation;

namespace System.Windows
{
Expand Down Expand Up @@ -395,7 +396,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
EventHandlersStoreField.ClearValue(this);
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
}
}

}
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
// This file was generated, please do not edit it directly.
//
// This file was generated from the codegen template located at:
// wpf\src\Graphics\codegen\mcg\generators\AnimatableTemplate.cs
//
// Please see MilCodeGen.html for more information.
//

using System.Windows.Media.Animation;

namespace System.Windows.Media.Animation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,6 +9,8 @@
// Please see MilCodeGen.html for more information.
//

using System.Windows.Media.Media3D;

namespace System.Windows.Media.Animation
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//
// This file was generated, please do not edit it directly.
//
// Please see MilCodeGen.html for more information.
//

using MS.Internal.KnownBoxes;
using System.Collections;
using System.ComponentModel;
using System.Windows.Markup;

using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;

namespace System.Windows.Media.Animation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

using MS.Internal.KnownBoxes;
using System.Globalization;
using System.Windows.Media.Media3D;

using MS.Internal.PresentationCore;

Expand Down
Loading