30 строки
682 B
C#
30 строки
682 B
C#
using System;
|
|
|
|
#if __MOBILE__
|
|
namespace Xamarin.Forms.Platform.iOS
|
|
#else
|
|
|
|
namespace Xamarin.Forms.Platform.MacOS
|
|
#endif
|
|
{
|
|
public class VisualElementChangedEventArgs : ElementChangedEventArgs<VisualElement>
|
|
{
|
|
public VisualElementChangedEventArgs(VisualElement oldElement, VisualElement newElement)
|
|
: base(oldElement, newElement)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class ElementChangedEventArgs<TElement> : EventArgs where TElement : Element
|
|
{
|
|
public ElementChangedEventArgs(TElement oldElement, TElement newElement)
|
|
{
|
|
OldElement = oldElement;
|
|
NewElement = newElement;
|
|
}
|
|
|
|
public TElement NewElement { get; private set; }
|
|
|
|
public TElement OldElement { get; private set; }
|
|
}
|
|
} |