Skip to content

Commit

Permalink
chore: Update Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic authored and github-actions[bot] committed Dec 19, 2024
1 parent 937351d commit b09f782
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#nullable enable
using Avalonia.Data;
using Avalonia.Data.Converters;
using System;
using System.Linq.Expressions;
using System.Numerics;
using System.Runtime.CompilerServices;

namespace Avalonia.Markup.Declarative;
[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "1.0.0.0")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public static partial class AspectRatioLayoutItem_MarkupExtensions
{
//================= Properties ======================//
// StartAspectRatioValue

/*BindFromExpressionSetterGenerator*/
public static T StartAspectRatioValue<T>(this T control, Func<System.Double> func, Action<System.Double>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._set(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, func, onChanged, expression);

/*MagicalSetterGenerator*/
public static T StartAspectRatioValue<T>(this T control,System.Double value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._setEx(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, ps, () => control.StartAspectRatioValue = value, bindingMode, converter, bindingSource);

/*BindSetterGenerator*/
public static T StartAspectRatioValue<T>(this T control, IBinding binding) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._set(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, binding);

/*AvaloniaPropertyBindSetterGenerator*/
public static T StartAspectRatioValue<T>(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._set(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, avaloniaProperty, bindingMode, converter, overrideView);

/*MagicalSetterWithConverterGenerator*/
public static T StartAspectRatioValue<TValue,T>(this T control, TValue value, FuncValueConverter<TValue, System.Double> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._setEx(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, ps, () => control.StartAspectRatioValue = converter.TryConvert(value), bindingMode, converter, bindingSource);


// EndAspectRatioValue

/*BindFromExpressionSetterGenerator*/
public static T EndAspectRatioValue<T>(this T control, Func<System.Double> func, Action<System.Double>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._set(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, func, onChanged, expression);

/*MagicalSetterGenerator*/
public static T EndAspectRatioValue<T>(this T control,System.Double value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._setEx(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, ps, () => control.EndAspectRatioValue = value, bindingMode, converter, bindingSource);

/*BindSetterGenerator*/
public static T EndAspectRatioValue<T>(this T control, IBinding binding) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._set(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, binding);

/*AvaloniaPropertyBindSetterGenerator*/
public static T EndAspectRatioValue<T>(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._set(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, avaloniaProperty, bindingMode, converter, overrideView);

/*MagicalSetterWithConverterGenerator*/
public static T EndAspectRatioValue<TValue,T>(this T control, TValue value, FuncValueConverter<TValue, System.Double> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayoutItem
=> control._setEx(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, ps, () => control.EndAspectRatioValue = converter.TryConvert(value), bindingMode, converter, bindingSource);



//================= Styles ======================//
// StartAspectRatioValue

/*ValueStyleSetterGenerator*/
public static Style<T> StartAspectRatioValue<T>(this Style<T> style, System.Double value) where T : Ursa.Controls.AspectRatioLayoutItem
=> style._addSetter(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, value);

/*BindingStyleSetterGenerator*/
public static Style<T> StartAspectRatioValue<T>(this Style<T> style, IBinding binding) where T : Ursa.Controls.AspectRatioLayoutItem
=> style._addSetter(Ursa.Controls.AspectRatioLayoutItem.StartAspectRatioValueProperty, binding);


// EndAspectRatioValue

/*ValueStyleSetterGenerator*/
public static Style<T> EndAspectRatioValue<T>(this Style<T> style, System.Double value) where T : Ursa.Controls.AspectRatioLayoutItem
=> style._addSetter(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, value);

/*BindingStyleSetterGenerator*/
public static Style<T> EndAspectRatioValue<T>(this Style<T> style, IBinding binding) where T : Ursa.Controls.AspectRatioLayoutItem
=> style._addSetter(Ursa.Controls.AspectRatioLayoutItem.EndAspectRatioValueProperty, binding);



}
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
#nullable enable
using Avalonia.Data;
using Avalonia.Data.Converters;
using System;
using System.Linq.Expressions;
using System.Numerics;
using System.Runtime.CompilerServices;

namespace Avalonia.Markup.Declarative;
[global::System.CodeDom.Compiler.GeneratedCode("AvaloniaExtensionGenerator", "1.0.0.0")]
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public static partial class AspectRatioLayout_MarkupExtensions
{
//================= Properties ======================//
// Items

/*BindFromExpressionSetterGenerator*/
public static T Items<T>(this T control, Func<System.Collections.Generic.List<Ursa.Controls.AspectRatioLayoutItem>> func, Action<System.Collections.Generic.List<Ursa.Controls.AspectRatioLayoutItem>>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.ItemsProperty, func, onChanged, expression);

/*MagicalSetterGenerator*/
public static T Items<T>(this T control,System.Collections.Generic.List<Ursa.Controls.AspectRatioLayoutItem> value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.ItemsProperty, ps, () => control.Items = value, bindingMode, converter, bindingSource);

/*BindSetterGenerator*/
public static T Items<T>(this T control, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.ItemsProperty, binding);

/*AvaloniaPropertyBindSetterGenerator*/
public static T Items<T>(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.ItemsProperty, avaloniaProperty, bindingMode, converter, overrideView);

/*MagicalSetterWithConverterGenerator*/
public static T Items<TValue,T>(this T control, TValue value, FuncValueConverter<TValue, System.Collections.Generic.List<Ursa.Controls.AspectRatioLayoutItem>> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.ItemsProperty, ps, () => control.Items = converter.TryConvert(value), bindingMode, converter, bindingSource);


// AspectRatioTolerance

/*BindFromExpressionSetterGenerator*/
public static T AspectRatioTolerance<T>(this T control, Func<System.Double> func, Action<System.Double>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, func, onChanged, expression);

/*MagicalSetterGenerator*/
public static T AspectRatioTolerance<T>(this T control,System.Double value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, ps, () => control.AspectRatioTolerance = value, bindingMode, converter, bindingSource);

/*BindSetterGenerator*/
public static T AspectRatioTolerance<T>(this T control, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, binding);

/*AvaloniaPropertyBindSetterGenerator*/
public static T AspectRatioTolerance<T>(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, avaloniaProperty, bindingMode, converter, overrideView);

/*MagicalSetterWithConverterGenerator*/
public static T AspectRatioTolerance<TValue,T>(this T control, TValue value, FuncValueConverter<TValue, System.Double> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, ps, () => control.AspectRatioTolerance = converter.TryConvert(value), bindingMode, converter, bindingSource);


// CurrentAspectRatioMode

/*BindFromExpressionSetterGenerator*/
public static T CurrentAspectRatioMode<T>(this T control, Func<Ursa.Controls.AspectRatioMode> func, Action<Ursa.Controls.AspectRatioMode>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.CurrentAspectRatioModeProperty, func, onChanged, expression);

/*MagicalSetterGenerator*/
public static T CurrentAspectRatioMode<T>(this T control,Ursa.Controls.AspectRatioMode value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.CurrentAspectRatioModeProperty, ps, () => control.CurrentAspectRatioMode = value, bindingMode, converter, bindingSource);

/*BindSetterGenerator*/
public static T CurrentAspectRatioMode<T>(this T control, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.CurrentAspectRatioModeProperty, binding);

/*AvaloniaPropertyBindSetterGenerator*/
public static T CurrentAspectRatioMode<T>(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.CurrentAspectRatioModeProperty, avaloniaProperty, bindingMode, converter, overrideView);

/*MagicalSetterWithConverterGenerator*/
public static T CurrentAspectRatioMode<TValue,T>(this T control, TValue value, FuncValueConverter<TValue, Ursa.Controls.AspectRatioMode> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.CurrentAspectRatioModeProperty, ps, () => control.CurrentAspectRatioMode = converter.TryConvert(value), bindingMode, converter, bindingSource);


// AspectRatioValue

/*BindFromExpressionSetterGenerator*/
public static T AspectRatioValue<T>(this T control, Func<System.Double> func, Action<System.Double>? onChanged = null, [CallerArgumentExpression("func")] string? expression = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, func, onChanged, expression);

/*MagicalSetterGenerator*/
public static T AspectRatioValue<T>(this T control,System.Double value, BindingMode? bindingMode = null, IValueConverter? converter = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, ps, () => control.AspectRatioValue = value, bindingMode, converter, bindingSource);

/*BindSetterGenerator*/
public static T AspectRatioValue<T>(this T control, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, binding);

/*AvaloniaPropertyBindSetterGenerator*/
public static T AspectRatioValue<T>(this T control, AvaloniaProperty avaloniaProperty, BindingMode? bindingMode = null, IValueConverter? converter = null, ViewBase? overrideView = null) where T : Ursa.Controls.AspectRatioLayout
=> control._set(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, avaloniaProperty, bindingMode, converter, overrideView);

/*MagicalSetterWithConverterGenerator*/
public static T AspectRatioValue<TValue,T>(this T control, TValue value, FuncValueConverter<TValue, System.Double> converter, BindingMode? bindingMode = null, object? bindingSource = null, [CallerArgumentExpression("value")] string? ps = null) where T : Ursa.Controls.AspectRatioLayout
=> control._setEx(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, ps, () => control.AspectRatioValue = converter.TryConvert(value), bindingMode, converter, bindingSource);



//================= Styles ======================//
// Items

/*ValueStyleSetterGenerator*/
public static Style<T> Items<T>(this Style<T> style, System.Collections.Generic.List<Ursa.Controls.AspectRatioLayoutItem> value) where T : Ursa.Controls.AspectRatioLayout
=> style._addSetter(Ursa.Controls.AspectRatioLayout.ItemsProperty, value);

/*BindingStyleSetterGenerator*/
public static Style<T> Items<T>(this Style<T> style, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> style._addSetter(Ursa.Controls.AspectRatioLayout.ItemsProperty, binding);


// AspectRatioTolerance

/*ValueStyleSetterGenerator*/
public static Style<T> AspectRatioTolerance<T>(this Style<T> style, System.Double value) where T : Ursa.Controls.AspectRatioLayout
=> style._addSetter(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, value);

/*BindingStyleSetterGenerator*/
public static Style<T> AspectRatioTolerance<T>(this Style<T> style, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> style._addSetter(Ursa.Controls.AspectRatioLayout.AspectRatioToleranceProperty, binding);


// AspectRatioValue

/*ValueStyleSetterGenerator*/
public static Style<T> AspectRatioValue<T>(this Style<T> style, System.Double value) where T : Ursa.Controls.AspectRatioLayout
=> style._addSetter(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, value);

/*BindingStyleSetterGenerator*/
public static Style<T> AspectRatioValue<T>(this Style<T> style, IBinding binding) where T : Ursa.Controls.AspectRatioLayout
=> style._addSetter(Ursa.Controls.AspectRatioLayout.AspectRatioValueProperty, binding);



}
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public static partial class CalendarYearButton_MarkupExtensions
// ItemSelected

/*ActionToEventGenerator*/
//public static T OnItemSelected<T>(this T control, Action<Ursa.Controls.CalendarDayButtonEventArgs> 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<T>(this T control, Action<Ursa.Controls.CalendarDayButtonEventArgs> 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);

Check failure on line 20 in src/KubeUI.Core/ControlExtensions.Generated/CalendarYearButton_MarkupExtensions.g.cs

View workflow job for this annotation

GitHub Actions / Build & Test

Argument 1: cannot convert from 'Ursa.Controls.CalendarYearButtonEventArgs' to 'Ursa.Controls.CalendarDayButtonEventArgs'

Check failure on line 20 in src/KubeUI.Core/ControlExtensions.Generated/CalendarYearButton_MarkupExtensions.g.cs

View workflow job for this annotation

GitHub Actions / Build & Test

Argument 1: cannot convert from 'Ursa.Controls.CalendarYearButtonEventArgs' to 'Ursa.Controls.CalendarDayButtonEventArgs'
return control;
}



Expand Down
Loading

0 comments on commit b09f782

Please sign in to comment.