-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
937351d
commit b09f782
Showing
4 changed files
with
309 additions
and
80 deletions.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
src/KubeUI.Core/ControlExtensions.Generated/AspectRatioLayoutItem_MarkupExtensions.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
|
||
} |
143 changes: 143 additions & 0 deletions
143
src/KubeUI.Core/ControlExtensions.Generated/AspectRatioLayout_MarkupExtensions.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.