diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AccessText_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AccessText_MarkupExtensions.g.cs index 3bcef33..0156417 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AccessText_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AccessText_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class AccessText_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AdornerLayer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AdornerLayer_MarkupExtensions.g.cs index 2b27de8..ffdd3ec 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AdornerLayer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AdornerLayer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class AdornerLayer_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animatable_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animatable_MarkupExtensions.g.cs index fbc13a8..43edaca 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animatable_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animatable_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Animatable_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animation_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animation_MarkupExtensions.g.cs index c8a4878..7d26170 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animation_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Animation_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Animation_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Application_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Application_MarkupExtensions.g.cs index a995ce7..550802a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Application_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Application_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Application_MarkupExtensions { @@ -88,22 +88,22 @@ public static T Name(this T control, TValue value, FuncValueConverter< // ResourcesChanged /*ActionToEventGenerator*/ - public static T OnResourcesChanged(this T control, Action action) where T : Avalonia.Application => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ResourcesChanged += h); +public static T OnResourcesChanged(this T control, Action action) where T : Avalonia.Application => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ResourcesChanged += h); // UrlsOpened /*ActionToEventGenerator*/ - public static T OnUrlsOpened(this T control, Action action) where T : Avalonia.Application => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.UrlsOpened += h); +public static T OnUrlsOpened(this T control, Action action) where T : Avalonia.Application => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.UrlsOpened += h); // ActualThemeVariantChanged /*ActionToEventGenerator*/ - public static T OnActualThemeVariantChanged(this T control, Action action) where T : Avalonia.Application => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ActualThemeVariantChanged += h); +public static T OnActualThemeVariantChanged(this T control, Action action) where T : Avalonia.Application => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ActualThemeVariantChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ArcSegment_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ArcSegment_MarkupExtensions.g.cs index 908e2c3..e4d5e15 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ArcSegment_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ArcSegment_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ArcSegment_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Arc_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Arc_MarkupExtensions.g.cs index db66b00..d6646dc 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Arc_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Arc_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Arc_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AutoCompleteBox_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AutoCompleteBox_MarkupExtensions.g.cs index 7ceea09..3dbd88b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AutoCompleteBox_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AutoCompleteBox_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class AutoCompleteBox_MarkupExtensions { @@ -479,57 +479,65 @@ public static T InnerRightContent(this T control, TValue value, FuncVa // TextChanged /*ActionToEventGenerator*/ - public static T OnTextChanged(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TextChanged += h); +public static T OnTextChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.AutoCompleteBox +{ + control.AddHandler(Avalonia.Controls.AutoCompleteBox.TextChangedEvent, (_, args) => action(args), routes); + return control; +} + // Populating /*ActionToEventGenerator*/ - public static T OnPopulating(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Populating += h); +public static T OnPopulating(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Populating += h); // Populated /*ActionToEventGenerator*/ - public static T OnPopulated(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Populated += h); +public static T OnPopulated(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Populated += h); // DropDownOpening /*ActionToEventGenerator*/ - public static T OnDropDownOpening(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownOpening += h); +public static T OnDropDownOpening(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownOpening += h); // DropDownOpened /*ActionToEventGenerator*/ - public static T OnDropDownOpened(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownOpened += h); +public static T OnDropDownOpened(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownOpened += h); // DropDownClosing /*ActionToEventGenerator*/ - public static T OnDropDownClosing(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownClosing += h); +public static T OnDropDownClosing(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownClosing += h); // DropDownClosed /*ActionToEventGenerator*/ - public static T OnDropDownClosed(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownClosed += h); +public static T OnDropDownClosed(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownClosed += h); // SelectionChanged /*ActionToEventGenerator*/ - public static T OnSelectionChanged(this T control, Action action) where T : Avalonia.Controls.AutoCompleteBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectionChanged += h); +public static T OnSelectionChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.AutoCompleteBox +{ + control.AddHandler(Avalonia.Controls.AutoCompleteBox.SelectionChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AvaloniaObject_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AvaloniaObject_MarkupExtensions.g.cs index d2256ba..1700868 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AvaloniaObject_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/AvaloniaObject_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class AvaloniaObject_MarkupExtensions { @@ -19,8 +19,8 @@ public static partial class AvaloniaObject_MarkupExtensions // PropertyChanged /*ActionToEventGenerator*/ - public static T OnPropertyChanged(this T control, Action action) where T : Avalonia.AvaloniaObject => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PropertyChanged += h); +public static T OnPropertyChanged(this T control, Action action) where T : Avalonia.AvaloniaObject => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PropertyChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BezierSegment_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BezierSegment_MarkupExtensions.g.cs index 72de1f3..d5805bb 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BezierSegment_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BezierSegment_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class BezierSegment_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BlurEffect_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BlurEffect_MarkupExtensions.g.cs index dc57039..3024afe 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BlurEffect_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/BlurEffect_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class BlurEffect_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Border_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Border_MarkupExtensions.g.cs index f96f075..c4df534 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Border_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Border_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Border_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Brush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Brush_MarkupExtensions.g.cs index 38f5b6a..c48eaba 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Brush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Brush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Brush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ButtonSpinner_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ButtonSpinner_MarkupExtensions.g.cs index a728f66..9ec9f86 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ButtonSpinner_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ButtonSpinner_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ButtonSpinner_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Button_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Button_MarkupExtensions.g.cs index 150fa84..d779205 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Button_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Button_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Button_MarkupExtensions { @@ -180,8 +180,12 @@ public static T Flyout(this T control, TValue value, FuncValueConverte // Click /*ActionToEventGenerator*/ - public static T OnClick(this T control, Action action) where T : Avalonia.Controls.Button => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Click += h); +public static T OnClick(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Button +{ + control.AddHandler(Avalonia.Controls.Button.ClickEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarButton_MarkupExtensions.g.cs index 3a40592..2604fef 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class CalendarButton_MarkupExtensions { @@ -19,15 +19,15 @@ public static partial class CalendarButton_MarkupExtensions // CalendarLeftMouseButtonDown /*ActionToEventGenerator*/ - public static Avalonia.Controls.Primitives.CalendarButton OnCalendarLeftMouseButtonDown(this Avalonia.Controls.Primitives.CalendarButton control, Action action) => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarLeftMouseButtonDown += h); +public static Avalonia.Controls.Primitives.CalendarButton OnCalendarLeftMouseButtonDown(this Avalonia.Controls.Primitives.CalendarButton control, Action action) => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarLeftMouseButtonDown += h); // CalendarLeftMouseButtonUp /*ActionToEventGenerator*/ - public static Avalonia.Controls.Primitives.CalendarButton OnCalendarLeftMouseButtonUp(this Avalonia.Controls.Primitives.CalendarButton control, Action action) => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarLeftMouseButtonUp += h); +public static Avalonia.Controls.Primitives.CalendarButton OnCalendarLeftMouseButtonUp(this Avalonia.Controls.Primitives.CalendarButton control, Action action) => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarLeftMouseButtonUp += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDatePicker_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDatePicker_MarkupExtensions.g.cs index fb79716..15a1b10 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDatePicker_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDatePicker_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class CalendarDatePicker_MarkupExtensions { @@ -341,29 +341,29 @@ public static T VerticalContentAlignment(this T control, TValue value, // CalendarClosed /*ActionToEventGenerator*/ - public static T OnCalendarClosed(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarClosed += h); +public static T OnCalendarClosed(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarClosed += h); // CalendarOpened /*ActionToEventGenerator*/ - public static T OnCalendarOpened(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarOpened += h); +public static T OnCalendarOpened(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarOpened += h); // DateValidationError /*ActionToEventGenerator*/ - public static T OnDateValidationError(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DateValidationError += h); +public static T OnDateValidationError(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DateValidationError += h); // SelectedDateChanged /*ActionToEventGenerator*/ - public static T OnSelectedDateChanged(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedDateChanged += h); +public static T OnSelectedDateChanged(this T control, Action action) where T : Avalonia.Controls.CalendarDatePicker => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedDateChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDayButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDayButton_MarkupExtensions.g.cs index c82a256..6bc78e5 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDayButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarDayButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class CalendarDayButton_MarkupExtensions { @@ -19,15 +19,15 @@ public static partial class CalendarDayButton_MarkupExtensions // CalendarDayButtonMouseDown /*ActionToEventGenerator*/ - public static Avalonia.Controls.Primitives.CalendarDayButton OnCalendarDayButtonMouseDown(this Avalonia.Controls.Primitives.CalendarDayButton control, Action action) => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarDayButtonMouseDown += h); +public static Avalonia.Controls.Primitives.CalendarDayButton OnCalendarDayButtonMouseDown(this Avalonia.Controls.Primitives.CalendarDayButton control, Action action) => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarDayButtonMouseDown += h); // CalendarDayButtonMouseUp /*ActionToEventGenerator*/ - public static Avalonia.Controls.Primitives.CalendarDayButton OnCalendarDayButtonMouseUp(this Avalonia.Controls.Primitives.CalendarDayButton control, Action action) => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarDayButtonMouseUp += h); +public static Avalonia.Controls.Primitives.CalendarDayButton OnCalendarDayButtonMouseUp(this Avalonia.Controls.Primitives.CalendarDayButton control, Action action) => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CalendarDayButtonMouseUp += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarItem_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarItem_MarkupExtensions.g.cs index a55c82d..19e151f 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarItem_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CalendarItem_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class CalendarItem_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Calendar_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Calendar_MarkupExtensions.g.cs index bd6d4bf..57e2672 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Calendar_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Calendar_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Calendar_MarkupExtensions { @@ -226,22 +226,22 @@ public static T DisplayDateEnd(this T control, TValue value, FuncValue // SelectedDatesChanged /*ActionToEventGenerator*/ - public static T OnSelectedDatesChanged(this T control, Action action) where T : Avalonia.Controls.Calendar => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedDatesChanged += h); +public static T OnSelectedDatesChanged(this T control, Action action) where T : Avalonia.Controls.Calendar => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedDatesChanged += h); // DisplayDateChanged /*ActionToEventGenerator*/ - public static T OnDisplayDateChanged(this T control, Action action) where T : Avalonia.Controls.Calendar => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DisplayDateChanged += h); +public static T OnDisplayDateChanged(this T control, Action action) where T : Avalonia.Controls.Calendar => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DisplayDateChanged += h); // DisplayModeChanged /*ActionToEventGenerator*/ - public static T OnDisplayModeChanged(this T control, Action action) where T : Avalonia.Controls.Calendar => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DisplayModeChanged += h); +public static T OnDisplayModeChanged(this T control, Action action) where T : Avalonia.Controls.Calendar => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DisplayModeChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Canvas_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Canvas_MarkupExtensions.g.cs index 203c50b..7b47541 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Canvas_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Canvas_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Canvas_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Carousel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Carousel_MarkupExtensions.g.cs index 41ca05d..be8f3f2 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Carousel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Carousel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Carousel_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ColumnDefinition_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ColumnDefinition_MarkupExtensions.g.cs index 72e3836..8f9dfab 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ColumnDefinition_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ColumnDefinition_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ColumnDefinition_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CombinedGeometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CombinedGeometry_MarkupExtensions.g.cs index 2b9989d..4a65ef5 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CombinedGeometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CombinedGeometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class CombinedGeometry_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ComboBox_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ComboBox_MarkupExtensions.g.cs index 81e2665..d5d09b2 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ComboBox_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ComboBox_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ComboBox_MarkupExtensions { @@ -180,15 +180,15 @@ public static T SelectionBoxItemTemplate(this T control, TValue value, // DropDownClosed /*ActionToEventGenerator*/ - public static T OnDropDownClosed(this T control, Action action) where T : Avalonia.Controls.ComboBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownClosed += h); +public static T OnDropDownClosed(this T control, Action action) where T : Avalonia.Controls.ComboBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownClosed += h); // DropDownOpened /*ActionToEventGenerator*/ - public static T OnDropDownOpened(this T control, Action action) where T : Avalonia.Controls.ComboBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownOpened += h); +public static T OnDropDownOpened(this T control, Action action) where T : Avalonia.Controls.ComboBox => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DropDownOpened += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ConicGradientBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ConicGradientBrush_MarkupExtensions.g.cs index 1d7ff42..45307fe 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ConicGradientBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ConicGradientBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ConicGradientBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentControl_MarkupExtensions.g.cs index c86463e..cfea1a7 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ContentControl_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentPresenter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentPresenter_MarkupExtensions.g.cs index 952baa0..a57b39a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentPresenter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContentPresenter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ContentPresenter_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContextMenu_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContextMenu_MarkupExtensions.g.cs index ecd3cbb..f01d91b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContextMenu_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ContextMenu_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ContextMenu_MarkupExtensions { @@ -226,15 +226,15 @@ public static T PlacementTarget(this T control, TValue value, FuncValu // Opening /*ActionToEventGenerator*/ - public static T OnOpening(this T control, Action action) where T : Avalonia.Controls.ContextMenu => - control._setEvent((System.ComponentModel.CancelEventHandler) ((arg0, arg1) => action(arg1)), h => control.Opening += h); +public static T OnOpening(this T control, Action action) where T : Avalonia.Controls.ContextMenu => + control._setEvent((System.ComponentModel.CancelEventHandler) ((arg0, arg1) => action(arg1)), h => control.Opening += h); // Closing /*ActionToEventGenerator*/ - public static T OnClosing(this T control, Action action) where T : Avalonia.Controls.ContextMenu => - control._setEvent((System.ComponentModel.CancelEventHandler) ((arg0, arg1) => action(arg1)), h => control.Closing += h); +public static T OnClosing(this T control, Action action) where T : Avalonia.Controls.ContextMenu => + control._setEvent((System.ComponentModel.CancelEventHandler) ((arg0, arg1) => action(arg1)), h => control.Closing += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Control_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Control_MarkupExtensions.g.cs index af719dc..53568e1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Control_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Control_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Control_MarkupExtensions { @@ -111,29 +111,45 @@ public static T ContextFlyout(this T control, TValue value, FuncValueC // ContextRequested /*ActionToEventGenerator*/ - public static T OnContextRequested(this T control, Action action) where T : Avalonia.Controls.Control => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContextRequested += h); +public static T OnContextRequested(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Control +{ + control.AddHandler(Avalonia.Controls.Control.ContextRequestedEvent, (_, args) => action(args), routes); + return control; +} + // Loaded /*ActionToEventGenerator*/ - public static T OnLoaded(this T control, Action action) where T : Avalonia.Controls.Control => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Loaded += h); +public static T OnLoaded(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Control +{ + control.AddHandler(Avalonia.Controls.Control.LoadedEvent, (_, args) => action(args), routes); + return control; +} + // Unloaded /*ActionToEventGenerator*/ - public static T OnUnloaded(this T control, Action action) where T : Avalonia.Controls.Control => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Unloaded += h); +public static T OnUnloaded(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Control +{ + control.AddHandler(Avalonia.Controls.Control.UnloadedEvent, (_, args) => action(args), routes); + return control; +} + // SizeChanged /*ActionToEventGenerator*/ - public static T OnSizeChanged(this T control, Action action) where T : Avalonia.Controls.Control => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SizeChanged += h); +public static T OnSizeChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Control +{ + control.AddHandler(Avalonia.Controls.Control.SizeChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CroppedBitmap_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CroppedBitmap_MarkupExtensions.g.cs index 12a64b9..d57bbc2 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CroppedBitmap_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/CroppedBitmap_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class CroppedBitmap_MarkupExtensions { @@ -76,8 +76,8 @@ public static T SourceRect(this T control, TValue value, FuncValueConv // Invalidated /*ActionToEventGenerator*/ - public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.Imaging.CroppedBitmap => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); +public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.Imaging.CroppedBitmap => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DashStyle_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DashStyle_MarkupExtensions.g.cs index efb771d..b48e4b1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DashStyle_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DashStyle_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DashStyle_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DataValidationErrors_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DataValidationErrors_MarkupExtensions.g.cs index 0ba2621..a908e7b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DataValidationErrors_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DataValidationErrors_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DataValidationErrors_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePickerPresenter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePickerPresenter_MarkupExtensions.g.cs index 444a24e..2e6eb8e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePickerPresenter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePickerPresenter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DatePickerPresenter_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePicker_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePicker_MarkupExtensions.g.cs index 610fe1b..30dc1b3 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePicker_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DatePicker_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DatePicker_MarkupExtensions { @@ -226,8 +226,8 @@ public static T SelectedDate(this T control, TValue value, FuncValueCo // SelectedDateChanged /*ActionToEventGenerator*/ - public static T OnSelectedDateChanged(this T control, Action action) where T : Avalonia.Controls.DatePicker => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedDateChanged += h); +public static T OnSelectedDateChanged(this T control, Action action) where T : Avalonia.Controls.DatePicker => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedDateChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DateTimePickerPanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DateTimePickerPanel_MarkupExtensions.g.cs index 5545526..ff4578a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DateTimePickerPanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DateTimePickerPanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DateTimePickerPanel_MarkupExtensions { @@ -111,15 +111,15 @@ public static T ShouldLoop(this T control, TValue value, FuncValueConv // ScrollInvalidated /*ActionToEventGenerator*/ - public static T OnScrollInvalidated(this T control, Action action) where T : Avalonia.Controls.Primitives.DateTimePickerPanel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ScrollInvalidated += h); +public static T OnScrollInvalidated(this T control, Action action) where T : Avalonia.Controls.Primitives.DateTimePickerPanel => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ScrollInvalidated += h); // SelectionChanged /*ActionToEventGenerator*/ - public static T OnSelectionChanged(this T control, Action action) where T : Avalonia.Controls.Primitives.DateTimePickerPanel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectionChanged += h); +public static T OnSelectionChanged(this T control, Action action) where T : Avalonia.Controls.Primitives.DateTimePickerPanel => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectionChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Decorator_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Decorator_MarkupExtensions.g.cs index 12a7648..f584cb7 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Decorator_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Decorator_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Decorator_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DefinitionBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DefinitionBase_MarkupExtensions.g.cs index 1e90534..aef46c4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DefinitionBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DefinitionBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DefinitionBase_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DockPanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DockPanel_MarkupExtensions.g.cs index ca30821..572feb7 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DockPanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DockPanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DockPanel_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingBrush_MarkupExtensions.g.cs index 04b670a..02bed99 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DrawingBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingGroup_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingGroup_MarkupExtensions.g.cs index 166a25f..cccef6c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingGroup_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingGroup_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DrawingGroup_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingImage_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingImage_MarkupExtensions.g.cs index dbea877..012b602 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingImage_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DrawingImage_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DrawingImage_MarkupExtensions { @@ -42,8 +42,8 @@ public static T Drawing(this T control, TValue value, FuncValueConvert // Invalidated /*ActionToEventGenerator*/ - public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.DrawingImage => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); +public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.DrawingImage => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowDirectionEffect_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowDirectionEffect_MarkupExtensions.g.cs index 371982e..9da0e11 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowDirectionEffect_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowDirectionEffect_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DropShadowDirectionEffect_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffectBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffectBase_MarkupExtensions.g.cs index 31a5612..297acb8 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffectBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffectBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DropShadowEffectBase_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffect_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffect_MarkupExtensions.g.cs index 48a6393..1b3403c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffect_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/DropShadowEffect_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class DropShadowEffect_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Effect_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Effect_MarkupExtensions.g.cs index d3a1d05..fbfdd0e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Effect_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Effect_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Effect_MarkupExtensions { @@ -19,8 +19,8 @@ public static partial class Effect_MarkupExtensions // Invalidated /*ActionToEventGenerator*/ - public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.Effect => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); +public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.Effect => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/EllipseGeometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/EllipseGeometry_MarkupExtensions.g.cs index f9f475d..02cfb4c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/EllipseGeometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/EllipseGeometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class EllipseGeometry_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Expander_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Expander_MarkupExtensions.g.cs index a7d39f0..09a5c39 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Expander_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Expander_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Expander_MarkupExtensions { @@ -88,29 +88,45 @@ public static T IsExpanded(this T control, TValue value, FuncValueConv // Collapsed /*ActionToEventGenerator*/ - public static T OnCollapsed(this T control, Action action) where T : Avalonia.Controls.Expander => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Collapsed += h); +public static T OnCollapsed(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Expander +{ + control.AddHandler(Avalonia.Controls.Expander.CollapsedEvent, (_, args) => action(args), routes); + return control; +} + // Collapsing /*ActionToEventGenerator*/ - public static T OnCollapsing(this T control, Action action) where T : Avalonia.Controls.Expander => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Collapsing += h); +public static T OnCollapsing(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Expander +{ + control.AddHandler(Avalonia.Controls.Expander.CollapsingEvent, (_, args) => action(args), routes); + return control; +} + // Expanded /*ActionToEventGenerator*/ - public static T OnExpanded(this T control, Action action) where T : Avalonia.Controls.Expander => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Expanded += h); +public static T OnExpanded(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Expander +{ + control.AddHandler(Avalonia.Controls.Expander.ExpandedEvent, (_, args) => action(args), routes); + return control; +} + // Expanding /*ActionToEventGenerator*/ - public static T OnExpanding(this T control, Action action) where T : Avalonia.Controls.Expander => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Expanding += h); +public static T OnExpanding(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Expander +{ + control.AddHandler(Avalonia.Controls.Expander.ExpandingEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicBorder_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicBorder_MarkupExtensions.g.cs index b428740..16b5225 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicBorder_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicBorder_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ExperimentalAcrylicBorder_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicMaterial_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicMaterial_MarkupExtensions.g.cs index dfb787b..176f58c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicMaterial_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ExperimentalAcrylicMaterial_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ExperimentalAcrylicMaterial_MarkupExtensions { @@ -157,8 +157,8 @@ public static T FallbackColor(this T control, TValue value, FuncValueC // Invalidated /*ActionToEventGenerator*/ - public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.ExperimentalAcrylicMaterial => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); +public static T OnInvalidated(this T control, Action action) where T : Avalonia.Media.ExperimentalAcrylicMaterial => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Invalidated += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/FlyoutBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/FlyoutBase_MarkupExtensions.g.cs index 296565f..3a0b14e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/FlyoutBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/FlyoutBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class FlyoutBase_MarkupExtensions { @@ -30,15 +30,15 @@ public static T FlyoutBase_AttachedFlyout(this T control, Func(this T control, Action action) where T : Avalonia.Controls.Primitives.FlyoutBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); +public static T OnOpened(this T control, Action action) where T : Avalonia.Controls.Primitives.FlyoutBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); // Closed /*ActionToEventGenerator*/ - public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.Primitives.FlyoutBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); +public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.Primitives.FlyoutBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Flyout_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Flyout_MarkupExtensions.g.cs index 3860059..c8af955 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Flyout_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Flyout_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Flyout_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryDrawing_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryDrawing_MarkupExtensions.g.cs index 04644e2..48f378d 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryDrawing_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryDrawing_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class GeometryDrawing_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryGroup_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryGroup_MarkupExtensions.g.cs index 99400a2..3cddff4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryGroup_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GeometryGroup_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class GeometryGroup_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Geometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Geometry_MarkupExtensions.g.cs index 14a59a7..68f889f 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Geometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Geometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Geometry_MarkupExtensions { @@ -42,8 +42,8 @@ public static T Transform(this T control, TValue value, FuncValueConve // Changed /*ActionToEventGenerator*/ - public static T OnChanged(this T control, Action action) where T : Avalonia.Media.Geometry => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Changed += h); +public static T OnChanged(this T control, Action action) where T : Avalonia.Media.Geometry => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Changed += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GlyphRunDrawing_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GlyphRunDrawing_MarkupExtensions.g.cs index 5c93692..a2c8e2d 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GlyphRunDrawing_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GlyphRunDrawing_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class GlyphRunDrawing_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientBrush_MarkupExtensions.g.cs index 48dec3b..54ef9a3 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class GradientBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientStop_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientStop_MarkupExtensions.g.cs index 3d17577..aee1f98 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientStop_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GradientStop_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class GradientStop_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GridSplitter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GridSplitter_MarkupExtensions.g.cs index 0a1fa59..ae7e435 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GridSplitter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/GridSplitter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class GridSplitter_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Grid_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Grid_MarkupExtensions.g.cs index d17eb2c..2670167 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Grid_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Grid_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Grid_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedContentControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedContentControl_MarkupExtensions.g.cs index 79f642f..524ddd2 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedContentControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedContentControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class HeaderedContentControl_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedItemsControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedItemsControl_MarkupExtensions.g.cs index 6d4b5d8..ea4aeec 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedItemsControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedItemsControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class HeaderedItemsControl_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedSelectingItemsControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedSelectingItemsControl_MarkupExtensions.g.cs index 8ca7fd8..d71ce2b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedSelectingItemsControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HeaderedSelectingItemsControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class HeaderedSelectingItemsControl_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HyperlinkButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HyperlinkButton_MarkupExtensions.g.cs index ecd042f..5118f2d 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HyperlinkButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/HyperlinkButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class HyperlinkButton_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageBrush_MarkupExtensions.g.cs index 15a514d..17473ad 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ImageBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageDrawing_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageDrawing_MarkupExtensions.g.cs index a2063bc..ad66d70 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageDrawing_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ImageDrawing_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ImageDrawing_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Image_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Image_MarkupExtensions.g.cs index 5cb4ab9..f3938e8 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Image_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Image_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Image_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InlineUIContainer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InlineUIContainer_MarkupExtensions.g.cs index d73f8fb..ff525cf 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InlineUIContainer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InlineUIContainer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class InlineUIContainer_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Inline_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Inline_MarkupExtensions.g.cs index 88bf853..6abae69 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Inline_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Inline_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Inline_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InputElement_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InputElement_MarkupExtensions.g.cs index 0d767cb..42625ef 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InputElement_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/InputElement_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class InputElement_MarkupExtensions { @@ -157,113 +157,177 @@ public static T TabIndex(this T control, TValue value, FuncValueConver // GotFocus /*ActionToEventGenerator*/ - public static T OnGotFocus(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.GotFocus += h); +public static T OnGotFocus(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.GotFocusEvent, (_, args) => action(args), routes); + return control; +} + // LostFocus /*ActionToEventGenerator*/ - public static T OnLostFocus(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.LostFocus += h); +public static T OnLostFocus(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.LostFocusEvent, (_, args) => action(args), routes); + return control; +} + // KeyDown /*ActionToEventGenerator*/ - public static T OnKeyDown(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.KeyDown += h); +public static T OnKeyDown(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.KeyDownEvent, (_, args) => action(args), routes); + return control; +} + // KeyUp /*ActionToEventGenerator*/ - public static T OnKeyUp(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.KeyUp += h); +public static T OnKeyUp(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.KeyUpEvent, (_, args) => action(args), routes); + return control; +} + // TextInput /*ActionToEventGenerator*/ - public static T OnTextInput(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TextInput += h); +public static T OnTextInput(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.TextInputEvent, (_, args) => action(args), routes); + return control; +} + // TextInputMethodClientRequested /*ActionToEventGenerator*/ - public static T OnTextInputMethodClientRequested(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TextInputMethodClientRequested += h); +public static T OnTextInputMethodClientRequested(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.TextInputMethodClientRequestedEvent, (_, args) => action(args), routes); + return control; +} + // PointerEntered /*ActionToEventGenerator*/ - public static T OnPointerEntered(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerEntered += h); +public static T OnPointerEntered(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerEnteredEvent, (_, args) => action(args), routes); + return control; +} + // PointerExited /*ActionToEventGenerator*/ - public static T OnPointerExited(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerExited += h); +public static T OnPointerExited(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerExitedEvent, (_, args) => action(args), routes); + return control; +} + // PointerMoved /*ActionToEventGenerator*/ - public static T OnPointerMoved(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerMoved += h); +public static T OnPointerMoved(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerMovedEvent, (_, args) => action(args), routes); + return control; +} + // PointerPressed /*ActionToEventGenerator*/ - public static T OnPointerPressed(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerPressed += h); +public static T OnPointerPressed(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerPressedEvent, (_, args) => action(args), routes); + return control; +} + // PointerReleased /*ActionToEventGenerator*/ - public static T OnPointerReleased(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerReleased += h); +public static T OnPointerReleased(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerReleasedEvent, (_, args) => action(args), routes); + return control; +} + // PointerCaptureLost /*ActionToEventGenerator*/ - public static T OnPointerCaptureLost(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerCaptureLost += h); +public static T OnPointerCaptureLost(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerCaptureLostEvent, (_, args) => action(args), routes); + return control; +} + // PointerWheelChanged /*ActionToEventGenerator*/ - public static T OnPointerWheelChanged(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerWheelChanged += h); +public static T OnPointerWheelChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.PointerWheelChangedEvent, (_, args) => action(args), routes); + return control; +} + // Tapped /*ActionToEventGenerator*/ - public static T OnTapped(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Tapped += h); +public static T OnTapped(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.TappedEvent, (_, args) => action(args), routes); + return control; +} + // Holding /*ActionToEventGenerator*/ - public static T OnHolding(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Holding += h); +public static T OnHolding(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.HoldingEvent, (_, args) => action(args), routes); + return control; +} + // DoubleTapped /*ActionToEventGenerator*/ - public static T OnDoubleTapped(this T control, Action action) where T : Avalonia.Input.InputElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DoubleTapped += h); +public static T OnDoubleTapped(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Input.InputElement +{ + control.AddHandler(Avalonia.Input.InputElement.DoubleTappedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsControl_MarkupExtensions.g.cs index 8af53d8..bce4221 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ItemsControl_MarkupExtensions { @@ -134,22 +134,22 @@ public static T DisplayMemberBinding(this T control, TValue value, Fun // ContainerPrepared /*ActionToEventGenerator*/ - public static T OnContainerPrepared(this T control, Action action) where T : Avalonia.Controls.ItemsControl => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContainerPrepared += h); +public static T OnContainerPrepared(this T control, Action action) where T : Avalonia.Controls.ItemsControl => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContainerPrepared += h); // ContainerIndexChanged /*ActionToEventGenerator*/ - public static T OnContainerIndexChanged(this T control, Action action) where T : Avalonia.Controls.ItemsControl => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContainerIndexChanged += h); +public static T OnContainerIndexChanged(this T control, Action action) where T : Avalonia.Controls.ItemsControl => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContainerIndexChanged += h); // ContainerClearing /*ActionToEventGenerator*/ - public static T OnContainerClearing(this T control, Action action) where T : Avalonia.Controls.ItemsControl => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContainerClearing += h); +public static T OnContainerClearing(this T control, Action action) where T : Avalonia.Controls.ItemsControl => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ContainerClearing += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsPresenter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsPresenter_MarkupExtensions.g.cs index a4b05c5..837c4a5 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsPresenter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ItemsPresenter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ItemsPresenter_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/KeyBinding_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/KeyBinding_MarkupExtensions.g.cs index 425bc65..2ba53ed 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/KeyBinding_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/KeyBinding_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class KeyBinding_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Label_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Label_MarkupExtensions.g.cs index 2756f9a..877ad37 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Label_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Label_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Label_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LayoutTransformControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LayoutTransformControl_MarkupExtensions.g.cs index ef21591..e725e86 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LayoutTransformControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LayoutTransformControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class LayoutTransformControl_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Layoutable_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Layoutable_MarkupExtensions.g.cs index cd373ca..116634b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Layoutable_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Layoutable_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Layoutable_MarkupExtensions { @@ -258,15 +258,15 @@ public static T UseLayoutRounding(this T control, TValue value, FuncVa // EffectiveViewportChanged /*ActionToEventGenerator*/ - public static T OnEffectiveViewportChanged(this T control, Action action) where T : Avalonia.Layout.Layoutable => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.EffectiveViewportChanged += h); +public static T OnEffectiveViewportChanged(this T control, Action action) where T : Avalonia.Layout.Layoutable => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.EffectiveViewportChanged += h); // LayoutUpdated /*ActionToEventGenerator*/ - public static T OnLayoutUpdated(this T control, Action action) where T : Avalonia.Layout.Layoutable => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.LayoutUpdated += h); +public static T OnLayoutUpdated(this T control, Action action) where T : Avalonia.Layout.Layoutable => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.LayoutUpdated += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineGeometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineGeometry_MarkupExtensions.g.cs index 7df7e98..7e2eebb 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineGeometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineGeometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class LineGeometry_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineSegment_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineSegment_MarkupExtensions.g.cs index 3faafa6..9a5d77e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineSegment_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LineSegment_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class LineSegment_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Line_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Line_MarkupExtensions.g.cs index 887bf1b..f80f4d4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Line_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Line_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Line_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LinearGradientBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LinearGradientBrush_MarkupExtensions.g.cs index 2f35a04..44e2da2 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LinearGradientBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/LinearGradientBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class LinearGradientBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBoxItem_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBoxItem_MarkupExtensions.g.cs index 0a89161..c3d0c7c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBoxItem_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBoxItem_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ListBoxItem_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBox_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBox_MarkupExtensions.g.cs index 94ac6b8..3686dba 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBox_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ListBox_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ListBox_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ManagedFileChooserOverwritePrompt_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ManagedFileChooserOverwritePrompt_MarkupExtensions.g.cs index 12a9e28..a315970 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ManagedFileChooserOverwritePrompt_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ManagedFileChooserOverwritePrompt_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ManagedFileChooserOverwritePrompt_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MaskedTextBox_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MaskedTextBox_MarkupExtensions.g.cs index ba5b657..9d1fa1a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MaskedTextBox_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MaskedTextBox_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class MaskedTextBox_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MatrixTransform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MatrixTransform_MarkupExtensions.g.cs index a32794d..e7f6150 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MatrixTransform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MatrixTransform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class MatrixTransform_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuBase_MarkupExtensions.g.cs index ed9515e..0d6ec92 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class MenuBase_MarkupExtensions { @@ -19,15 +19,23 @@ public static partial class MenuBase_MarkupExtensions // Opened /*ActionToEventGenerator*/ - public static T OnOpened(this T control, Action action) where T : Avalonia.Controls.MenuBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); +public static T OnOpened(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.MenuBase +{ + control.AddHandler(Avalonia.Controls.MenuBase.OpenedEvent, (_, args) => action(args), routes); + return control; +} + // Closed /*ActionToEventGenerator*/ - public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.MenuBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); +public static T OnClosed(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.MenuBase +{ + control.AddHandler(Avalonia.Controls.MenuBase.ClosedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuFlyout_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuFlyout_MarkupExtensions.g.cs index 79178c5..3eb6226 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuFlyout_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuFlyout_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class MenuFlyout_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuItem_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuItem_MarkupExtensions.g.cs index 2639adf..5faded5 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuItem_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/MenuItem_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class MenuItem_MarkupExtensions { @@ -249,29 +249,45 @@ public static T GroupName(this T control, TValue value, FuncValueConve // Click /*ActionToEventGenerator*/ - public static T OnClick(this T control, Action action) where T : Avalonia.Controls.MenuItem => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Click += h); +public static T OnClick(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.MenuItem +{ + control.AddHandler(Avalonia.Controls.MenuItem.ClickEvent, (_, args) => action(args), routes); + return control; +} + // PointerEnteredItem /*ActionToEventGenerator*/ - public static T OnPointerEnteredItem(this T control, Action action) where T : Avalonia.Controls.MenuItem => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerEnteredItem += h); +public static T OnPointerEnteredItem(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.MenuItem +{ + control.AddHandler(Avalonia.Controls.MenuItem.PointerEnteredItemEvent, (_, args) => action(args), routes); + return control; +} + // PointerExitedItem /*ActionToEventGenerator*/ - public static T OnPointerExitedItem(this T control, Action action) where T : Avalonia.Controls.MenuItem => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PointerExitedItem += h); +public static T OnPointerExitedItem(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.MenuItem +{ + control.AddHandler(Avalonia.Controls.MenuItem.PointerExitedItemEvent, (_, args) => action(args), routes); + return control; +} + // SubmenuOpened /*ActionToEventGenerator*/ - public static T OnSubmenuOpened(this T control, Action action) where T : Avalonia.Controls.MenuItem => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SubmenuOpened += h); +public static T OnSubmenuOpened(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.MenuItem +{ + control.AddHandler(Avalonia.Controls.MenuItem.SubmenuOpenedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuBar_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuBar_MarkupExtensions.g.cs index 541f7b6..fbc6d71 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuBar_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuBar_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class NativeMenuBar_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuItem_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuItem_MarkupExtensions.g.cs index 51d41a7..b105158 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuItem_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenuItem_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class NativeMenuItem_MarkupExtensions { @@ -272,8 +272,8 @@ public static T IsVisible(this T control, TValue value, FuncValueConve // Click /*ActionToEventGenerator*/ - public static T OnClick(this T control, Action action) where T : Avalonia.Controls.NativeMenuItem => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Click += h); +public static T OnClick(this T control, Action action) where T : Avalonia.Controls.NativeMenuItem => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Click += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenu_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenu_MarkupExtensions.g.cs index 0fff21b..92be737 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenu_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NativeMenu_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class NativeMenu_MarkupExtensions { @@ -30,22 +30,22 @@ public static T NativeMenu_Menu(this T control, Func(this T control, Action action) where T : Avalonia.Controls.NativeMenu => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.NeedsUpdate += h); +public static T OnNeedsUpdate(this T control, Action action) where T : Avalonia.Controls.NativeMenu => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.NeedsUpdate += h); // Opening /*ActionToEventGenerator*/ - public static T OnOpening(this T control, Action action) where T : Avalonia.Controls.NativeMenu => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opening += h); +public static T OnOpening(this T control, Action action) where T : Avalonia.Controls.NativeMenu => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opening += h); // Closed /*ActionToEventGenerator*/ - public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.NativeMenu => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); +public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.NativeMenu => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NotificationCard_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NotificationCard_MarkupExtensions.g.cs index 5f5648c..058c0aa 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NotificationCard_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NotificationCard_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class NotificationCard_MarkupExtensions { @@ -76,8 +76,12 @@ public static T NotificationCard_CloseOnClick(this T control, Func(this T control, Action action) where T : Avalonia.Controls.Notifications.NotificationCard => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.NotificationClosed += h); +public static T OnNotificationClosed(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Notifications.NotificationCard +{ + control.AddHandler(Avalonia.Controls.Notifications.NotificationCard.NotificationClosedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NumericUpDown_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NumericUpDown_MarkupExtensions.g.cs index 232cead..edd59e1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NumericUpDown_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/NumericUpDown_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class NumericUpDown_MarkupExtensions { @@ -479,15 +479,19 @@ public static T InnerRightContent(this T control, TValue value, FuncVa // Spinned /*ActionToEventGenerator*/ - public static T OnSpinned(this T control, Action action) where T : Avalonia.Controls.NumericUpDown => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Spinned += h); +public static T OnSpinned(this T control, Action action) where T : Avalonia.Controls.NumericUpDown => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Spinned += h); // ValueChanged /*ActionToEventGenerator*/ - public static T OnValueChanged(this T control, Action action) where T : Avalonia.Controls.NumericUpDown => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ValueChanged += h); +public static T OnValueChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.NumericUpDown +{ + control.AddHandler(Avalonia.Controls.NumericUpDown.ValueChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/OverlayPopupHost_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/OverlayPopupHost_MarkupExtensions.g.cs index 5a781e8..c5bf508 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/OverlayPopupHost_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/OverlayPopupHost_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class OverlayPopupHost_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Panel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Panel_MarkupExtensions.g.cs index bb6eccf..2506aba 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Panel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Panel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Panel_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathFigure_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathFigure_MarkupExtensions.g.cs index e67bd8c..c12479e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathFigure_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathFigure_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PathFigure_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathGeometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathGeometry_MarkupExtensions.g.cs index ffd46be..e93edca 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathGeometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathGeometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PathGeometry_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathIcon_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathIcon_MarkupExtensions.g.cs index 3b4b478..628840f 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathIcon_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathIcon_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PathIcon_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathSegment_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathSegment_MarkupExtensions.g.cs index cd35334..f56905f 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathSegment_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PathSegment_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PathSegment_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Path_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Path_MarkupExtensions.g.cs index a4534dc..2f763a3 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Path_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Path_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Path_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Pen_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Pen_MarkupExtensions.g.cs index 5ae72ac..dbab71a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Pen_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Pen_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Pen_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PickerPresenterBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PickerPresenterBase_MarkupExtensions.g.cs index f747591..b700aeb 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PickerPresenterBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PickerPresenterBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PickerPresenterBase_MarkupExtensions { @@ -19,15 +19,15 @@ public static partial class PickerPresenterBase_MarkupExtensions // Confirmed /*ActionToEventGenerator*/ - public static T OnConfirmed(this T control, Action action) where T : Avalonia.Controls.Primitives.PickerPresenterBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Confirmed += h); +public static T OnConfirmed(this T control, Action action) where T : Avalonia.Controls.Primitives.PickerPresenterBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Confirmed += h); // Dismissed /*ActionToEventGenerator*/ - public static T OnDismissed(this T control, Action action) where T : Avalonia.Controls.Primitives.PickerPresenterBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Dismissed += h); +public static T OnDismissed(this T control, Action action) where T : Avalonia.Controls.Primitives.PickerPresenterBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Dismissed += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolyLineSegment_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolyLineSegment_MarkupExtensions.g.cs index 6027a81..36ac5c4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolyLineSegment_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolyLineSegment_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PolyLineSegment_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polygon_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polygon_MarkupExtensions.g.cs index 6c21a9c..32928af 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polygon_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polygon_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Polygon_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolylineGeometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolylineGeometry_MarkupExtensions.g.cs index 46e000a..06ae499 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolylineGeometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PolylineGeometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PolylineGeometry_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polyline_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polyline_MarkupExtensions.g.cs index 9f20d6c..cefb51c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polyline_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Polyline_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Polyline_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupFlyoutBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupFlyoutBase_MarkupExtensions.g.cs index 0c8b823..62b6516 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupFlyoutBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupFlyoutBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PopupFlyoutBase_MarkupExtensions { @@ -226,15 +226,15 @@ public static T PlacementConstraintAdjustment(this T control, TValue v // Closing /*ActionToEventGenerator*/ - public static T OnClosing(this T control, Action action) where T : Avalonia.Controls.Primitives.PopupFlyoutBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closing += h); +public static T OnClosing(this T control, Action action) where T : Avalonia.Controls.Primitives.PopupFlyoutBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closing += h); // Opening /*ActionToEventGenerator*/ - public static T OnOpening(this T control, Action action) where T : Avalonia.Controls.Primitives.PopupFlyoutBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opening += h); +public static T OnOpening(this T control, Action action) where T : Avalonia.Controls.Primitives.PopupFlyoutBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opening += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupRoot_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupRoot_MarkupExtensions.g.cs index cea5c4a..dd0ad19 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupRoot_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PopupRoot_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PopupRoot_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Popup_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Popup_MarkupExtensions.g.cs index e59622d..a42ae18 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Popup_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Popup_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Popup_MarkupExtensions { @@ -387,15 +387,15 @@ public static T Topmost(this T control, TValue value, FuncValueConvert // Closed /*ActionToEventGenerator*/ - public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.Primitives.Popup => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); +public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.Primitives.Popup => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); // Opened /*ActionToEventGenerator*/ - public static T OnOpened(this T control, Action action) where T : Avalonia.Controls.Primitives.Popup => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); +public static T OnOpened(this T control, Action action) where T : Avalonia.Controls.Primitives.Popup => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ProgressBar_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ProgressBar_MarkupExtensions.g.cs index 4195545..f0fc6ee 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ProgressBar_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ProgressBar_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ProgressBar_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PullGestureRecognizer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PullGestureRecognizer_MarkupExtensions.g.cs index dd92567..44421cf 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PullGestureRecognizer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/PullGestureRecognizer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class PullGestureRecognizer_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/QuadraticBezierSegment_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/QuadraticBezierSegment_MarkupExtensions.g.cs index 890c9dc..7a2e0d3 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/QuadraticBezierSegment_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/QuadraticBezierSegment_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class QuadraticBezierSegment_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadialGradientBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadialGradientBrush_MarkupExtensions.g.cs index 2540794..f0d5eda 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadialGradientBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadialGradientBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RadialGradientBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadioButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadioButton_MarkupExtensions.g.cs index 9836480..fe1c391 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadioButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RadioButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RadioButton_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RangeBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RangeBase_MarkupExtensions.g.cs index d4e7f1f..8361ed1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RangeBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RangeBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RangeBase_MarkupExtensions { @@ -134,8 +134,12 @@ public static T LargeChange(this T control, TValue value, FuncValueCon // ValueChanged /*ActionToEventGenerator*/ - public static T OnValueChanged(this T control, Action action) where T : Avalonia.Controls.Primitives.RangeBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ValueChanged += h); +public static T OnValueChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.RangeBase +{ + control.AddHandler(Avalonia.Controls.Primitives.RangeBase.ValueChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RectangleGeometry_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RectangleGeometry_MarkupExtensions.g.cs index 253144d..4fb0095 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RectangleGeometry_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RectangleGeometry_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RectangleGeometry_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rectangle_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rectangle_MarkupExtensions.g.cs index c3384d0..ad9c4b7 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rectangle_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rectangle_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Rectangle_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshContainer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshContainer_MarkupExtensions.g.cs index 04f118e..e3bf770 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshContainer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshContainer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RefreshContainer_MarkupExtensions { @@ -65,8 +65,12 @@ public static T PullDirection(this T control, TValue value, FuncValueC // RefreshRequested /*ActionToEventGenerator*/ - public static T OnRefreshRequested(this T control, Action action) where T : Avalonia.Controls.RefreshContainer => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.RefreshRequested += h); +public static T OnRefreshRequested(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.RefreshContainer +{ + control.AddHandler(Avalonia.Controls.RefreshContainer.RefreshRequestedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshVisualizer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshVisualizer_MarkupExtensions.g.cs index 78e86fb..437d5e7 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshVisualizer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RefreshVisualizer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RefreshVisualizer_MarkupExtensions { @@ -42,8 +42,12 @@ public static T Orientation(this T control, TValue value, FuncValueCon // RefreshRequested /*ActionToEventGenerator*/ - public static T OnRefreshRequested(this T control, Action action) where T : Avalonia.Controls.RefreshVisualizer => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.RefreshRequested += h); +public static T OnRefreshRequested(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.RefreshVisualizer +{ + control.AddHandler(Avalonia.Controls.RefreshVisualizer.RefreshRequestedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RelativePanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RelativePanel_MarkupExtensions.g.cs index 138a125..b7b7d3e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RelativePanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RelativePanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RelativePanel_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RepeatButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RepeatButton_MarkupExtensions.g.cs index 10ed495..611f5bc 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RepeatButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RepeatButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RepeatButton_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ReversibleStackPanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ReversibleStackPanel_MarkupExtensions.g.cs index 39222ed..3453dd1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ReversibleStackPanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ReversibleStackPanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ReversibleStackPanel_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rotate3DTransform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rotate3DTransform_MarkupExtensions.g.cs index 99ae888..b4b9112 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rotate3DTransform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Rotate3DTransform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Rotate3DTransform_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RotateTransform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RotateTransform_MarkupExtensions.g.cs index d214b21..3b7d949 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RotateTransform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RotateTransform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RotateTransform_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RowDefinition_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RowDefinition_MarkupExtensions.g.cs index 7e91ff3..dbc277c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RowDefinition_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/RowDefinition_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class RowDefinition_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Run_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Run_MarkupExtensions.g.cs index 0e8dc4d..539f249 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Run_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Run_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Run_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScaleTransform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScaleTransform_MarkupExtensions.g.cs index 793186a..1784236 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScaleTransform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScaleTransform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ScaleTransform_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollBar_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollBar_MarkupExtensions.g.cs index 89579c9..67933b9 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollBar_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollBar_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ScrollBar_MarkupExtensions { @@ -157,8 +157,8 @@ public static T ShowDelay(this T control, TValue value, FuncValueConve // Scroll /*ActionToEventGenerator*/ - public static T OnScroll(this T control, Action action) where T : Avalonia.Controls.Primitives.ScrollBar => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Scroll += h); +public static T OnScroll(this T control, Action action) where T : Avalonia.Controls.Primitives.ScrollBar => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Scroll += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollContentPresenter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollContentPresenter_MarkupExtensions.g.cs index c43a471..f9ac82b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollContentPresenter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollContentPresenter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ScrollContentPresenter_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollGestureRecognizer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollGestureRecognizer_MarkupExtensions.g.cs index 4720a88..d5451b4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollGestureRecognizer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollGestureRecognizer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ScrollGestureRecognizer_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollViewer_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollViewer_MarkupExtensions.g.cs index 4a51e52..7e38d00 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollViewer_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ScrollViewer_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ScrollViewer_MarkupExtensions { @@ -416,8 +416,12 @@ public static T ScrollViewer_IsDeferredScrollingEnabled(this T control, Func< // ScrollChanged /*ActionToEventGenerator*/ - public static T OnScrollChanged(this T control, Action action) where T : Avalonia.Controls.ScrollViewer => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ScrollChanged += h); +public static T OnScrollChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.ScrollViewer +{ + control.AddHandler(Avalonia.Controls.ScrollViewer.ScrollChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Sector_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Sector_MarkupExtensions.g.cs index 783d0d2..1392d87 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Sector_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Sector_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Sector_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectableTextBlock_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectableTextBlock_MarkupExtensions.g.cs index e1cce6f..8142d9f 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectableTextBlock_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectableTextBlock_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class SelectableTextBlock_MarkupExtensions { @@ -111,8 +111,12 @@ public static T SelectionForegroundBrush(this T control, TValue value, // CopyingToClipboard /*ActionToEventGenerator*/ - public static T OnCopyingToClipboard(this T control, Action action) where T : Avalonia.Controls.SelectableTextBlock => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CopyingToClipboard += h); +public static T OnCopyingToClipboard(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.SelectableTextBlock +{ + control.AddHandler(Avalonia.Controls.SelectableTextBlock.CopyingToClipboardEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectingItemsControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectingItemsControl_MarkupExtensions.g.cs index 1ea5c8e..e056a6a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectingItemsControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SelectingItemsControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class SelectingItemsControl_MarkupExtensions { @@ -180,8 +180,12 @@ public static T WrapSelection(this T control, TValue value, FuncValueC // SelectionChanged /*ActionToEventGenerator*/ - public static T OnSelectionChanged(this T control, Action action) where T : Avalonia.Controls.Primitives.SelectingItemsControl => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectionChanged += h); +public static T OnSelectionChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.SelectingItemsControl +{ + control.AddHandler(Avalonia.Controls.Primitives.SelectingItemsControl.SelectionChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Shape_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Shape_MarkupExtensions.g.cs index e7f8ea6..cd1fcf0 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Shape_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Shape_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Shape_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SkewTransform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SkewTransform_MarkupExtensions.g.cs index f0080fe..505a43b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SkewTransform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SkewTransform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class SkewTransform_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Slider_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Slider_MarkupExtensions.g.cs index 349d96c..1114920 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Slider_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Slider_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Slider_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SolidColorBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SolidColorBrush_MarkupExtensions.g.cs index 52be932..559c3f9 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SolidColorBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SolidColorBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class SolidColorBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Span_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Span_MarkupExtensions.g.cs index 43b5081..ebb2d59 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Span_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Span_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Span_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Spinner_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Spinner_MarkupExtensions.g.cs index ec59423..d3a508c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Spinner_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Spinner_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Spinner_MarkupExtensions { @@ -42,8 +42,12 @@ public static T ValidSpinDirection(this T control, TValue value, FuncV // Spin /*ActionToEventGenerator*/ - public static T OnSpin(this T control, Action action) where T : Avalonia.Controls.Spinner => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Spin += h); +public static T OnSpin(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Spinner +{ + control.AddHandler(Avalonia.Controls.Spinner.SpinEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitButton_MarkupExtensions.g.cs index 2834937..ac92d5b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class SplitButton_MarkupExtensions { @@ -111,8 +111,12 @@ public static T HotKey(this T control, TValue value, FuncValueConverte // Click /*ActionToEventGenerator*/ - public static T OnClick(this T control, Action action) where T : Avalonia.Controls.SplitButton => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Click += h); +public static T OnClick(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.SplitButton +{ + control.AddHandler(Avalonia.Controls.SplitButton.ClickEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitView_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitView_MarkupExtensions.g.cs index 77f76b6..e3c7b76 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitView_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/SplitView_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class SplitView_MarkupExtensions { @@ -226,29 +226,45 @@ public static T UseLightDismissOverlayMode(this T control, TValue valu // PaneClosed /*ActionToEventGenerator*/ - public static T OnPaneClosed(this T control, Action action) where T : Avalonia.Controls.SplitView => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PaneClosed += h); +public static T OnPaneClosed(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.SplitView +{ + control.AddHandler(Avalonia.Controls.SplitView.PaneClosedEvent, (_, args) => action(args), routes); + return control; +} + // PaneClosing /*ActionToEventGenerator*/ - public static T OnPaneClosing(this T control, Action action) where T : Avalonia.Controls.SplitView => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PaneClosing += h); +public static T OnPaneClosing(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.SplitView +{ + control.AddHandler(Avalonia.Controls.SplitView.PaneClosingEvent, (_, args) => action(args), routes); + return control; +} + // PaneOpened /*ActionToEventGenerator*/ - public static T OnPaneOpened(this T control, Action action) where T : Avalonia.Controls.SplitView => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PaneOpened += h); +public static T OnPaneOpened(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.SplitView +{ + control.AddHandler(Avalonia.Controls.SplitView.PaneOpenedEvent, (_, args) => action(args), routes); + return control; +} + // PaneOpening /*ActionToEventGenerator*/ - public static T OnPaneOpening(this T control, Action action) where T : Avalonia.Controls.SplitView => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PaneOpening += h); +public static T OnPaneOpening(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.SplitView +{ + control.AddHandler(Avalonia.Controls.SplitView.PaneOpeningEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StackPanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StackPanel_MarkupExtensions.g.cs index c5b0016..f0ac684 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StackPanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StackPanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class StackPanel_MarkupExtensions { @@ -111,15 +111,23 @@ public static T AreVerticalSnapPointsRegular(this T control, TValue va // HorizontalSnapPointsChanged /*ActionToEventGenerator*/ - public static T OnHorizontalSnapPointsChanged(this T control, Action action) where T : Avalonia.Controls.StackPanel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.HorizontalSnapPointsChanged += h); +public static T OnHorizontalSnapPointsChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.StackPanel +{ + control.AddHandler(Avalonia.Controls.StackPanel.HorizontalSnapPointsChangedEvent, (_, args) => action(args), routes); + return control; +} + // VerticalSnapPointsChanged /*ActionToEventGenerator*/ - public static T OnVerticalSnapPointsChanged(this T control, Action action) where T : Avalonia.Controls.StackPanel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.VerticalSnapPointsChanged += h); +public static T OnVerticalSnapPointsChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.StackPanel +{ + control.AddHandler(Avalonia.Controls.StackPanel.VerticalSnapPointsChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyleBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyleBase_MarkupExtensions.g.cs index 0c6ee3c..486af0e 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyleBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyleBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class StyleBase_MarkupExtensions { @@ -19,8 +19,8 @@ public static partial class StyleBase_MarkupExtensions // OwnerChanged /*ActionToEventGenerator*/ - public static T OnOwnerChanged(this T control, Action action) where T : Avalonia.Styling.StyleBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.OwnerChanged += h); +public static T OnOwnerChanged(this T control, Action action) where T : Avalonia.Styling.StyleBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.OwnerChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyledElement_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyledElement_MarkupExtensions.g.cs index 11eb025..6715c90 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyledElement_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/StyledElement_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class StyledElement_MarkupExtensions { @@ -88,43 +88,43 @@ public static T Theme(this T control, TValue value, FuncValueConverter // AttachedToLogicalTree /*ActionToEventGenerator*/ - public static T OnAttachedToLogicalTree(this T control, Action action) where T : Avalonia.StyledElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.AttachedToLogicalTree += h); +public static T OnAttachedToLogicalTree(this T control, Action action) where T : Avalonia.StyledElement => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.AttachedToLogicalTree += h); // DetachedFromLogicalTree /*ActionToEventGenerator*/ - public static T OnDetachedFromLogicalTree(this T control, Action action) where T : Avalonia.StyledElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DetachedFromLogicalTree += h); +public static T OnDetachedFromLogicalTree(this T control, Action action) where T : Avalonia.StyledElement => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DetachedFromLogicalTree += h); // DataContextChanged /*ActionToEventGenerator*/ - public static T OnDataContextChanged(this T control, Action action) where T : Avalonia.StyledElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DataContextChanged += h); +public static T OnDataContextChanged(this T control, Action action) where T : Avalonia.StyledElement => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DataContextChanged += h); // Initialized /*ActionToEventGenerator*/ - public static T OnInitialized(this T control, Action action) where T : Avalonia.StyledElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Initialized += h); +public static T OnInitialized(this T control, Action action) where T : Avalonia.StyledElement => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Initialized += h); // ResourcesChanged /*ActionToEventGenerator*/ - public static T OnResourcesChanged(this T control, Action action) where T : Avalonia.StyledElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ResourcesChanged += h); +public static T OnResourcesChanged(this T control, Action action) where T : Avalonia.StyledElement => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ResourcesChanged += h); // ActualThemeVariantChanged /*ActionToEventGenerator*/ - public static T OnActualThemeVariantChanged(this T control, Action action) where T : Avalonia.StyledElement => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ActualThemeVariantChanged += h); +public static T OnActualThemeVariantChanged(this T control, Action action) where T : Avalonia.StyledElement => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ActualThemeVariantChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Styles_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Styles_MarkupExtensions.g.cs index ad45341..beb37ba 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Styles_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Styles_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Styles_MarkupExtensions { @@ -19,15 +19,15 @@ public static partial class Styles_MarkupExtensions // CollectionChanged /*ActionToEventGenerator*/ - public static T OnCollectionChanged(this T control, Action action) where T : Avalonia.Styling.Styles => - control._setEvent((System.Collections.Specialized.NotifyCollectionChangedEventHandler) ((arg0, arg1) => action(arg1)), h => control.CollectionChanged += h); +public static T OnCollectionChanged(this T control, Action action) where T : Avalonia.Styling.Styles => + control._setEvent((System.Collections.Specialized.NotifyCollectionChangedEventHandler) ((arg0, arg1) => action(arg1)), h => control.CollectionChanged += h); // OwnerChanged /*ActionToEventGenerator*/ - public static T OnOwnerChanged(this T control, Action action) where T : Avalonia.Styling.Styles => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.OwnerChanged += h); +public static T OnOwnerChanged(this T control, Action action) where T : Avalonia.Styling.Styles => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.OwnerChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabControl_MarkupExtensions.g.cs index d8eebc4..74f758a 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TabControl_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabItem_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabItem_MarkupExtensions.g.cs index 848aff2..fc4cac6 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabItem_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TabItem_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TabItem_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TemplatedControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TemplatedControl_MarkupExtensions.g.cs index 6ec22a4..ef4d504 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TemplatedControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TemplatedControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TemplatedControl_MarkupExtensions { @@ -379,8 +379,12 @@ public static T TemplatedControl_IsTemplateFocusTarget(this T control, Func(this T control, Action action) where T : Avalonia.Controls.Primitives.TemplatedControl => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TemplateApplied += h); +public static T OnTemplateApplied(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.TemplatedControl +{ + control.AddHandler(Avalonia.Controls.Primitives.TemplatedControl.TemplateAppliedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBlock_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBlock_MarkupExtensions.g.cs index 9635d73..66b814d 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBlock_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBlock_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TextBlock_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBox_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBox_MarkupExtensions.g.cs index dfb8ccf..95464a1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBox_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextBox_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TextBox_MarkupExtensions { @@ -686,36 +686,56 @@ public static T UndoLimit(this T control, TValue value, FuncValueConve // CopyingToClipboard /*ActionToEventGenerator*/ - public static T OnCopyingToClipboard(this T control, Action action) where T : Avalonia.Controls.TextBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CopyingToClipboard += h); +public static T OnCopyingToClipboard(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TextBox +{ + control.AddHandler(Avalonia.Controls.TextBox.CopyingToClipboardEvent, (_, args) => action(args), routes); + return control; +} + // CuttingToClipboard /*ActionToEventGenerator*/ - public static T OnCuttingToClipboard(this T control, Action action) where T : Avalonia.Controls.TextBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CuttingToClipboard += h); +public static T OnCuttingToClipboard(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TextBox +{ + control.AddHandler(Avalonia.Controls.TextBox.CuttingToClipboardEvent, (_, args) => action(args), routes); + return control; +} + // PastingFromClipboard /*ActionToEventGenerator*/ - public static T OnPastingFromClipboard(this T control, Action action) where T : Avalonia.Controls.TextBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PastingFromClipboard += h); +public static T OnPastingFromClipboard(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TextBox +{ + control.AddHandler(Avalonia.Controls.TextBox.PastingFromClipboardEvent, (_, args) => action(args), routes); + return control; +} + // TextChanged /*ActionToEventGenerator*/ - public static T OnTextChanged(this T control, Action action) where T : Avalonia.Controls.TextBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TextChanged += h); +public static T OnTextChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TextBox +{ + control.AddHandler(Avalonia.Controls.TextBox.TextChangedEvent, (_, args) => action(args), routes); + return control; +} + // TextChanging /*ActionToEventGenerator*/ - public static T OnTextChanging(this T control, Action action) where T : Avalonia.Controls.TextBox => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TextChanging += h); +public static T OnTextChanging(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TextBox +{ + control.AddHandler(Avalonia.Controls.TextBox.TextChangingEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextDecoration_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextDecoration_MarkupExtensions.g.cs index 841635c..95cc028 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextDecoration_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextDecoration_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TextDecoration_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextElement_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextElement_MarkupExtensions.g.cs index 9d2eb9a..4b14bfd 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextElement_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextElement_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TextElement_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextPresenter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextPresenter_MarkupExtensions.g.cs index b0c1d44..8d951d5 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextPresenter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TextPresenter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TextPresenter_MarkupExtensions { @@ -410,8 +410,8 @@ public static T Background(this T control, TValue value, FuncValueConv // CaretBoundsChanged /*ActionToEventGenerator*/ - public static T OnCaretBoundsChanged(this T control, Action action) where T : Avalonia.Controls.Presenters.TextPresenter => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CaretBoundsChanged += h); +public static T OnCaretBoundsChanged(this T control, Action action) where T : Avalonia.Controls.Presenters.TextPresenter => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.CaretBoundsChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ThemeVariantScope_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ThemeVariantScope_MarkupExtensions.g.cs index 28fd577..3a19959 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ThemeVariantScope_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ThemeVariantScope_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ThemeVariantScope_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Thumb_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Thumb_MarkupExtensions.g.cs index 7bcf1cd..e611149 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Thumb_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Thumb_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Thumb_MarkupExtensions { @@ -19,22 +19,34 @@ public static partial class Thumb_MarkupExtensions // DragStarted /*ActionToEventGenerator*/ - public static T OnDragStarted(this T control, Action action) where T : Avalonia.Controls.Primitives.Thumb => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DragStarted += h); +public static T OnDragStarted(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.Thumb +{ + control.AddHandler(Avalonia.Controls.Primitives.Thumb.DragStartedEvent, (_, args) => action(args), routes); + return control; +} + // DragDelta /*ActionToEventGenerator*/ - public static T OnDragDelta(this T control, Action action) where T : Avalonia.Controls.Primitives.Thumb => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DragDelta += h); +public static T OnDragDelta(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.Thumb +{ + control.AddHandler(Avalonia.Controls.Primitives.Thumb.DragDeltaEvent, (_, args) => action(args), routes); + return control; +} + // DragCompleted /*ActionToEventGenerator*/ - public static T OnDragCompleted(this T control, Action action) where T : Avalonia.Controls.Primitives.Thumb => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DragCompleted += h); +public static T OnDragCompleted(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.Thumb +{ + control.AddHandler(Avalonia.Controls.Primitives.Thumb.DragCompletedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TickBar_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TickBar_MarkupExtensions.g.cs index af7cb42..235ef8b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TickBar_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TickBar_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TickBar_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TileBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TileBrush_MarkupExtensions.g.cs index 0702a34..753cf47 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TileBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TileBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TileBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePickerPresenter_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePickerPresenter_MarkupExtensions.g.cs index e4e4b45..75a389d 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePickerPresenter_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePickerPresenter_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TimePickerPresenter_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePicker_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePicker_MarkupExtensions.g.cs index 791c356..65b2100 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePicker_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TimePicker_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TimePicker_MarkupExtensions { @@ -88,8 +88,8 @@ public static T SelectedTime(this T control, TValue value, FuncValueCo // SelectedTimeChanged /*ActionToEventGenerator*/ - public static T OnSelectedTimeChanged(this T control, Action action) where T : Avalonia.Controls.TimePicker => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedTimeChanged += h); +public static T OnSelectedTimeChanged(this T control, Action action) where T : Avalonia.Controls.TimePicker => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectedTimeChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleButton_MarkupExtensions.g.cs index b98bc7d..985967c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ToggleButton_MarkupExtensions { @@ -65,29 +65,45 @@ public static T IsThreeState(this T control, TValue value, FuncValueCo // Checked /*ActionToEventGenerator*/ - public static T OnChecked(this T control, Action action) where T : Avalonia.Controls.Primitives.ToggleButton => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Checked += h); +public static T OnChecked(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.ToggleButton +{ + control.AddHandler(Avalonia.Controls.Primitives.ToggleButton.CheckedEvent, (_, args) => action(args), routes); + return control; +} + // Unchecked /*ActionToEventGenerator*/ - public static T OnUnchecked(this T control, Action action) where T : Avalonia.Controls.Primitives.ToggleButton => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Unchecked += h); +public static T OnUnchecked(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.ToggleButton +{ + control.AddHandler(Avalonia.Controls.Primitives.ToggleButton.UncheckedEvent, (_, args) => action(args), routes); + return control; +} + // Indeterminate /*ActionToEventGenerator*/ - public static T OnIndeterminate(this T control, Action action) where T : Avalonia.Controls.Primitives.ToggleButton => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Indeterminate += h); +public static T OnIndeterminate(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.ToggleButton +{ + control.AddHandler(Avalonia.Controls.Primitives.ToggleButton.IndeterminateEvent, (_, args) => action(args), routes); + return control; +} + // IsCheckedChanged /*ActionToEventGenerator*/ - public static T OnIsCheckedChanged(this T control, Action action) where T : Avalonia.Controls.Primitives.ToggleButton => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.IsCheckedChanged += h); +public static T OnIsCheckedChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.Primitives.ToggleButton +{ + control.AddHandler(Avalonia.Controls.Primitives.ToggleButton.IsCheckedChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSplitButton_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSplitButton_MarkupExtensions.g.cs index 38b1fa3..2b03a4f 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSplitButton_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSplitButton_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ToggleSplitButton_MarkupExtensions { @@ -42,8 +42,12 @@ public static T IsChecked(this T control, TValue value, FuncValueConve // IsCheckedChanged /*ActionToEventGenerator*/ - public static T OnIsCheckedChanged(this T control, Action action) where T : Avalonia.Controls.ToggleSplitButton => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.IsCheckedChanged += h); +public static T OnIsCheckedChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.ToggleSplitButton +{ + control.AddHandler(Avalonia.Controls.ToggleSplitButton.IsCheckedChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSwitch_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSwitch_MarkupExtensions.g.cs index e909388..b023466 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSwitch_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToggleSwitch_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ToggleSwitch_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToolTip_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToolTip_MarkupExtensions.g.cs index 5f94032..62af7e4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToolTip_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/ToolTip_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class ToolTip_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TopLevel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TopLevel_MarkupExtensions.g.cs index c5212e8..2f6bb2b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TopLevel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TopLevel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TopLevel_MarkupExtensions { @@ -110,29 +110,33 @@ public static T TopLevel_AutoSafeAreaPadding(this T control, Func(this T control, Action action) where T : Avalonia.Controls.TopLevel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); +public static T OnOpened(this T control, Action action) where T : Avalonia.Controls.TopLevel => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Opened += h); // Closed /*ActionToEventGenerator*/ - public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.TopLevel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); +public static T OnClosed(this T control, Action action) where T : Avalonia.Controls.TopLevel => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closed += h); // ScalingChanged /*ActionToEventGenerator*/ - public static T OnScalingChanged(this T control, Action action) where T : Avalonia.Controls.TopLevel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ScalingChanged += h); +public static T OnScalingChanged(this T control, Action action) where T : Avalonia.Controls.TopLevel => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.ScalingChanged += h); // BackRequested /*ActionToEventGenerator*/ - public static T OnBackRequested(this T control, Action action) where T : Avalonia.Controls.TopLevel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.BackRequested += h); +public static T OnBackRequested(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TopLevel +{ + control.AddHandler(Avalonia.Controls.TopLevel.BackRequestedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Track_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Track_MarkupExtensions.g.cs index 8f6794d..6eb2ee4 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Track_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Track_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Track_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransformGroup_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransformGroup_MarkupExtensions.g.cs index c6dd261..14bffa8 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransformGroup_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransformGroup_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TransformGroup_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Transform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Transform_MarkupExtensions.g.cs index a9e7343..bbad290 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Transform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Transform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Transform_MarkupExtensions { @@ -19,8 +19,8 @@ public static partial class Transform_MarkupExtensions // Changed /*ActionToEventGenerator*/ - public static T OnChanged(this T control, Action action) where T : Avalonia.Media.Transform => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Changed += h); +public static T OnChanged(this T control, Action action) where T : Avalonia.Media.Transform => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Changed += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitionBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitionBase_MarkupExtensions.g.cs index 12ad9ea..204e50c 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitionBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitionBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TransitionBase_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitioningContentControl_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitioningContentControl_MarkupExtensions.g.cs index 129232e..840280d 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitioningContentControl_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TransitioningContentControl_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TransitioningContentControl_MarkupExtensions { @@ -65,8 +65,12 @@ public static T IsTransitionReversed(this T control, TValue value, Fun // TransitionCompleted /*ActionToEventGenerator*/ - public static T OnTransitionCompleted(this T control, Action action) where T : Avalonia.Controls.TransitioningContentControl => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.TransitionCompleted += h); +public static T OnTransitionCompleted(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.TransitioningContentControl +{ + control.AddHandler(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TranslateTransform_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TranslateTransform_MarkupExtensions.g.cs index e94af76..e4cce92 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TranslateTransform_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TranslateTransform_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TranslateTransform_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TrayIcon_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TrayIcon_MarkupExtensions.g.cs index 2e715f4..d659033 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TrayIcon_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TrayIcon_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TrayIcon_MarkupExtensions { @@ -168,8 +168,8 @@ public static T TrayIcon_Icons(this T control, Func(this T control, Action action) where T : Avalonia.Controls.TrayIcon => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Clicked += h); +public static T OnClicked(this T control, Action action) where T : Avalonia.Controls.TrayIcon => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Clicked += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeViewItem_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeViewItem_MarkupExtensions.g.cs index 5b0a624..c9e9860 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeViewItem_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeViewItem_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TreeViewItem_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeView_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeView_MarkupExtensions.g.cs index 711aeda..ba92ef9 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeView_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/TreeView_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class TreeView_MarkupExtensions { @@ -111,8 +111,8 @@ public static T SelectionMode(this T control, TValue value, FuncValueC // SelectionChanged /*ActionToEventGenerator*/ - public static T OnSelectionChanged(this T control, Action action) where T : Avalonia.Controls.TreeView => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectionChanged += h); +public static T OnSelectionChanged(this T control, Action action) where T : Avalonia.Controls.TreeView => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.SelectionChanged += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/UniformGrid_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/UniformGrid_MarkupExtensions.g.cs index ca6df15..ed7c91b 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/UniformGrid_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/UniformGrid_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class UniformGrid_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Viewbox_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Viewbox_MarkupExtensions.g.cs index 9c15e0d..9363367 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Viewbox_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Viewbox_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Viewbox_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VirtualizingStackPanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VirtualizingStackPanel_MarkupExtensions.g.cs index 0fc8006..2f87c20 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VirtualizingStackPanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VirtualizingStackPanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class VirtualizingStackPanel_MarkupExtensions { @@ -88,15 +88,23 @@ public static T AreVerticalSnapPointsRegular(this T control, TValue va // HorizontalSnapPointsChanged /*ActionToEventGenerator*/ - public static T OnHorizontalSnapPointsChanged(this T control, Action action) where T : Avalonia.Controls.VirtualizingStackPanel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.HorizontalSnapPointsChanged += h); +public static T OnHorizontalSnapPointsChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.VirtualizingStackPanel +{ + control.AddHandler(Avalonia.Controls.VirtualizingStackPanel.HorizontalSnapPointsChangedEvent, (_, args) => action(args), routes); + return control; +} + // VerticalSnapPointsChanged /*ActionToEventGenerator*/ - public static T OnVerticalSnapPointsChanged(this T control, Action action) where T : Avalonia.Controls.VirtualizingStackPanel => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.VerticalSnapPointsChanged += h); +public static T OnVerticalSnapPointsChanged(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Avalonia.Controls.VirtualizingStackPanel +{ + control.AddHandler(Avalonia.Controls.VirtualizingStackPanel.VerticalSnapPointsChangedEvent, (_, args) => action(args), routes); + return control; +} + diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VisualBrush_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VisualBrush_MarkupExtensions.g.cs index 18a6c40..990d8fa 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VisualBrush_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/VisualBrush_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class VisualBrush_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Visual_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Visual_MarkupExtensions.g.cs index d1e7806..1df4eb0 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Visual_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Visual_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Visual_MarkupExtensions { @@ -267,15 +267,15 @@ public static T Visual_FlowDirection(this T control, Func(this T control, Action action) where T : Avalonia.Visual => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.AttachedToVisualTree += h); +public static T OnAttachedToVisualTree(this T control, Action action) where T : Avalonia.Visual => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.AttachedToVisualTree += h); // DetachedFromVisualTree /*ActionToEventGenerator*/ - public static T OnDetachedFromVisualTree(this T control, Action action) where T : Avalonia.Visual => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DetachedFromVisualTree += h); +public static T OnDetachedFromVisualTree(this T control, Action action) where T : Avalonia.Visual => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.DetachedFromVisualTree += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowBase_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowBase_MarkupExtensions.g.cs index 6bab70f..0510025 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowBase_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowBase_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class WindowBase_MarkupExtensions { @@ -42,29 +42,29 @@ public static T Topmost(this T control, TValue value, FuncValueConvert // Activated /*ActionToEventGenerator*/ - public static T OnActivated(this T control, Action action) where T : Avalonia.Controls.WindowBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Activated += h); +public static T OnActivated(this T control, Action action) where T : Avalonia.Controls.WindowBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Activated += h); // Deactivated /*ActionToEventGenerator*/ - public static T OnDeactivated(this T control, Action action) where T : Avalonia.Controls.WindowBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Deactivated += h); +public static T OnDeactivated(this T control, Action action) where T : Avalonia.Controls.WindowBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Deactivated += h); // PositionChanged /*ActionToEventGenerator*/ - public static T OnPositionChanged(this T control, Action action) where T : Avalonia.Controls.WindowBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PositionChanged += h); +public static T OnPositionChanged(this T control, Action action) where T : Avalonia.Controls.WindowBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.PositionChanged += h); // Resized /*ActionToEventGenerator*/ - public static T OnResized(this T control, Action action) where T : Avalonia.Controls.WindowBase => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Resized += h); +public static T OnResized(this T control, Action action) where T : Avalonia.Controls.WindowBase => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Resized += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowNotificationManager_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowNotificationManager_MarkupExtensions.g.cs index 7cd8233..94b8bc1 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowNotificationManager_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WindowNotificationManager_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class WindowNotificationManager_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Window_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Window_MarkupExtensions.g.cs index 32a2fbf..fc8c2ca 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Window_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/Window_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class Window_MarkupExtensions { @@ -318,8 +318,8 @@ public static T CanResize(this T control, TValue value, FuncValueConve // Closing /*ActionToEventGenerator*/ - public static T OnClosing(this T control, Action action) where T : Avalonia.Controls.Window => - control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closing += h); +public static T OnClosing(this T control, Action action) where T : Avalonia.Controls.Window => + control._setEvent((System.EventHandler) ((arg0, arg1) => action(arg1)), h => control.Closing += h); diff --git a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WrapPanel_MarkupExtensions.g.cs b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WrapPanel_MarkupExtensions.g.cs index 0c16c9a..da7de16 100644 --- a/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WrapPanel_MarkupExtensions.g.cs +++ b/src/Avalonia.Markup.Declarative/ControlExtensions.Generated/WrapPanel_MarkupExtensions.g.cs @@ -7,7 +7,7 @@ using System.Runtime.CompilerServices; namespace Avalonia.Markup.Declarative; -[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.1.3.0")] +[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "11.2.999.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public static partial class WrapPanel_MarkupExtensions { diff --git a/src/Avalonia.Markup.Declarative/ControlPropertyExtensions.cs b/src/Avalonia.Markup.Declarative/ControlPropertyExtensions.cs index 4d91cf6..11b3206 100644 --- a/src/Avalonia.Markup.Declarative/ControlPropertyExtensions.cs +++ b/src/Avalonia.Markup.Declarative/ControlPropertyExtensions.cs @@ -3,6 +3,8 @@ using Avalonia.Controls.Templates; using Avalonia.Data; using Avalonia.Data.Converters; +using Avalonia.Input; +using Avalonia.Interactivity; using Avalonia.Media; using Avalonia.Styling; using System; @@ -368,7 +370,11 @@ public static TElement VerticalScrollBarVisibility(this TElement contr ScrollViewer.SetVerticalScrollBarVisibility(control, value); return control; } - + public static T OnKeyDown(this T control, Action action, RoutingStrategies routes = RoutingStrategies.Tunnel | RoutingStrategies.Bubble) where T : InputElement + { + control.AddHandler(InputElement.KeyDownEvent, (_, args) => action(args), routes); + return control; + } public static TPanel Children(this TPanel container, params Control[] children) where TPanel : Panel { diff --git a/src/AvaloniaExtensionGenerator/ExtensionInfos/EventExtensionInfo.cs b/src/AvaloniaExtensionGenerator/ExtensionInfos/EventExtensionInfo.cs index ec1fd3f..6643ef5 100644 --- a/src/AvaloniaExtensionGenerator/ExtensionInfos/EventExtensionInfo.cs +++ b/src/AvaloniaExtensionGenerator/ExtensionInfos/EventExtensionInfo.cs @@ -1,5 +1,6 @@ using AvaloniaExtensionGenerator.Generators; using System.Reflection; +using System.Reflection.Metadata; namespace AvaloniaExtensionGenerator.ExtensionInfos; @@ -8,10 +9,24 @@ public class EventExtensionInfo : IMemberExtensionInfo public string MemberName { get; } public EventInfo EventInfo { get; } public Type ControlType { get; } + public string ControlTypeName { get; } + public string EventHandler { get; } public string EventName { get; } public List EventParameterTypes { get; } = new List(); public bool IsGeneric { get; } + public string ReturnType { get; set; } + public string GenericConstraint { get; set; } = ""; + public string GenericArg { get; set; } = ""; + + public bool IsRoutedEvent { get; set; } + + public bool HasStandardSignature => + EventParameterTypes.Count == 2 && EventParameterTypes[0] == "System.Object" && + EventParameterTypes[1].EndsWith("EventArgs"); + + public bool HasSingleParameter => EventParameterTypes.Count == 1; + public bool HasMultipleParameters => EventParameterTypes.Count > 1; public EventExtensionInfo(EventInfo eventInfo) @@ -24,6 +39,7 @@ public EventExtensionInfo(EventInfo eventInfo) EventInfo = eventInfo; ControlType = eventInfo.DeclaringType; + ControlTypeName = ControlType.GetTypeDeclarationSourceCode(); EventName = EventInfo.Name; MemberName = EventName; EventHandler = EventInfo.EventHandlerType.GetTypeDeclarationSourceCode(); @@ -31,19 +47,44 @@ public EventExtensionInfo(EventInfo eventInfo) var methodInfo = eventInfo.EventHandlerType.GetMethod("Invoke"); if (methodInfo != null) { - foreach (var parameter in methodInfo.GetParameters()) - { + var parameters = methodInfo.GetParameters(); + foreach (var parameter in parameters) EventParameterTypes.Add(parameter.ParameterType.GetTypeDeclarationSourceCode()); + + if (HasRoutedEventArgs(parameters)) + { + var routedEventFieldInfo = ControlType.GetField(EventName + "Event", BindingFlags.Static | BindingFlags.Public); + IsRoutedEvent = routedEventFieldInfo != null; //if routed event field located in base class, ignore it and cout it classic event } + } IsGeneric = !eventInfo.DeclaringType.IsSealed; + + ReturnType = ControlTypeName; + if (IsGeneric) + { + ReturnType = "T"; + GenericConstraint = $"where T : {ControlTypeName}"; + GenericArg = ""; + } + } - public bool HasStandardSignature => - EventParameterTypes.Count == 2 && EventParameterTypes[0] == "System.Object" && - EventParameterTypes[1].EndsWith("EventArgs"); + private static bool HasRoutedEventArgs(ParameterInfo[] parameters) + { + return parameters.Any(x => IsRoutedEventArgType(x.ParameterType)); - public bool HasSingleParameter => EventParameterTypes.Count == 1; - public bool HasMultipleParameters => EventParameterTypes.Count > 1; + bool IsRoutedEventArgType(Type? type) + { + while (type != null) + { + if (type.Name == "RoutedEventArgs") + return true; + + type = type.BaseType; + } + return false; + } + } } diff --git a/src/AvaloniaExtensionGenerator/Generators/EventGenerators/ActionToEventGenerator.cs b/src/AvaloniaExtensionGenerator/Generators/EventGenerators/ActionToEventGenerator.cs index b1efbf8..358ba44 100644 --- a/src/AvaloniaExtensionGenerator/Generators/EventGenerators/ActionToEventGenerator.cs +++ b/src/AvaloniaExtensionGenerator/Generators/EventGenerators/ActionToEventGenerator.cs @@ -38,21 +38,26 @@ public class ActionToEventGenerator : ExtensionGeneratorBase var eventName = @event.EventName; var extensionName = "On" + eventName; - var controlTypeName = @event.ControlType.FullName; - var extensionText = - $" public static {controlTypeName} {extensionName}" - + $"(this {controlTypeName} control, {argsString}) => {Environment.NewLine}" - + $" control._setEvent(({eventHandler}) (({lambdaParameters}) => {actionCallStr}), h => control.{eventName} += h);"; + var extensionBody = + $" => {Environment.NewLine} control._setEvent(({eventHandler}) (({lambdaParameters}) => {actionCallStr}), h => control.{eventName} += h);"; - if (@event.IsGeneric) + if (@event.IsRoutedEvent) { - extensionText = - $" public static T {extensionName}" - + $"(this T control, {argsString}) where T : {controlTypeName} => {Environment.NewLine}" - + $" control._setEvent(({eventHandler}) (({lambdaParameters}) => {actionCallStr}), h => control.{eventName} += h);"; + argsString += ", Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble"; + + extensionBody = Environment.NewLine +"{"+ Environment.NewLine+ + $" control.AddHandler({@event.ControlTypeName}.{@eventName}Event, (_, args) => action(args), routes);" + Environment.NewLine + + " return control; " + Environment.NewLine + + "}" + Environment.NewLine; } + + var extensionText = + $"public static {@event.ReturnType} {extensionName}{@event.GenericArg}" + + $"(this {@event.ReturnType} control, {argsString}) {@event.GenericConstraint} " + + extensionBody; + return extensionText; } diff --git a/src/Samples/AvaloniaMarkupSample/MvuSample/SampleMvuView.cs b/src/Samples/AvaloniaMarkupSample/MvuSample/SampleMvuView.cs index ca3706b..899a840 100644 --- a/src/Samples/AvaloniaMarkupSample/MvuSample/SampleMvuView.cs +++ b/src/Samples/AvaloniaMarkupSample/MvuSample/SampleMvuView.cs @@ -93,7 +93,7 @@ public string MyNotifiedProperty public string MvuComponentParam { get; set; } = "Hello nested component"; - private void OnButtonClick(RoutedEventArgs obj) + private void OnButtonClick(RoutedEventArgs args) { var tb = this.FindControl("NamedTextBlock");