diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/ElementChangedEventArgs.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/ElementChangedEventArgs.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ElementChangedEventArgs.cs b/Xamarin.Forms.Platform.iOS/ElementChangedEventArgs.cs new file mode 100644 index 00000000..560cfd1c --- /dev/null +++ b/Xamarin.Forms.Platform.iOS/ElementChangedEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace Xamarin.Forms.Platform.iOS +{ + 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; } + } +}
\ No newline at end of file |