From d25b422a93ed8e2cc26f77251a7f3c224f4d3dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9=20Larivi=C3=A8re?= Date: Mon, 18 Feb 2019 11:03:31 +0100 Subject: [PATCH] Add SizeChangedEventArgs --- src/Fabulous.Core/Xamarin.Forms.Core.fs | 242 ++++++++++++------------ src/Fabulous.CustomControls/Controls.fs | 9 +- tools/Generator/Xamarin.Forms.Core.json | 4 +- 3 files changed, 131 insertions(+), 124 deletions(-) diff --git a/src/Fabulous.Core/Xamarin.Forms.Core.fs b/src/Fabulous.Core/Xamarin.Forms.Core.fs index ef9c0e05a..3ac38e56f 100644 --- a/src/Fabulous.Core/Xamarin.Forms.Core.fs +++ b/src/Fabulous.Core/Xamarin.Forms.Core.fs @@ -438,7 +438,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -508,7 +508,7 @@ type ViewBuilders() = match childrenReordered with None -> () | Some v -> attribBuilder.Add(ViewAttributes.ChildrenReorderedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(v)) match measureInvalidated with None -> () | Some v -> attribBuilder.Add(ViewAttributes.MeasureInvalidatedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(v)) match focused with None -> () | Some v -> attribBuilder.Add(ViewAttributes.FocusedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(v)) - match sizeChanged with None -> () | Some v -> attribBuilder.Add(ViewAttributes.SizeChangedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(v)) + match sizeChanged with None -> () | Some v -> attribBuilder.Add(ViewAttributes.SizeChangedAttribKey, (fun f -> System.EventHandler(fun sender _args -> let visualElement = sender :?> Xamarin.Forms.VisualElement in f (Fabulous.CustomControls.SizeChangedEventArgs(visualElement.Width, visualElement.Height))))(v)) match unfocused with None -> () | Some v -> attribBuilder.Add(ViewAttributes.UnfocusedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(v)) attribBuilder @@ -889,7 +889,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -972,7 +972,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -1087,7 +1087,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -1636,7 +1636,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -1727,7 +1727,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -1818,7 +1818,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -1909,7 +1909,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -1999,7 +1999,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2076,7 +2076,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2166,7 +2166,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2257,7 +2257,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2354,7 +2354,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2505,7 +2505,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2612,7 +2612,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2836,7 +2836,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -2949,7 +2949,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3200,7 +3200,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3304,7 +3304,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3406,7 +3406,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3500,7 +3500,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3616,7 +3616,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3710,7 +3710,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -3816,7 +3816,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4087,7 +4087,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4202,7 +4202,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4386,7 +4386,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4554,7 +4554,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4651,7 +4651,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4747,7 +4747,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4840,7 +4840,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -4960,7 +4960,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5059,7 +5059,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5263,7 +5263,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5361,7 +5361,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5422,7 +5422,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5514,7 +5514,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5598,7 +5598,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5693,7 +5693,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5827,7 +5827,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -5924,7 +5924,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6058,7 +6058,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6156,7 +6156,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6264,7 +6264,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6360,7 +6360,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6465,7 +6465,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6566,7 +6566,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6782,7 +6782,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6881,7 +6881,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -6958,7 +6958,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -7057,7 +7057,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -7263,7 +7263,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -7378,7 +7378,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -7660,7 +7660,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -7941,7 +7941,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -8177,7 +8177,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -8281,7 +8281,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -8388,7 +8388,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -8734,7 +8734,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -8839,7 +8839,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -8934,7 +8934,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9066,7 +9066,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9164,7 +9164,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9362,7 +9362,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9464,7 +9464,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9572,7 +9572,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9680,7 +9680,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9870,7 +9870,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -9980,7 +9980,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -10116,7 +10116,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -10222,7 +10222,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -10320,7 +10320,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -10427,7 +10427,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -10591,7 +10591,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -11237,7 +11237,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -11567,7 +11567,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -11691,7 +11691,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -12003,7 +12003,7 @@ type ViewBuilders() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13013,7 +13013,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13092,7 +13092,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13273,7 +13273,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13360,7 +13360,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13446,7 +13446,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13532,7 +13532,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13625,7 +13625,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13728,7 +13728,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13837,7 +13837,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -13937,7 +13937,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14027,7 +14027,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14117,7 +14117,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14247,7 +14247,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14351,7 +14351,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14444,7 +14444,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14533,7 +14533,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14628,7 +14628,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14722,7 +14722,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14810,7 +14810,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14901,7 +14901,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -14994,7 +14994,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15088,7 +15088,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15180,7 +15180,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15277,7 +15277,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15372,7 +15372,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15467,7 +15467,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15578,7 +15578,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15721,7 +15721,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15821,7 +15821,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -15958,7 +15958,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16049,7 +16049,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16143,7 +16143,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16241,7 +16241,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16345,7 +16345,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16451,7 +16451,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16553,7 +16553,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16656,7 +16656,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -16903,7 +16903,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -17023,7 +17023,7 @@ type View() = ?childrenReordered: System.EventArgs -> unit, ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, - ?sizeChanged: System.EventArgs -> unit, + ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?classId: string, ?styleId: string, @@ -17193,7 +17193,7 @@ module ViewElementExtensions = member x.Focused(value: Xamarin.Forms.FocusEventArgs -> unit) = x.WithAttribute(ViewAttributes.FocusedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(value)) /// Adjusts the SizeChanged property in the visual element - member x.SizeChanged(value: System.EventArgs -> unit) = x.WithAttribute(ViewAttributes.SizeChangedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(value)) + member x.SizeChanged(value: Fabulous.CustomControls.SizeChangedEventArgs -> unit) = x.WithAttribute(ViewAttributes.SizeChangedAttribKey, (fun f -> System.EventHandler(fun sender _args -> let visualElement = sender :?> Xamarin.Forms.VisualElement in f (Fabulous.CustomControls.SizeChangedEventArgs(visualElement.Width, visualElement.Height))))(value)) /// Adjusts the Unfocused property in the visual element member x.Unfocused(value: Xamarin.Forms.FocusEventArgs -> unit) = x.WithAttribute(ViewAttributes.UnfocusedAttribKey, (fun f -> System.EventHandler(fun _sender args -> f args))(value)) @@ -17816,7 +17816,7 @@ module ViewElementExtensions = ?rotationY: double, ?scale: double, ?style: Xamarin.Forms.Style, ?styleClass: obj, ?translationX: double, ?translationY: double, ?widthRequest: double, ?resources: (string * obj) list, ?styles: Xamarin.Forms.Style list, ?styleSheets: Xamarin.Forms.StyleSheets.StyleSheet list, ?isTabStop: bool, ?scaleX: double, ?scaleY: double, ?tabIndex: int, ?childrenReordered: System.EventArgs -> unit, - ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, ?sizeChanged: System.EventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?horizontalOptions: Xamarin.Forms.LayoutOptions, + ?measureInvalidated: System.EventArgs -> unit, ?focused: Xamarin.Forms.FocusEventArgs -> unit, ?sizeChanged: Fabulous.CustomControls.SizeChangedEventArgs -> unit, ?unfocused: Xamarin.Forms.FocusEventArgs -> unit, ?horizontalOptions: Xamarin.Forms.LayoutOptions, ?verticalOptions: Xamarin.Forms.LayoutOptions, ?margin: obj, ?gestureRecognizers: ViewElement list, ?touchPoints: int, ?panUpdated: Xamarin.Forms.PanUpdatedEventArgs -> unit, ?command: unit -> unit, ?numberOfTapsRequired: int, ?numberOfClicksRequired: int, ?buttons: Xamarin.Forms.ButtonsMask, ?isPinching: bool, ?pinchUpdated: Xamarin.Forms.PinchGestureUpdatedEventArgs -> unit, ?swipeGestureRecognizerDirection: Xamarin.Forms.SwipeDirection, ?threshold: System.UInt32, ?swiped: Xamarin.Forms.SwipedEventArgs -> unit, ?color: Xamarin.Forms.Color, @@ -18163,7 +18163,7 @@ module ViewElementExtensions = /// Adjusts the Focused property in the visual element let focused (value: Xamarin.Forms.FocusEventArgs -> unit) (x: ViewElement) = x.Focused(value) /// Adjusts the SizeChanged property in the visual element - let sizeChanged (value: System.EventArgs -> unit) (x: ViewElement) = x.SizeChanged(value) + let sizeChanged (value: Fabulous.CustomControls.SizeChangedEventArgs -> unit) (x: ViewElement) = x.SizeChanged(value) /// Adjusts the Unfocused property in the visual element let unfocused (value: Xamarin.Forms.FocusEventArgs -> unit) (x: ViewElement) = x.Unfocused(value) /// Adjusts the HorizontalOptions property in the visual element diff --git a/src/Fabulous.CustomControls/Controls.fs b/src/Fabulous.CustomControls/Controls.fs index a02c62113..ee4e2ce9c 100644 --- a/src/Fabulous.CustomControls/Controls.fs +++ b/src/Fabulous.CustomControls/Controls.fs @@ -21,4 +21,11 @@ type CustomEntryCell() as self = if args.PropertyName = "Text" then textChanged.Trigger(self, TextChangedEventArgs(oldValue, self.Text))) - [] member __.TextChanged = textChanged.Publish \ No newline at end of file + [] member __.TextChanged = textChanged.Publish + +/// EventArgs for the SizeChanged event +type SizeChangedEventArgs(width: float, height: float) = + inherit EventArgs() + + member __.Width = width + member __.Height = height \ No newline at end of file diff --git a/tools/Generator/Xamarin.Forms.Core.json b/tools/Generator/Xamarin.Forms.Core.json index 9bdbfd0ba..1a0fe1814 100644 --- a/tools/Generator/Xamarin.Forms.Core.json +++ b/tools/Generator/Xamarin.Forms.Core.json @@ -177,8 +177,8 @@ { "name": "SizeChanged", "defaultValue": "null", - "inputType": "System.EventArgs -> unit", - "convToModel": "(fun f -> System.EventHandler(fun _sender args -> f args))" + "inputType": "Fabulous.CustomControls.SizeChangedEventArgs -> unit", + "convToModel": "(fun f -> System.EventHandler(fun sender _args -> let visualElement = sender :?> Xamarin.Forms.VisualElement in f (Fabulous.CustomControls.SizeChangedEventArgs(visualElement.Width, visualElement.Height))))" }, { "name": "Unfocused",