From 9659b830cf9e25562a8089705a822d75a9c1155a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:25:46 +0000 Subject: [PATCH] chore: Update Extensions --- .../CalendarYearButton_MarkupExtensions.g.cs | 10 +- .../Pagination_MarkupExtensions.g.cs | 150 +++++++++--------- 2 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/KubeUI.Core/ControlExtensions.Generated/CalendarYearButton_MarkupExtensions.g.cs b/src/KubeUI.Core/ControlExtensions.Generated/CalendarYearButton_MarkupExtensions.g.cs index 09a975a1..35c58b15 100644 --- a/src/KubeUI.Core/ControlExtensions.Generated/CalendarYearButton_MarkupExtensions.g.cs +++ b/src/KubeUI.Core/ControlExtensions.Generated/CalendarYearButton_MarkupExtensions.g.cs @@ -15,11 +15,11 @@ public static partial class CalendarYearButton_MarkupExtensions // ItemSelected /*ActionToEventGenerator*/ -//public static T OnItemSelected(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Ursa.Controls.CalendarYearButton -//{ -// control.AddHandler(Ursa.Controls.CalendarYearButton.ItemSelectedEvent, (_, args) => action(args), routes); -// return control; -//} +public static T OnItemSelected(this T control, Action action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Ursa.Controls.CalendarYearButton +{ + control.AddHandler(Ursa.Controls.CalendarYearButton.ItemSelectedEvent, (_, args) => action(args), routes); + return control; +} diff --git a/src/KubeUI.Core/ControlExtensions.Generated/Pagination_MarkupExtensions.g.cs b/src/KubeUI.Core/ControlExtensions.Generated/Pagination_MarkupExtensions.g.cs index e2fed8b0..7aa0c57b 100644 --- a/src/KubeUI.Core/ControlExtensions.Generated/Pagination_MarkupExtensions.g.cs +++ b/src/KubeUI.Core/ControlExtensions.Generated/Pagination_MarkupExtensions.g.cs @@ -15,230 +15,230 @@ public static partial class Pagination_MarkupExtensions // CurrentPage /*BindFromExpressionSetterGenerator*/ -public static T CurrentPage(this T control, Func> func, Action>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T CurrentPage(this T control, Func> func, Action>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CurrentPageProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T CurrentPage(this T control,System.Nullable value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T CurrentPage(this T control,System.Nullable value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.CurrentPageProperty, ps, () => control.CurrentPage = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T CurrentPage(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T CurrentPage(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CurrentPageProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T CurrentPage(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T CurrentPage(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CurrentPageProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T CurrentPage(this T control, TValue value, FuncValueConverter> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T CurrentPage(this T control, TValue value, FuncValueConverter> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.CurrentPageProperty, ps, () => control.CurrentPage = converter.TryConvert(value), bindingMode, converter, bindingSource); // Command /*BindFromExpressionSetterGenerator*/ -public static T Command(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T Command(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CommandProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T Command(this T control,System.Windows.Input.ICommand value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T Command(this T control,System.Windows.Input.ICommand value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.CommandProperty, ps, () => control.Command = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T Command(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T Command(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CommandProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T Command(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T Command(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CommandProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T Command(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T Command(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.CommandProperty, ps, () => control.Command = converter.TryConvert(value), bindingMode, converter, bindingSource); // CommandParameter /*BindFromExpressionSetterGenerator*/ -public static T CommandParameter(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T CommandParameter(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CommandParameterProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T CommandParameter(this T control,System.Object value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T CommandParameter(this T control,System.Object value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.CommandParameterProperty, ps, () => control.CommandParameter = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T CommandParameter(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T CommandParameter(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CommandParameterProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T CommandParameter(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T CommandParameter(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.CommandParameterProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T CommandParameter(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T CommandParameter(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.CommandParameterProperty, ps, () => control.CommandParameter = converter.TryConvert(value), bindingMode, converter, bindingSource); // TotalCount /*BindFromExpressionSetterGenerator*/ -public static T TotalCount(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T TotalCount(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.TotalCountProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T TotalCount(this T control,System.Int32 value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T TotalCount(this T control,System.Int32 value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.TotalCountProperty, ps, () => control.TotalCount = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T TotalCount(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T TotalCount(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.TotalCountProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T TotalCount(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T TotalCount(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.TotalCountProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T TotalCount(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T TotalCount(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.TotalCountProperty, ps, () => control.TotalCount = converter.TryConvert(value), bindingMode, converter, bindingSource); // PageSize /*BindFromExpressionSetterGenerator*/ -public static T PageSize(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T PageSize(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageSizeProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T PageSize(this T control,System.Int32 value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T PageSize(this T control,System.Int32 value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.PageSizeProperty, ps, () => control.PageSize = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T PageSize(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T PageSize(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageSizeProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T PageSize(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T PageSize(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageSizeProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T PageSize(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T PageSize(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.PageSizeProperty, ps, () => control.PageSize = converter.TryConvert(value), bindingMode, converter, bindingSource); // PageSizeOptions /*BindFromExpressionSetterGenerator*/ -public static T PageSizeOptions(this T control, Func> func, Action>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T PageSizeOptions(this T control, Func> func, Action>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageSizeOptionsProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T PageSizeOptions(this T control,Avalonia.Collections.AvaloniaList value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T PageSizeOptions(this T control,Avalonia.Collections.AvaloniaList value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.PageSizeOptionsProperty, ps, () => control.PageSizeOptions = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T PageSizeOptions(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T PageSizeOptions(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageSizeOptionsProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T PageSizeOptions(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T PageSizeOptions(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageSizeOptionsProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T PageSizeOptions(this T control, TValue value, FuncValueConverter> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T PageSizeOptions(this T control, TValue value, FuncValueConverter> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.PageSizeOptionsProperty, ps, () => control.PageSizeOptions = converter.TryConvert(value), bindingMode, converter, bindingSource); // PageButtonTheme /*BindFromExpressionSetterGenerator*/ -public static T PageButtonTheme(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T PageButtonTheme(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageButtonThemeProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T PageButtonTheme(this T control,Avalonia.Styling.ControlTheme value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T PageButtonTheme(this T control,Avalonia.Styling.ControlTheme value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.PageButtonThemeProperty, ps, () => control.PageButtonTheme = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T PageButtonTheme(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T PageButtonTheme(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageButtonThemeProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T PageButtonTheme(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T PageButtonTheme(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.PageButtonThemeProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T PageButtonTheme(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T PageButtonTheme(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.PageButtonThemeProperty, ps, () => control.PageButtonTheme = converter.TryConvert(value), bindingMode, converter, bindingSource); // ShowPageSizeSelector /*BindFromExpressionSetterGenerator*/ -public static T ShowPageSizeSelector(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T ShowPageSizeSelector(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T ShowPageSizeSelector(this T control,System.Boolean value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T ShowPageSizeSelector(this T control,System.Boolean value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, ps, () => control.ShowPageSizeSelector = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T ShowPageSizeSelector(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T ShowPageSizeSelector(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T ShowPageSizeSelector(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T ShowPageSizeSelector(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T ShowPageSizeSelector(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T ShowPageSizeSelector(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, ps, () => control.ShowPageSizeSelector = converter.TryConvert(value), bindingMode, converter, bindingSource); // ShowQuickJump /*BindFromExpressionSetterGenerator*/ -public static T ShowQuickJump(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T ShowQuickJump(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.ShowQuickJumpProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T ShowQuickJump(this T control,System.Boolean value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T ShowQuickJump(this T control,System.Boolean value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.ShowQuickJumpProperty, ps, () => control.ShowQuickJump = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T ShowQuickJump(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T ShowQuickJump(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.ShowQuickJumpProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T ShowQuickJump(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T ShowQuickJump(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.ShowQuickJumpProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T ShowQuickJump(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T ShowQuickJump(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.ShowQuickJumpProperty, ps, () => control.ShowQuickJump = converter.TryConvert(value), bindingMode, converter, bindingSource); // DisplayCurrentPageInQuickJumper /*BindFromExpressionSetterGenerator*/ -public static T DisplayCurrentPageInQuickJumper(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination +public static T DisplayCurrentPageInQuickJumper(this T control, Func func, Action? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, func, onChanged, expression); /*MagicalSetterGenerator*/ -public static T DisplayCurrentPageInQuickJumper(this T control,System.Boolean value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T DisplayCurrentPageInQuickJumper(this T control,System.Boolean value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, ps, () => control.DisplayCurrentPageInQuickJumper = value, bindingMode, converter, bindingSource); /*BindSetterGenerator*/ -public static T DisplayCurrentPageInQuickJumper(this T control, IBinding binding) where T : Ursa.Controls.Pagination +public static T DisplayCurrentPageInQuickJumper(this T control, IBinding binding) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, binding); /*AvaloniaPropertyBindSetterGenerator*/ -public static T DisplayCurrentPageInQuickJumper(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination +public static T DisplayCurrentPageInQuickJumper(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.Pagination => control._set(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, avaloniaProperty, bindingMode, converter, overrideView); /*MagicalSetterWithConverterGenerator*/ -public static T DisplayCurrentPageInQuickJumper(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination +public static T DisplayCurrentPageInQuickJumper(this T control, TValue value, FuncValueConverter converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.Pagination => control._setEx(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, ps, () => control.DisplayCurrentPageInQuickJumper = converter.TryConvert(value), bindingMode, converter, bindingSource); @@ -247,11 +247,11 @@ public static T DisplayCurrentPageInQuickJumper(this T control, TValue // CurrentPageChanged /*ActionToEventGenerator*/ -//public static T OnCurrentPageChanged(this T control, Action> action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Ursa.Controls.Pagination -//{ -// control.AddHandler(Ursa.Controls.Pagination.CurrentPageChangedEvent, (_, args) => action(args), routes); -// return control; -//} +public static T OnCurrentPageChanged(this T control, Action> action, Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Tunnel | Avalonia.Interactivity.RoutingStrategies.Bubble) where T : Ursa.Controls.Pagination +{ + control.AddHandler(Ursa.Controls.Pagination.CurrentPageChangedEvent, (_, args) => action(args), routes); + return control; +} @@ -260,110 +260,110 @@ public static T DisplayCurrentPageInQuickJumper(this T control, TValue // CurrentPage /*ValueStyleSetterGenerator*/ -public static Style CurrentPage(this Style style, System.Nullable value) where T : Ursa.Controls.Pagination +public static Style CurrentPage(this Style style, System.Nullable value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.CurrentPageProperty, value); /*BindingStyleSetterGenerator*/ -public static Style CurrentPage(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style CurrentPage(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.CurrentPageProperty, binding); // Command /*ValueStyleSetterGenerator*/ -public static Style Command(this Style style, System.Windows.Input.ICommand value) where T : Ursa.Controls.Pagination +public static Style Command(this Style style, System.Windows.Input.ICommand value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.CommandProperty, value); /*BindingStyleSetterGenerator*/ -public static Style Command(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style Command(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.CommandProperty, binding); // CommandParameter /*ValueStyleSetterGenerator*/ -public static Style CommandParameter(this Style style, System.Object value) where T : Ursa.Controls.Pagination +public static Style CommandParameter(this Style style, System.Object value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.CommandParameterProperty, value); /*BindingStyleSetterGenerator*/ -public static Style CommandParameter(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style CommandParameter(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.CommandParameterProperty, binding); // TotalCount /*ValueStyleSetterGenerator*/ -public static Style TotalCount(this Style style, System.Int32 value) where T : Ursa.Controls.Pagination +public static Style TotalCount(this Style style, System.Int32 value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.TotalCountProperty, value); /*BindingStyleSetterGenerator*/ -public static Style TotalCount(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style TotalCount(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.TotalCountProperty, binding); // PageSize /*ValueStyleSetterGenerator*/ -public static Style PageSize(this Style style, System.Int32 value) where T : Ursa.Controls.Pagination +public static Style PageSize(this Style style, System.Int32 value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.PageSizeProperty, value); /*BindingStyleSetterGenerator*/ -public static Style PageSize(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style PageSize(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.PageSizeProperty, binding); // PageSizeOptions /*ValueStyleSetterGenerator*/ -public static Style PageSizeOptions(this Style style, Avalonia.Collections.AvaloniaList value) where T : Ursa.Controls.Pagination +public static Style PageSizeOptions(this Style style, Avalonia.Collections.AvaloniaList value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.PageSizeOptionsProperty, value); /*BindingStyleSetterGenerator*/ -public static Style PageSizeOptions(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style PageSizeOptions(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.PageSizeOptionsProperty, binding); // PageButtonTheme /*ValueStyleSetterGenerator*/ -public static Style PageButtonTheme(this Style style, Avalonia.Styling.ControlTheme value) where T : Ursa.Controls.Pagination +public static Style PageButtonTheme(this Style style, Avalonia.Styling.ControlTheme value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.PageButtonThemeProperty, value); /*BindingStyleSetterGenerator*/ -public static Style PageButtonTheme(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style PageButtonTheme(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.PageButtonThemeProperty, binding); // ShowPageSizeSelector /*ValueStyleSetterGenerator*/ -public static Style ShowPageSizeSelector(this Style style, System.Boolean value) where T : Ursa.Controls.Pagination +public static Style ShowPageSizeSelector(this Style style, System.Boolean value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, value); /*BindingStyleSetterGenerator*/ -public static Style ShowPageSizeSelector(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style ShowPageSizeSelector(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.ShowPageSizeSelectorProperty, binding); // ShowQuickJump /*ValueStyleSetterGenerator*/ -public static Style ShowQuickJump(this Style style, System.Boolean value) where T : Ursa.Controls.Pagination +public static Style ShowQuickJump(this Style style, System.Boolean value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.ShowQuickJumpProperty, value); /*BindingStyleSetterGenerator*/ -public static Style ShowQuickJump(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style ShowQuickJump(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.ShowQuickJumpProperty, binding); // DisplayCurrentPageInQuickJumper /*ValueStyleSetterGenerator*/ -public static Style DisplayCurrentPageInQuickJumper(this Style style, System.Boolean value) where T : Ursa.Controls.Pagination +public static Style DisplayCurrentPageInQuickJumper(this Style style, System.Boolean value) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, value); /*BindingStyleSetterGenerator*/ -public static Style DisplayCurrentPageInQuickJumper(this Style style, IBinding binding) where T : Ursa.Controls.Pagination +public static Style DisplayCurrentPageInQuickJumper(this Style style, IBinding binding) where T : Ursa.Controls.Pagination => style._addSetter(Ursa.Controls.Pagination.DisplayCurrentPageInQuickJumperProperty, binding);