This commit is contained in:
Wiesław Šoltés 2024-07-22 22:59:47 +02:00
Родитель 38248467db
Коммит 57b298fea0
102 изменённых файлов: 10125 добавлений и 94 удалений

Просмотреть файл

@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>11.0.10</VersionPrefix>
<VersionPrefix>11.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
@ -13,7 +13,7 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<AvaloniaVersion>11.0.10</AvaloniaVersion>
<SystemReactiveVersion>5.0.0</SystemReactiveVersion>
<AvaloniaVersion>11.1.0</AvaloniaVersion>
<SystemReactiveVersion>6.0.0</SystemReactiveVersion>
</PropertyGroup>
</Project>

Просмотреть файл

@ -12,13 +12,13 @@ https://user-images.githubusercontent.com/2297442/132313187-32f18c4b-e894-46db-9
### NXUI
```xml
<PackageReference Include="NXUI" Version="11.0.10" />
<PackageReference Include="NXUI" Version="11.1.0" />
```
or for F# support:
```xml
<PackageReference Include="NXUI.FSharp" Version="11.0.10" />
<PackageReference Include="NXUI.FSharp" Version="11.1.0" />
```
Additionally, depending on the application type:
@ -27,11 +27,11 @@ Additionally, depending on the application type:
For Desktop extensions:
```xml
<PackageReference Include="NXUI.Desktop" Version="11.0.10" />
<PackageReference Include="NXUI.Desktop" Version="11.1.0" />
```
or using plain Avalonia:
```xml
<PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
<PackageReference Include="Avalonia.Desktop" Version="11.1.0" />
```
### Browser

Просмотреть файл

@ -6,6 +6,104 @@ namespace NXUI.FSharp.Extensions;
/// </summary>
public static partial class AutoCompleteBoxExtensions
{
// Avalonia.Controls.AutoCompleteBox.CaretIndexProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretIndex<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.CaretIndexProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretIndex<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.CaretIndexProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretIndex<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.CaretIndexProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindCaretIndex(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.CaretIndexProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveCaretIndex(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnCaretIndex<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Int32>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.WatermarkProperty
/// <summary>
@ -1786,6 +1884,300 @@ public static partial class AutoCompleteBoxExtensions
return obj;
}
// Avalonia.Controls.AutoCompleteBox.MaxLengthProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T maxLength<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.MaxLengthProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T maxLength<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.MaxLengthProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T maxLength<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.MaxLengthProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindMaxLength(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.MaxLengthProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveMaxLength(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnMaxLength<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Int32>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerLeftContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerLeftContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerLeftContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerLeftContent(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerLeftContent(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerLeftContent<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Object>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerRightContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerRightContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerRightContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerRightContent(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerRightContent(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerRightContent<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Object>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.SelectionChangedEvent
/// <summary>

Просмотреть файл

@ -104,6 +104,140 @@ public static partial class BorderExtensions
return obj;
}
// Avalonia.Controls.Border.BackgroundSizingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(this T obj, Avalonia.Media.BackgroundSizing value) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Border
{
var descriptor = Avalonia.Controls.Border.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(
this T obj,
IObservable<Avalonia.Media.BackgroundSizing> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Border
{
var descriptor = Avalonia.Controls.Border.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBackgroundSizing(
this Avalonia.Controls.Border obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Border.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.BackgroundSizing> ObserveBackgroundSizing(this Avalonia.Controls.Border obj)
{
return obj.GetObservable(Avalonia.Controls.Border.BackgroundSizingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBackgroundSizing<T>(this T obj, Action<Avalonia.Controls.Border, IObservable<Avalonia.Media.BackgroundSizing>> handler) where T : Avalonia.Controls.Border
{
var observable = obj.GetObservable(Avalonia.Controls.Border.BackgroundSizingProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.InnerBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingInnerBorderEdge<T>(this T obj) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.InnerBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.OuterBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingOuterBorderEdge<T>(this T obj) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.OuterBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.CenterBorder"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingCenterBorder<T>(this T obj) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.CenterBorder;
return obj;
}
// Avalonia.Controls.Border.BorderBrushProperty
/// <summary>

Просмотреть файл

@ -733,4 +733,102 @@ public static partial class ComboBoxExtensions
obj[Avalonia.Controls.ComboBox.VerticalContentAlignmentProperty] = Avalonia.Layout.VerticalAlignment.Bottom;
return obj;
}
// Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T selectionBoxItemTemplate<T>(this T obj, Avalonia.Controls.Templates.IDataTemplate value) where T : Avalonia.Controls.ComboBox
{
obj[Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T selectionBoxItemTemplate<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.ComboBox
{
var descriptor = Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T selectionBoxItemTemplate<T>(
this T obj,
IObservable<Avalonia.Controls.Templates.IDataTemplate> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.ComboBox
{
var descriptor = Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindSelectionBoxItemTemplate(
this Avalonia.Controls.ComboBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Controls.Templates.IDataTemplate> ObserveSelectionBoxItemTemplate(this Avalonia.Controls.ComboBox obj)
{
return obj.GetObservable(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnSelectionBoxItemTemplate<T>(this T obj, Action<Avalonia.Controls.ComboBox, IObservable<Avalonia.Controls.Templates.IDataTemplate>> handler) where T : Avalonia.Controls.ComboBox
{
var observable = obj.GetObservable(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -104,6 +104,140 @@ public static partial class ContentPresenterExtensions
return obj;
}
// Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(this T obj, Avalonia.Media.BackgroundSizing value) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.ContentPresenter
{
var descriptor = Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(
this T obj,
IObservable<Avalonia.Media.BackgroundSizing> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.ContentPresenter
{
var descriptor = Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBackgroundSizing(
this Avalonia.Controls.Presenters.ContentPresenter obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.BackgroundSizing> ObserveBackgroundSizing(this Avalonia.Controls.Presenters.ContentPresenter obj)
{
return obj.GetObservable(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBackgroundSizing<T>(this T obj, Action<Avalonia.Controls.Presenters.ContentPresenter, IObservable<Avalonia.Media.BackgroundSizing>> handler) where T : Avalonia.Controls.Presenters.ContentPresenter
{
var observable = obj.GetObservable(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.InnerBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingInnerBorderEdge<T>(this T obj) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.InnerBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.OuterBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingOuterBorderEdge<T>(this T obj) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.OuterBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.CenterBorder"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingCenterBorder<T>(this T obj) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.CenterBorder;
return obj;
}
// Avalonia.Controls.Presenters.ContentPresenter.BorderBrushProperty
/// <summary>

Просмотреть файл

@ -202,6 +202,104 @@ public static partial class DataValidationErrorsExtensions
return obj;
}
// Avalonia.Controls.DataValidationErrors.ErrorConverterProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T errorConverter<T>(this T obj, System.Func<System.Object,System.Object> value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.DataValidationErrors.ErrorConverterProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T errorConverter<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.DataValidationErrors.ErrorConverterProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T errorConverter<T>(
this T obj,
IObservable<System.Func<System.Object,System.Object>> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.DataValidationErrors.ErrorConverterProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindErrorConverter(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.DataValidationErrors.ErrorConverterProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Func<System.Object,System.Object>> ObserveErrorConverter(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnErrorConverter<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Func<System.Object,System.Object>>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.DataValidationErrors.ErrorTemplateProperty
/// <summary>

Просмотреть файл

@ -0,0 +1,204 @@
// <auto-generated />
namespace NXUI.FSharp.Extensions;
/// <summary>
/// The avalonia <see cref="Avalonia.Controls.HyperlinkButton"/> class property extension methods.
/// </summary>
public static partial class HyperlinkButtonExtensions
{
// Avalonia.Controls.HyperlinkButton.IsVisitedProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isVisited<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.HyperlinkButton
{
obj[Avalonia.Controls.HyperlinkButton.IsVisitedProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isVisited<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.IsVisitedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isVisited<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.IsVisitedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsVisited(
this Avalonia.Controls.HyperlinkButton obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.HyperlinkButton.IsVisitedProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsVisited(this Avalonia.Controls.HyperlinkButton obj)
{
return obj.GetObservable(Avalonia.Controls.HyperlinkButton.IsVisitedProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsVisited<T>(this T obj, Action<Avalonia.Controls.HyperlinkButton, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.HyperlinkButton
{
var observable = obj.GetObservable(Avalonia.Controls.HyperlinkButton.IsVisitedProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.HyperlinkButton.NavigateUriProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T navigateUri<T>(this T obj, System.Uri value) where T : Avalonia.Controls.HyperlinkButton
{
obj[Avalonia.Controls.HyperlinkButton.NavigateUriProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T navigateUri<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.NavigateUriProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T navigateUri<T>(
this T obj,
IObservable<System.Uri> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.NavigateUriProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindNavigateUri(
this Avalonia.Controls.HyperlinkButton obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.HyperlinkButton.NavigateUriProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Uri> ObserveNavigateUri(this Avalonia.Controls.HyperlinkButton obj)
{
return obj.GetObservable(Avalonia.Controls.HyperlinkButton.NavigateUriProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnNavigateUri<T>(this T obj, Action<Avalonia.Controls.HyperlinkButton, IObservable<System.Uri>> handler) where T : Avalonia.Controls.HyperlinkButton
{
var observable = obj.GetObservable(Avalonia.Controls.HyperlinkButton.NavigateUriProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -594,6 +594,336 @@ public static partial class MenuItemExtensions
return obj;
}
// Avalonia.Controls.MenuItem.ToggleTypeProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T toggleType<T>(this T obj, Avalonia.Controls.MenuItemToggleType value) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T toggleType<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.ToggleTypeProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T toggleType<T>(
this T obj,
IObservable<Avalonia.Controls.MenuItemToggleType> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.ToggleTypeProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindToggleType(
this Avalonia.Controls.MenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.MenuItem.ToggleTypeProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Controls.MenuItemToggleType> ObserveToggleType(this Avalonia.Controls.MenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.MenuItem.ToggleTypeProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnToggleType<T>(this T obj, Action<Avalonia.Controls.MenuItem, IObservable<Avalonia.Controls.MenuItemToggleType>> handler) where T : Avalonia.Controls.MenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.MenuItem.ToggleTypeProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property value to <see cref="Avalonia.Controls.MenuItemToggleType.None"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleTypeNone<T>(this T obj) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = Avalonia.Controls.MenuItemToggleType.None;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property value to <see cref="Avalonia.Controls.MenuItemToggleType.CheckBox"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleTypeCheckBox<T>(this T obj) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = Avalonia.Controls.MenuItemToggleType.CheckBox;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property value to <see cref="Avalonia.Controls.MenuItemToggleType.Radio"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleTypeRadio<T>(this T obj) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = Avalonia.Controls.MenuItemToggleType.Radio;
return obj;
}
// Avalonia.Controls.MenuItem.IsCheckedProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isChecked<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.IsCheckedProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isChecked<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.IsCheckedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isChecked<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.IsCheckedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsChecked(
this Avalonia.Controls.MenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.MenuItem.IsCheckedProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsChecked(this Avalonia.Controls.MenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.MenuItem.IsCheckedProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsChecked<T>(this T obj, Action<Avalonia.Controls.MenuItem, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.MenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.MenuItem.IsCheckedProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.MenuItem.GroupNameProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T groupName<T>(this T obj, System.String value) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.GroupNameProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T groupName<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.GroupNameProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T groupName<T>(
this T obj,
IObservable<System.String> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.GroupNameProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindGroupName(
this Avalonia.Controls.MenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.MenuItem.GroupNameProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.String> ObserveGroupName(this Avalonia.Controls.MenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.MenuItem.GroupNameProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnGroupName<T>(this T obj, Action<Avalonia.Controls.MenuItem, IObservable<System.String>> handler) where T : Avalonia.Controls.MenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.MenuItem.GroupNameProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.MenuItem.ClickEvent
/// <summary>

Просмотреть файл

@ -1021,4 +1021,102 @@ public static partial class NativeMenuItemExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.NativeMenuItem.IsVisibleProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isVisible<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.NativeMenuItem
{
obj[Avalonia.Controls.NativeMenuItem.IsVisibleProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isVisible<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NativeMenuItem
{
var descriptor = Avalonia.Controls.NativeMenuItem.IsVisibleProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isVisible<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NativeMenuItem
{
var descriptor = Avalonia.Controls.NativeMenuItem.IsVisibleProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsVisible(
this Avalonia.Controls.NativeMenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.NativeMenuItem.IsVisibleProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsVisible(this Avalonia.Controls.NativeMenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.NativeMenuItem.IsVisibleProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsVisible<T>(this T obj, Action<Avalonia.Controls.NativeMenuItem, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.NativeMenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.NativeMenuItem.IsVisibleProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -1996,6 +1996,202 @@ public static partial class NumericUpDownExtensions
return obj;
}
// Avalonia.Controls.NumericUpDown.InnerLeftContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerLeftContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.NumericUpDown
{
obj[Avalonia.Controls.NumericUpDown.InnerLeftContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerLeftContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerLeftContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerLeftContent(
this Avalonia.Controls.NumericUpDown obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerLeftContent(this Avalonia.Controls.NumericUpDown obj)
{
return obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerLeftContent<T>(this T obj, Action<Avalonia.Controls.NumericUpDown, IObservable<System.Object>> handler) where T : Avalonia.Controls.NumericUpDown
{
var observable = obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.NumericUpDown.InnerRightContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerRightContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.NumericUpDown
{
obj[Avalonia.Controls.NumericUpDown.InnerRightContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerRightContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T innerRightContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerRightContent(
this Avalonia.Controls.NumericUpDown obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerRightContent(this Avalonia.Controls.NumericUpDown obj)
{
return obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerRightContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerRightContent<T>(this T obj, Action<Avalonia.Controls.NumericUpDown, IObservable<System.Object>> handler) where T : Avalonia.Controls.NumericUpDown
{
var observable = obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerRightContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.NumericUpDown.ValueChangedEvent
/// <summary>

Просмотреть файл

@ -0,0 +1,106 @@
// <auto-generated />
namespace NXUI.FSharp.Extensions;
/// <summary>
/// The avalonia <see cref="Avalonia.Media.PathSegment"/> class property extension methods.
/// </summary>
public static partial class PathSegmentExtensions
{
// Avalonia.Media.PathSegment.IsStrokedProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isStroked<T>(this T obj, System.Boolean value) where T : Avalonia.Media.PathSegment
{
obj[Avalonia.Media.PathSegment.IsStrokedProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isStroked<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.PathSegment
{
var descriptor = Avalonia.Media.PathSegment.IsStrokedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T isStroked<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.PathSegment
{
var descriptor = Avalonia.Media.PathSegment.IsStrokedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsStroked(
this Avalonia.Media.PathSegment obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.PathSegment.IsStrokedProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsStroked(this Avalonia.Media.PathSegment obj)
{
return obj.GetObservable(Avalonia.Media.PathSegment.IsStrokedProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsStroked<T>(this T obj, Action<Avalonia.Media.PathSegment, IObservable<System.Boolean>> handler) where T : Avalonia.Media.PathSegment
{
var observable = obj.GetObservable(Avalonia.Media.PathSegment.IsStrokedProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -98,4 +98,97 @@ public static partial class PopupRootExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> value on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value to set for the property.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Controls.Primitives.PopupRoot windowManagerAddShadowHint(this Avalonia.Controls.Primitives.PopupRoot obj, System.Boolean value)
{
obj[Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/> with a source binding specified as a parameter.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Controls.Primitives.PopupRoot windowManagerAddShadowHint(
this Avalonia.Controls.Primitives.PopupRoot obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/> with a source binding specified as an observable.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Controls.Primitives.PopupRoot windowManagerAddShadowHint(
this Avalonia.Controls.Primitives.PopupRoot obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> binding on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindWindowManagerAddShadowHint(
this Avalonia.Controls.Primitives.PopupRoot obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the object, and thereafter whenever the property changes.
/// </returns>
public static IObservable<System.Boolean> ObserveWindowManagerAddShadowHint(this Avalonia.Controls.Primitives.PopupRoot obj)
{
return obj.GetObservable(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty);
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> property on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the property changes.</param>
/// <returns>The target object.</returns>
public static Avalonia.Controls.Primitives.PopupRoot OnWindowManagerAddShadowHint(this Avalonia.Controls.Primitives.PopupRoot obj, Action<Avalonia.Controls.Primitives.PopupRoot, IObservable<System.Boolean>> handler)
{
var observable = obj.GetObservable(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -192,95 +192,188 @@ public static partial class RadialGradientBrushExtensions
return obj;
}
// Avalonia.Media.RadialGradientBrush.RadiusProperty
// Avalonia.Media.RadialGradientBrush.RadiusXProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> value on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Sets a <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> value on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value to set for the property.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush radius(this Avalonia.Media.RadialGradientBrush obj, System.Double value)
public static Avalonia.Media.RadialGradientBrush radiusX(this Avalonia.Media.RadialGradientBrush obj, Avalonia.RelativeScalar value)
{
obj[Avalonia.Media.RadialGradientBrush.RadiusProperty] = value;
obj[Avalonia.Media.RadialGradientBrush.RadiusXProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as a parameter.
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as a parameter.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush radius(
public static Avalonia.Media.RadialGradientBrush radiusX(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusProperty.Bind().WithMode(mode).WithPriority(priority);
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as an observable.
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as an observable.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush radius(
public static Avalonia.Media.RadialGradientBrush radiusX(
this Avalonia.Media.RadialGradientBrush obj,
IObservable<System.Double> observable,
IObservable<Avalonia.RelativeScalar> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusProperty.Bind().WithMode(mode).WithPriority(priority);
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> binding on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Makes a <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> binding on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadius(
/// <returns>A <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusX(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusProperty.Bind().WithMode(mode).WithPriority(priority);
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Gets an observable for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the object, and thereafter whenever the property changes.
/// </returns>
public static IObservable<System.Double> ObserveRadius(this Avalonia.Media.RadialGradientBrush obj)
public static IObservable<Avalonia.RelativeScalar> ObserveRadiusX(this Avalonia.Media.RadialGradientBrush obj)
{
return obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusProperty);
return obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusXProperty);
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> property on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Registers a handler for the <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> property on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the property changes.</param>
/// <returns>The target object.</returns>
public static Avalonia.Media.RadialGradientBrush OnRadius(this Avalonia.Media.RadialGradientBrush obj, Action<Avalonia.Media.RadialGradientBrush, IObservable<System.Double>> handler)
public static Avalonia.Media.RadialGradientBrush OnRadiusX(this Avalonia.Media.RadialGradientBrush obj, Action<Avalonia.Media.RadialGradientBrush, IObservable<Avalonia.RelativeScalar>> handler)
{
var observable = obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusProperty);
var observable = obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusXProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Media.RadialGradientBrush.RadiusYProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> value on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value to set for the property.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush radiusY(this Avalonia.Media.RadialGradientBrush obj, Avalonia.RelativeScalar value)
{
obj[Avalonia.Media.RadialGradientBrush.RadiusYProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as a parameter.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush radiusY(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as an observable.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush radiusY(
this Avalonia.Media.RadialGradientBrush obj,
IObservable<Avalonia.RelativeScalar> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> binding on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusY(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the object, and thereafter whenever the property changes.
/// </returns>
public static IObservable<Avalonia.RelativeScalar> ObserveRadiusY(this Avalonia.Media.RadialGradientBrush obj)
{
return obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusYProperty);
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> property on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the property changes.</param>
/// <returns>The target object.</returns>
public static Avalonia.Media.RadialGradientBrush OnRadiusY(this Avalonia.Media.RadialGradientBrush obj, Action<Avalonia.Media.RadialGradientBrush, IObservable<Avalonia.RelativeScalar>> handler)
{
var observable = obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusYProperty);
handler(obj, observable);
return obj;
}

Просмотреть файл

@ -6,6 +6,202 @@ namespace NXUI.FSharp.Extensions;
/// </summary>
public static partial class RectangleGeometryExtensions
{
// Avalonia.Media.RectangleGeometry.RadiusXProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T radiusX<T>(this T obj, System.Double value) where T : Avalonia.Media.RectangleGeometry
{
obj[Avalonia.Media.RectangleGeometry.RadiusXProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T radiusX<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T radiusX<T>(
this T obj,
IObservable<System.Double> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusX(
this Avalonia.Media.RectangleGeometry obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Double> ObserveRadiusX(this Avalonia.Media.RectangleGeometry obj)
{
return obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusXProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnRadiusX<T>(this T obj, Action<Avalonia.Media.RectangleGeometry, IObservable<System.Double>> handler) where T : Avalonia.Media.RectangleGeometry
{
var observable = obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusXProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Media.RectangleGeometry.RadiusYProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T radiusY<T>(this T obj, System.Double value) where T : Avalonia.Media.RectangleGeometry
{
obj[Avalonia.Media.RectangleGeometry.RadiusYProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T radiusY<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T radiusY<T>(
this T obj,
IObservable<System.Double> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusY(
this Avalonia.Media.RectangleGeometry obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Double> ObserveRadiusY(this Avalonia.Media.RectangleGeometry obj)
{
return obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusYProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnRadiusY<T>(this T obj, Action<Avalonia.Media.RectangleGeometry, IObservable<System.Double>> handler) where T : Avalonia.Media.RectangleGeometry
{
var observable = obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusYProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Media.RectangleGeometry.RectProperty
/// <summary>

Просмотреть файл

@ -344,6 +344,104 @@ public static partial class SelectableTextBlockExtensions
return obj;
}
// Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T selectionForegroundBrush<T>(this T obj, Avalonia.Media.IBrush value) where T : Avalonia.Controls.SelectableTextBlock
{
obj[Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T selectionForegroundBrush<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.SelectableTextBlock
{
var descriptor = Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T selectionForegroundBrush<T>(
this T obj,
IObservable<Avalonia.Media.IBrush> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.SelectableTextBlock
{
var descriptor = Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindSelectionForegroundBrush(
this Avalonia.Controls.SelectableTextBlock obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.IBrush> ObserveSelectionForegroundBrush(this Avalonia.Controls.SelectableTextBlock obj)
{
return obj.GetObservable(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnSelectionForegroundBrush<T>(this T obj, Action<Avalonia.Controls.SelectableTextBlock, IObservable<Avalonia.Media.IBrush>> handler) where T : Avalonia.Controls.SelectableTextBlock
{
var observable = obj.GetObservable(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.SelectableTextBlock.CanCopyProperty
/// <summary>

Просмотреть файл

@ -104,6 +104,140 @@ public static partial class TemplatedControlExtensions
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(this T obj, Avalonia.Media.BackgroundSizing value) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T backgroundSizing<T>(
this T obj,
IObservable<Avalonia.Media.BackgroundSizing> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBackgroundSizing(
this Avalonia.Controls.Primitives.TemplatedControl obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.BackgroundSizing> ObserveBackgroundSizing(this Avalonia.Controls.Primitives.TemplatedControl obj)
{
return obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBackgroundSizing<T>(this T obj, Action<Avalonia.Controls.Primitives.TemplatedControl, IObservable<Avalonia.Media.BackgroundSizing>> handler) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var observable = obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.InnerBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingInnerBorderEdge<T>(this T obj) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.InnerBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.OuterBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingOuterBorderEdge<T>(this T obj) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.OuterBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.CenterBorder"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingCenterBorder<T>(this T obj) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.CenterBorder;
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.BorderBrushProperty
/// <summary>
@ -496,6 +630,104 @@ public static partial class TemplatedControlExtensions
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(this T obj, Avalonia.Media.FontFeatureCollection value) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(
this T obj,
IObservable<Avalonia.Media.FontFeatureCollection> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindFontFeatures(
this Avalonia.Controls.Primitives.TemplatedControl obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.FontFeatureCollection> ObserveFontFeatures(this Avalonia.Controls.Primitives.TemplatedControl obj)
{
return obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnFontFeatures<T>(this T obj, Action<Avalonia.Controls.Primitives.TemplatedControl, IObservable<Avalonia.Media.FontFeatureCollection>> handler) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var observable = obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.FontSizeProperty
/// <summary>

Просмотреть файл

@ -2238,6 +2238,104 @@ public static partial class TextBlockExtensions
return obj;
}
// Avalonia.Controls.TextBlock.FontFeaturesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(this T obj, Avalonia.Media.FontFeatureCollection value) where T : Avalonia.Controls.TextBlock
{
obj[Avalonia.Controls.TextBlock.FontFeaturesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBlock
{
var descriptor = Avalonia.Controls.TextBlock.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(
this T obj,
IObservable<Avalonia.Media.FontFeatureCollection> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBlock
{
var descriptor = Avalonia.Controls.TextBlock.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindFontFeatures(
this Avalonia.Controls.TextBlock obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TextBlock.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.FontFeatureCollection> ObserveFontFeatures(this Avalonia.Controls.TextBlock obj)
{
return obj.GetObservable(Avalonia.Controls.TextBlock.FontFeaturesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnFontFeatures<T>(this T obj, Action<Avalonia.Controls.TextBlock, IObservable<Avalonia.Media.FontFeatureCollection>> handler) where T : Avalonia.Controls.TextBlock
{
var observable = obj.GetObservable(Avalonia.Controls.TextBlock.FontFeaturesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TextBlock.InlinesProperty
/// <summary>

Просмотреть файл

@ -790,6 +790,104 @@ public static partial class TextBoxExtensions
return obj;
}
// Avalonia.Controls.TextBox.CaretBlinkIntervalProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretBlinkInterval<T>(this T obj, System.TimeSpan value) where T : Avalonia.Controls.TextBox
{
obj[Avalonia.Controls.TextBox.CaretBlinkIntervalProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretBlinkInterval<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretBlinkInterval<T>(
this T obj,
IObservable<System.TimeSpan> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindCaretBlinkInterval(
this Avalonia.Controls.TextBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TextBox.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.TimeSpan> ObserveCaretBlinkInterval(this Avalonia.Controls.TextBox obj)
{
return obj.GetObservable(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnCaretBlinkInterval<T>(this T obj, Action<Avalonia.Controls.TextBox, IObservable<System.TimeSpan>> handler) where T : Avalonia.Controls.TextBox
{
var observable = obj.GetObservable(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TextBox.SelectionStartProperty
/// <summary>
@ -1182,6 +1280,104 @@ public static partial class TextBoxExtensions
return obj;
}
// Avalonia.Controls.TextBox.MinLinesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T minLines<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.TextBox
{
obj[Avalonia.Controls.TextBox.MinLinesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T minLines<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.MinLinesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T minLines<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.MinLinesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindMinLines(
this Avalonia.Controls.TextBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TextBox.MinLinesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveMinLines(this Avalonia.Controls.TextBox obj)
{
return obj.GetObservable(Avalonia.Controls.TextBox.MinLinesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnMinLines<T>(this T obj, Action<Avalonia.Controls.TextBox, IObservable<System.Int32>> handler) where T : Avalonia.Controls.TextBox
{
var observable = obj.GetObservable(Avalonia.Controls.TextBox.MinLinesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TextBox.TextProperty
/// <summary>

Просмотреть файл

@ -202,6 +202,104 @@ public static partial class TextElementExtensions
return obj;
}
// Avalonia.Controls.Documents.TextElement.FontFeaturesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(this T obj, Avalonia.Media.FontFeatureCollection value) where T : Avalonia.Controls.Documents.TextElement
{
obj[Avalonia.Controls.Documents.TextElement.FontFeaturesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Documents.TextElement
{
var descriptor = Avalonia.Controls.Documents.TextElement.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T fontFeatures<T>(
this T obj,
IObservable<Avalonia.Media.FontFeatureCollection> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Documents.TextElement
{
var descriptor = Avalonia.Controls.Documents.TextElement.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindFontFeatures(
this Avalonia.Controls.Documents.TextElement obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Documents.TextElement.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.FontFeatureCollection> ObserveFontFeatures(this Avalonia.Controls.Documents.TextElement obj)
{
return obj.GetObservable(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnFontFeatures<T>(this T obj, Action<Avalonia.Controls.Documents.TextElement, IObservable<Avalonia.Media.FontFeatureCollection>> handler) where T : Avalonia.Controls.Documents.TextElement
{
var observable = obj.GetObservable(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Documents.TextElement.FontSizeProperty
/// <summary>

Просмотреть файл

@ -594,6 +594,104 @@ public static partial class TextPresenterExtensions
return obj;
}
// Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretBlinkInterval<T>(this T obj, System.TimeSpan value) where T : Avalonia.Controls.Presenters.TextPresenter
{
obj[Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretBlinkInterval<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.TextPresenter
{
var descriptor = Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T caretBlinkInterval<T>(
this T obj,
IObservable<System.TimeSpan> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.TextPresenter
{
var descriptor = Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindCaretBlinkInterval(
this Avalonia.Controls.Presenters.TextPresenter obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.TimeSpan> ObserveCaretBlinkInterval(this Avalonia.Controls.Presenters.TextPresenter obj)
{
return obj.GetObservable(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnCaretBlinkInterval<T>(this T obj, Action<Avalonia.Controls.Presenters.TextPresenter, IObservable<System.TimeSpan>> handler) where T : Avalonia.Controls.Presenters.TextPresenter
{
var observable = obj.GetObservable(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Presenters.TextPresenter.SelectionStartProperty
/// <summary>

Просмотреть файл

@ -773,4 +773,298 @@ public static partial class ToolTipExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.ToolTip.BetweenShowDelayProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T betweenShowDelay<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.ToolTip.BetweenShowDelayProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T betweenShowDelay<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.BetweenShowDelayProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T betweenShowDelay<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.BetweenShowDelayProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBetweenShowDelay(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ToolTip.BetweenShowDelayProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveBetweenShowDelay(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.ToolTip.BetweenShowDelayProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBetweenShowDelay<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Int32>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.ToolTip.BetweenShowDelayProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.ToolTip.ShowOnDisabledProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T showOnDisabled<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.ToolTip.ShowOnDisabledProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T showOnDisabled<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ShowOnDisabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T showOnDisabled<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ShowOnDisabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindShowOnDisabled(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ToolTip.ShowOnDisabledProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveShowOnDisabled(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.ToolTip.ShowOnDisabledProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnShowOnDisabled<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.ToolTip.ShowOnDisabledProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.ToolTip.ServiceEnabledProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T serviceEnabled<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.ToolTip.ServiceEnabledProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T serviceEnabled<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ServiceEnabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T serviceEnabled<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ServiceEnabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindServiceEnabled(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ToolTip.ServiceEnabledProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveServiceEnabled(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.ToolTip.ServiceEnabledProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnServiceEnabled<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.ToolTip.ServiceEnabledProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -530,6 +530,104 @@ public static partial class TopLevelExtensions
return obj;
}
// Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T autoSafeAreaPadding<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T autoSafeAreaPadding<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T autoSafeAreaPadding<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindAutoSafeAreaPadding(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveAutoSafeAreaPadding(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnAutoSafeAreaPadding<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TopLevel.BackRequestedEvent
/// <summary>

Просмотреть файл

@ -201,4 +201,87 @@ public static partial class TransitioningContentControlExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event on an object of type <see cref="Avalonia.Controls.TransitioningContentControl"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="action">The action to be performed when the event is raised.</param>
/// <param name="routes">The routing strategies for the event.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object.</returns>
public static T OnTransitionCompletedHandler<T>(
this T obj,
Action<T, Avalonia.Controls.TransitionCompletedEventArgs> action,
Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Direct) where T : Avalonia.Controls.TransitioningContentControl
{
obj.AddHandler(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, (_, args) => action(obj, args), routes);
return obj;
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event on an object of type <see cref="Avalonia.Controls.TransitioningContentControl"/> and returns an observable for the event.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the event is raised.</param>
/// <param name="routes">The routing strategies for the event.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object.</returns>
public static T OnTransitionCompleted<T>(
this T obj, Action<T, IObservable<Avalonia.Controls.TransitionCompletedEventArgs>> handler,
Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Direct) where T : Avalonia.Controls.TransitioningContentControl
{
var observable = obj.GetObservable(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, routes);
handler(obj, observable);
return obj;
}
/// <summary>
/// Gets an observable for the <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event on an object of type <see cref="Avalonia.Controls.TransitioningContentControl"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="routes">The routing strategies for the event.</param>
/// <returns>An observable for the event.</returns>
public static IObservable<Avalonia.Controls.TransitionCompletedEventArgs> ObserveOnTransitionCompleted(
this Avalonia.Controls.TransitioningContentControl obj,
Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Direct)
{
return obj.GetObservable(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, routes);
}
// Avalonia.Controls.TransitioningContentControl.TransitionCompleted
/// <summary>
/// Adds a handler to the `TransitionCompleted` event on the specified object.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the event is raised.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnTransitionCompletedEvent<T>(this T obj, Action<T, IObservable<Avalonia.Controls.TransitionCompletedEventArgs>> handler) where T : Avalonia.Controls.TransitioningContentControl
{
var observable = Observable
.FromEventPattern<EventHandler<Avalonia.Controls.TransitionCompletedEventArgs>, Avalonia.Controls.TransitionCompletedEventArgs>(
h => obj.TransitionCompleted += h,
h => obj.TransitionCompleted -= h)
.Select(x => x.EventArgs);
handler(obj, observable);
return obj;
}
/// <summary>
/// Returns an observable for the `TransitionCompleted` event on the specified object.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>An observable for the `TransitionCompleted` event on the specified object.</returns>
public static IObservable<Avalonia.Controls.TransitionCompletedEventArgs> ObserveOnTransitionCompletedEvent(this Avalonia.Controls.TransitioningContentControl obj)
{
return Observable
.FromEventPattern<EventHandler<Avalonia.Controls.TransitionCompletedEventArgs>, Avalonia.Controls.TransitionCompletedEventArgs>(
h => obj.TransitionCompleted += h,
h => obj.TransitionCompleted -= h)
.Select(x => x.EventArgs);
}
}

Просмотреть файл

@ -372,18 +372,6 @@ public static partial class WindowExtensions
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ExtendClientAreaChromeHintsPreferSystemChrome<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty] = Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.Default"/>.
/// </summary>
@ -396,6 +384,18 @@ public static partial class WindowExtensions
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ExtendClientAreaChromeHintsPreferSystemChrome<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty] = Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.OSXThickTitleBar"/>.
/// </summary>
@ -968,6 +968,128 @@ public static partial class WindowExtensions
return obj;
}
// Avalonia.Controls.Window.ClosingBehaviorProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T closingBehavior<T>(this T obj, Avalonia.Controls.WindowClosingBehavior value) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ClosingBehaviorProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T closingBehavior<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Window
{
var descriptor = Avalonia.Controls.Window.ClosingBehaviorProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T closingBehavior<T>(
this T obj,
IObservable<Avalonia.Controls.WindowClosingBehavior> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Window
{
var descriptor = Avalonia.Controls.Window.ClosingBehaviorProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindClosingBehavior(
this Avalonia.Controls.Window obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Window.ClosingBehaviorProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Controls.WindowClosingBehavior> ObserveClosingBehavior(this Avalonia.Controls.Window obj)
{
return obj.GetObservable(Avalonia.Controls.Window.ClosingBehaviorProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnClosingBehavior<T>(this T obj, Action<Avalonia.Controls.Window, IObservable<Avalonia.Controls.WindowClosingBehavior>> handler) where T : Avalonia.Controls.Window
{
var observable = obj.GetObservable(Avalonia.Controls.Window.ClosingBehaviorProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> property value to <see cref="Avalonia.Controls.WindowClosingBehavior.OwnerAndChildWindows"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehaviorOwnerAndChildWindows<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ClosingBehaviorProperty] = Avalonia.Controls.WindowClosingBehavior.OwnerAndChildWindows;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> property value to <see cref="Avalonia.Controls.WindowClosingBehavior.OwnerWindowOnly"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehaviorOwnerWindowOnly<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ClosingBehaviorProperty] = Avalonia.Controls.WindowClosingBehavior.OwnerWindowOnly;
return obj;
}
// Avalonia.Controls.Window.WindowStateProperty
/// <summary>

Просмотреть файл

@ -152,6 +152,30 @@ public static partial class WindowNotificationManagerExtensions
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty"/> property value to <see cref="Avalonia.Controls.Notifications.NotificationPosition.TopCenter"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T PositionTopCenter<T>(this T obj) where T : Avalonia.Controls.Notifications.WindowNotificationManager
{
obj[Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty] = Avalonia.Controls.Notifications.NotificationPosition.TopCenter;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty"/> property value to <see cref="Avalonia.Controls.Notifications.NotificationPosition.BottomCenter"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T PositionBottomCenter<T>(this T obj) where T : Avalonia.Controls.Notifications.WindowNotificationManager
{
obj[Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty] = Avalonia.Controls.Notifications.NotificationPosition.BottomCenter;
return obj;
}
// Avalonia.Controls.Notifications.WindowNotificationManager.MaxItemsProperty
/// <summary>

Просмотреть файл

@ -0,0 +1,23 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia builders.
/// </summary>
public static partial class Builders
{
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.HyperlinkButton"/> class.
/// </summary>
/// <returns>The new instance of the <see cref="Avalonia.Controls.HyperlinkButton"/> class.</returns>
public static Avalonia.Controls.HyperlinkButton HyperlinkButton()
=> new();
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.HyperlinkButton"/> class.
/// </summary>
/// <param name="ref">The reference of the <see cref="Avalonia.Controls.HyperlinkButton"/> instantiated class.</param>
/// <returns>The new instance of the <see cref="Avalonia.Controls.HyperlinkButton"/> class.</returns>
public static Avalonia.Controls.HyperlinkButton HyperlinkButton(out Avalonia.Controls.HyperlinkButton @ref)
=> @ref = new();
}

Просмотреть файл

@ -37,4 +37,25 @@ public static partial class Builders
/// <returns>The new instance of the <see cref="Avalonia.Media.RectangleGeometry"/> class.</returns>
public static Avalonia.Media.RectangleGeometry RectangleGeometry(out Avalonia.Media.RectangleGeometry @ref, Avalonia.Rect rect)
=> @ref = new(rect);
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Media.RectangleGeometry"/> class.
/// </summary>
/// <param name="rect">The rect value.</param>
/// <param name="radiusX">The radiusX value.</param>
/// <param name="radiusY">The radiusY value.</param>
/// <returns>The new instance of the <see cref="Avalonia.Media.RectangleGeometry"/> class.</returns>
public static Avalonia.Media.RectangleGeometry RectangleGeometry(Avalonia.Rect rect, System.Double radiusX, System.Double radiusY)
=> new(rect, radiusX, radiusY);
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Media.RectangleGeometry"/> class.
/// </summary>
/// <param name="ref">The reference of the <see cref="Avalonia.Media.RectangleGeometry"/> instantiated class.</param>
/// <param name="rect">The rect value.</param>
/// <param name="radiusX">The radiusX value.</param>
/// <param name="radiusY">The radiusY value.</param>
/// <returns>The new instance of the <see cref="Avalonia.Media.RectangleGeometry"/> class.</returns>
public static Avalonia.Media.RectangleGeometry RectangleGeometry(out Avalonia.Media.RectangleGeometry @ref, Avalonia.Rect rect, System.Double radiusX, System.Double radiusY)
=> @ref = new(rect, radiusX, radiusY);
}

Просмотреть файл

@ -0,0 +1,23 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia builders.
/// </summary>
public static partial class Builders
{
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectionHandle"/> class.
/// </summary>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectionHandle"/> class.</returns>
public static Avalonia.Controls.Primitives.TextSelectionHandle TextSelectionHandle()
=> new();
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectionHandle"/> class.
/// </summary>
/// <param name="ref">The reference of the <see cref="Avalonia.Controls.Primitives.TextSelectionHandle"/> instantiated class.</param>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectionHandle"/> class.</returns>
public static Avalonia.Controls.Primitives.TextSelectionHandle TextSelectionHandle(out Avalonia.Controls.Primitives.TextSelectionHandle @ref)
=> @ref = new();
}

Просмотреть файл

@ -0,0 +1,23 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia builders.
/// </summary>
public static partial class Builders
{
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectorLayer"/> class.
/// </summary>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectorLayer"/> class.</returns>
public static Avalonia.Controls.Primitives.TextSelectorLayer TextSelectorLayer()
=> new();
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectorLayer"/> class.
/// </summary>
/// <param name="ref">The reference of the <see cref="Avalonia.Controls.Primitives.TextSelectorLayer"/> instantiated class.</param>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Primitives.TextSelectorLayer"/> class.</returns>
public static Avalonia.Controls.Primitives.TextSelectorLayer TextSelectorLayer(out Avalonia.Controls.Primitives.TextSelectorLayer @ref)
=> @ref = new();
}

Просмотреть файл

@ -0,0 +1,40 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia builders.
/// </summary>
public static partial class Builders
{
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.
/// </summary>
/// <param name="host">The host value.</param>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.</returns>
public static Avalonia.Controls.Notifications.WindowNotificationManager WindowNotificationManager(Avalonia.Controls.TopLevel host)
=> new(host);
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.
/// </summary>
/// <param name="ref">The reference of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> instantiated class.</param>
/// <param name="host">The host value.</param>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.</returns>
public static Avalonia.Controls.Notifications.WindowNotificationManager WindowNotificationManager(out Avalonia.Controls.Notifications.WindowNotificationManager @ref, Avalonia.Controls.TopLevel host)
=> @ref = new(host);
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.
/// </summary>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.</returns>
public static Avalonia.Controls.Notifications.WindowNotificationManager WindowNotificationManager()
=> new();
/// <summary>
/// Creates a new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.
/// </summary>
/// <param name="ref">The reference of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> instantiated class.</param>
/// <returns>The new instance of the <see cref="Avalonia.Controls.Notifications.WindowNotificationManager"/> class.</returns>
public static Avalonia.Controls.Notifications.WindowNotificationManager WindowNotificationManager(out Avalonia.Controls.Notifications.WindowNotificationManager @ref)
=> @ref = new();
}

Просмотреть файл

@ -0,0 +1,15 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia events.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "InconsistentNaming")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static partial class Events
{
/// <summary>
/// The <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event defined in <see cref="Avalonia.Controls.TransitioningContentControl"/> class.
/// </summary>
public static Avalonia.Interactivity.RoutedEvent<Avalonia.Controls.TransitionCompletedEventArgs> TransitioningContentControlTransitionCompleted => Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent;
}

Просмотреть файл

@ -6,6 +6,104 @@ namespace NXUI.Extensions;
/// </summary>
public static partial class AutoCompleteBoxExtensions
{
// Avalonia.Controls.AutoCompleteBox.CaretIndexProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretIndex<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.CaretIndexProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretIndex<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.CaretIndexProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretIndex<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.CaretIndexProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindCaretIndex(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.CaretIndexProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveCaretIndex(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnCaretIndex<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Int32>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.WatermarkProperty
/// <summary>
@ -1786,6 +1884,300 @@ public static partial class AutoCompleteBoxExtensions
return obj;
}
// Avalonia.Controls.AutoCompleteBox.MaxLengthProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T MaxLength<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.MaxLengthProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T MaxLength<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.MaxLengthProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T MaxLength<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.MaxLengthProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindMaxLength(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.MaxLengthProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveMaxLength(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnMaxLength<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Int32>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerLeftContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerLeftContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerLeftContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerLeftContent(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerLeftContent(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerLeftContent<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Object>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerRightContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.AutoCompleteBox
{
obj[Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerRightContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerRightContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.AutoCompleteBox
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerRightContent(
this Avalonia.Controls.AutoCompleteBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerRightContent(this Avalonia.Controls.AutoCompleteBox obj)
{
return obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerRightContent<T>(this T obj, Action<Avalonia.Controls.AutoCompleteBox, IObservable<System.Object>> handler) where T : Avalonia.Controls.AutoCompleteBox
{
var observable = obj.GetObservable(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.AutoCompleteBox.SelectionChangedEvent
/// <summary>

Просмотреть файл

@ -104,6 +104,140 @@ public static partial class BorderExtensions
return obj;
}
// Avalonia.Controls.Border.BackgroundSizingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(this T obj, Avalonia.Media.BackgroundSizing value) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Border
{
var descriptor = Avalonia.Controls.Border.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(
this T obj,
IObservable<Avalonia.Media.BackgroundSizing> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Border
{
var descriptor = Avalonia.Controls.Border.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBackgroundSizing(
this Avalonia.Controls.Border obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Border.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.BackgroundSizing> ObserveBackgroundSizing(this Avalonia.Controls.Border obj)
{
return obj.GetObservable(Avalonia.Controls.Border.BackgroundSizingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBackgroundSizing<T>(this T obj, Action<Avalonia.Controls.Border, IObservable<Avalonia.Media.BackgroundSizing>> handler) where T : Avalonia.Controls.Border
{
var observable = obj.GetObservable(Avalonia.Controls.Border.BackgroundSizingProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.InnerBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingInnerBorderEdge<T>(this T obj) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.InnerBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.OuterBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingOuterBorderEdge<T>(this T obj) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.OuterBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.CenterBorder"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingCenterBorder<T>(this T obj) where T : Avalonia.Controls.Border
{
obj[Avalonia.Controls.Border.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.CenterBorder;
return obj;
}
// Avalonia.Controls.Border.BorderBrushProperty
/// <summary>

Просмотреть файл

@ -733,4 +733,102 @@ public static partial class ComboBoxExtensions
obj[Avalonia.Controls.ComboBox.VerticalContentAlignmentProperty] = Avalonia.Layout.VerticalAlignment.Bottom;
return obj;
}
// Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T SelectionBoxItemTemplate<T>(this T obj, Avalonia.Controls.Templates.IDataTemplate value) where T : Avalonia.Controls.ComboBox
{
obj[Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T SelectionBoxItemTemplate<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.ComboBox
{
var descriptor = Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T SelectionBoxItemTemplate<T>(
this T obj,
IObservable<Avalonia.Controls.Templates.IDataTemplate> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.ComboBox
{
var descriptor = Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindSelectionBoxItemTemplate(
this Avalonia.Controls.ComboBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Controls.Templates.IDataTemplate> ObserveSelectionBoxItemTemplate(this Avalonia.Controls.ComboBox obj)
{
return obj.GetObservable(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnSelectionBoxItemTemplate<T>(this T obj, Action<Avalonia.Controls.ComboBox, IObservable<Avalonia.Controls.Templates.IDataTemplate>> handler) where T : Avalonia.Controls.ComboBox
{
var observable = obj.GetObservable(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -104,6 +104,140 @@ public static partial class ContentPresenterExtensions
return obj;
}
// Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(this T obj, Avalonia.Media.BackgroundSizing value) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.ContentPresenter
{
var descriptor = Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(
this T obj,
IObservable<Avalonia.Media.BackgroundSizing> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.ContentPresenter
{
var descriptor = Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBackgroundSizing(
this Avalonia.Controls.Presenters.ContentPresenter obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.BackgroundSizing> ObserveBackgroundSizing(this Avalonia.Controls.Presenters.ContentPresenter obj)
{
return obj.GetObservable(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBackgroundSizing<T>(this T obj, Action<Avalonia.Controls.Presenters.ContentPresenter, IObservable<Avalonia.Media.BackgroundSizing>> handler) where T : Avalonia.Controls.Presenters.ContentPresenter
{
var observable = obj.GetObservable(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.InnerBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingInnerBorderEdge<T>(this T obj) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.InnerBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.OuterBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingOuterBorderEdge<T>(this T obj) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.OuterBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.CenterBorder"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingCenterBorder<T>(this T obj) where T : Avalonia.Controls.Presenters.ContentPresenter
{
obj[Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.CenterBorder;
return obj;
}
// Avalonia.Controls.Presenters.ContentPresenter.BorderBrushProperty
/// <summary>

Просмотреть файл

@ -202,6 +202,104 @@ public static partial class DataValidationErrorsExtensions
return obj;
}
// Avalonia.Controls.DataValidationErrors.ErrorConverterProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ErrorConverter<T>(this T obj, System.Func<System.Object,System.Object> value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.DataValidationErrors.ErrorConverterProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ErrorConverter<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.DataValidationErrors.ErrorConverterProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ErrorConverter<T>(
this T obj,
IObservable<System.Func<System.Object,System.Object>> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.DataValidationErrors.ErrorConverterProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindErrorConverter(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.DataValidationErrors.ErrorConverterProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Func<System.Object,System.Object>> ObserveErrorConverter(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnErrorConverter<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Func<System.Object,System.Object>>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.DataValidationErrors.ErrorTemplateProperty
/// <summary>

Просмотреть файл

@ -0,0 +1,204 @@
// <auto-generated />
namespace NXUI.Extensions;
/// <summary>
/// The avalonia <see cref="Avalonia.Controls.HyperlinkButton"/> class property extension methods.
/// </summary>
public static partial class HyperlinkButtonExtensions
{
// Avalonia.Controls.HyperlinkButton.IsVisitedProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsVisited<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.HyperlinkButton
{
obj[Avalonia.Controls.HyperlinkButton.IsVisitedProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsVisited<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.IsVisitedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsVisited<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.IsVisitedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsVisited(
this Avalonia.Controls.HyperlinkButton obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.HyperlinkButton.IsVisitedProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsVisited(this Avalonia.Controls.HyperlinkButton obj)
{
return obj.GetObservable(Avalonia.Controls.HyperlinkButton.IsVisitedProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsVisited<T>(this T obj, Action<Avalonia.Controls.HyperlinkButton, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.HyperlinkButton
{
var observable = obj.GetObservable(Avalonia.Controls.HyperlinkButton.IsVisitedProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.HyperlinkButton.NavigateUriProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T NavigateUri<T>(this T obj, System.Uri value) where T : Avalonia.Controls.HyperlinkButton
{
obj[Avalonia.Controls.HyperlinkButton.NavigateUriProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T NavigateUri<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.NavigateUriProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T NavigateUri<T>(
this T obj,
IObservable<System.Uri> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.HyperlinkButton
{
var descriptor = Avalonia.Controls.HyperlinkButton.NavigateUriProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindNavigateUri(
this Avalonia.Controls.HyperlinkButton obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.HyperlinkButton.NavigateUriProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Uri> ObserveNavigateUri(this Avalonia.Controls.HyperlinkButton obj)
{
return obj.GetObservable(Avalonia.Controls.HyperlinkButton.NavigateUriProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnNavigateUri<T>(this T obj, Action<Avalonia.Controls.HyperlinkButton, IObservable<System.Uri>> handler) where T : Avalonia.Controls.HyperlinkButton
{
var observable = obj.GetObservable(Avalonia.Controls.HyperlinkButton.NavigateUriProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -594,6 +594,336 @@ public static partial class MenuItemExtensions
return obj;
}
// Avalonia.Controls.MenuItem.ToggleTypeProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleType<T>(this T obj, Avalonia.Controls.MenuItemToggleType value) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleType<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.ToggleTypeProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleType<T>(
this T obj,
IObservable<Avalonia.Controls.MenuItemToggleType> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.ToggleTypeProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindToggleType(
this Avalonia.Controls.MenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.MenuItem.ToggleTypeProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Controls.MenuItemToggleType> ObserveToggleType(this Avalonia.Controls.MenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.MenuItem.ToggleTypeProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnToggleType<T>(this T obj, Action<Avalonia.Controls.MenuItem, IObservable<Avalonia.Controls.MenuItemToggleType>> handler) where T : Avalonia.Controls.MenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.MenuItem.ToggleTypeProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property value to <see cref="Avalonia.Controls.MenuItemToggleType.None"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleTypeNone<T>(this T obj) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = Avalonia.Controls.MenuItemToggleType.None;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property value to <see cref="Avalonia.Controls.MenuItemToggleType.CheckBox"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleTypeCheckBox<T>(this T obj) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = Avalonia.Controls.MenuItemToggleType.CheckBox;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property value to <see cref="Avalonia.Controls.MenuItemToggleType.Radio"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ToggleTypeRadio<T>(this T obj) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.ToggleTypeProperty] = Avalonia.Controls.MenuItemToggleType.Radio;
return obj;
}
// Avalonia.Controls.MenuItem.IsCheckedProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsChecked<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.IsCheckedProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsChecked<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.IsCheckedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsChecked<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.IsCheckedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsChecked(
this Avalonia.Controls.MenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.MenuItem.IsCheckedProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsChecked(this Avalonia.Controls.MenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.MenuItem.IsCheckedProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsChecked<T>(this T obj, Action<Avalonia.Controls.MenuItem, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.MenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.MenuItem.IsCheckedProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.MenuItem.GroupNameProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T GroupName<T>(this T obj, System.String value) where T : Avalonia.Controls.MenuItem
{
obj[Avalonia.Controls.MenuItem.GroupNameProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T GroupName<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.GroupNameProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T GroupName<T>(
this T obj,
IObservable<System.String> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.MenuItem
{
var descriptor = Avalonia.Controls.MenuItem.GroupNameProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindGroupName(
this Avalonia.Controls.MenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.MenuItem.GroupNameProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.String> ObserveGroupName(this Avalonia.Controls.MenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.MenuItem.GroupNameProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnGroupName<T>(this T obj, Action<Avalonia.Controls.MenuItem, IObservable<System.String>> handler) where T : Avalonia.Controls.MenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.MenuItem.GroupNameProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.MenuItem.ClickEvent
/// <summary>

Просмотреть файл

@ -1021,4 +1021,102 @@ public static partial class NativeMenuItemExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.NativeMenuItem.IsVisibleProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsVisible<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.NativeMenuItem
{
obj[Avalonia.Controls.NativeMenuItem.IsVisibleProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsVisible<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NativeMenuItem
{
var descriptor = Avalonia.Controls.NativeMenuItem.IsVisibleProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsVisible<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NativeMenuItem
{
var descriptor = Avalonia.Controls.NativeMenuItem.IsVisibleProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsVisible(
this Avalonia.Controls.NativeMenuItem obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.NativeMenuItem.IsVisibleProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsVisible(this Avalonia.Controls.NativeMenuItem obj)
{
return obj.GetObservable(Avalonia.Controls.NativeMenuItem.IsVisibleProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsVisible<T>(this T obj, Action<Avalonia.Controls.NativeMenuItem, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.NativeMenuItem
{
var observable = obj.GetObservable(Avalonia.Controls.NativeMenuItem.IsVisibleProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -1996,6 +1996,202 @@ public static partial class NumericUpDownExtensions
return obj;
}
// Avalonia.Controls.NumericUpDown.InnerLeftContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerLeftContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.NumericUpDown
{
obj[Avalonia.Controls.NumericUpDown.InnerLeftContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerLeftContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerLeftContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerLeftContent(
this Avalonia.Controls.NumericUpDown obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerLeftContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerLeftContent(this Avalonia.Controls.NumericUpDown obj)
{
return obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerLeftContent<T>(this T obj, Action<Avalonia.Controls.NumericUpDown, IObservable<System.Object>> handler) where T : Avalonia.Controls.NumericUpDown
{
var observable = obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.NumericUpDown.InnerRightContentProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerRightContent<T>(this T obj, System.Object value) where T : Avalonia.Controls.NumericUpDown
{
obj[Avalonia.Controls.NumericUpDown.InnerRightContentProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerRightContent<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T InnerRightContent<T>(
this T obj,
IObservable<System.Object> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.NumericUpDown
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindInnerRightContent(
this Avalonia.Controls.NumericUpDown obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.NumericUpDown.InnerRightContentProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Object> ObserveInnerRightContent(this Avalonia.Controls.NumericUpDown obj)
{
return obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerRightContentProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnInnerRightContent<T>(this T obj, Action<Avalonia.Controls.NumericUpDown, IObservable<System.Object>> handler) where T : Avalonia.Controls.NumericUpDown
{
var observable = obj.GetObservable(Avalonia.Controls.NumericUpDown.InnerRightContentProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.NumericUpDown.ValueChangedEvent
/// <summary>

Просмотреть файл

@ -0,0 +1,106 @@
// <auto-generated />
namespace NXUI.Extensions;
/// <summary>
/// The avalonia <see cref="Avalonia.Media.PathSegment"/> class property extension methods.
/// </summary>
public static partial class PathSegmentExtensions
{
// Avalonia.Media.PathSegment.IsStrokedProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsStroked<T>(this T obj, System.Boolean value) where T : Avalonia.Media.PathSegment
{
obj[Avalonia.Media.PathSegment.IsStrokedProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsStroked<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.PathSegment
{
var descriptor = Avalonia.Media.PathSegment.IsStrokedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T IsStroked<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.PathSegment
{
var descriptor = Avalonia.Media.PathSegment.IsStrokedProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindIsStroked(
this Avalonia.Media.PathSegment obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.PathSegment.IsStrokedProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveIsStroked(this Avalonia.Media.PathSegment obj)
{
return obj.GetObservable(Avalonia.Media.PathSegment.IsStrokedProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnIsStroked<T>(this T obj, Action<Avalonia.Media.PathSegment, IObservable<System.Boolean>> handler) where T : Avalonia.Media.PathSegment
{
var observable = obj.GetObservable(Avalonia.Media.PathSegment.IsStrokedProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -98,4 +98,97 @@ public static partial class PopupRootExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> value on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value to set for the property.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Controls.Primitives.PopupRoot WindowManagerAddShadowHint(this Avalonia.Controls.Primitives.PopupRoot obj, System.Boolean value)
{
obj[Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/> with a source binding specified as a parameter.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Controls.Primitives.PopupRoot WindowManagerAddShadowHint(
this Avalonia.Controls.Primitives.PopupRoot obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/> with a source binding specified as an observable.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Controls.Primitives.PopupRoot WindowManagerAddShadowHint(
this Avalonia.Controls.Primitives.PopupRoot obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> binding on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindWindowManagerAddShadowHint(
this Avalonia.Controls.Primitives.PopupRoot obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the object, and thereafter whenever the property changes.
/// </returns>
public static IObservable<System.Boolean> ObserveWindowManagerAddShadowHint(this Avalonia.Controls.Primitives.PopupRoot obj)
{
return obj.GetObservable(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty);
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> property on an object of type <see cref="Avalonia.Controls.Primitives.PopupRoot"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the property changes.</param>
/// <returns>The target object.</returns>
public static Avalonia.Controls.Primitives.PopupRoot OnWindowManagerAddShadowHint(this Avalonia.Controls.Primitives.PopupRoot obj, Action<Avalonia.Controls.Primitives.PopupRoot, IObservable<System.Boolean>> handler)
{
var observable = obj.GetObservable(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -192,95 +192,188 @@ public static partial class RadialGradientBrushExtensions
return obj;
}
// Avalonia.Media.RadialGradientBrush.RadiusProperty
// Avalonia.Media.RadialGradientBrush.RadiusXProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> value on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Sets a <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> value on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value to set for the property.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush Radius(this Avalonia.Media.RadialGradientBrush obj, System.Double value)
public static Avalonia.Media.RadialGradientBrush RadiusX(this Avalonia.Media.RadialGradientBrush obj, Avalonia.RelativeScalar value)
{
obj[Avalonia.Media.RadialGradientBrush.RadiusProperty] = value;
obj[Avalonia.Media.RadialGradientBrush.RadiusXProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as a parameter.
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as a parameter.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush Radius(
public static Avalonia.Media.RadialGradientBrush RadiusX(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusProperty.Bind().WithMode(mode).WithPriority(priority);
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as an observable.
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as an observable.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush Radius(
public static Avalonia.Media.RadialGradientBrush RadiusX(
this Avalonia.Media.RadialGradientBrush obj,
IObservable<System.Double> observable,
IObservable<Avalonia.RelativeScalar> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusProperty.Bind().WithMode(mode).WithPriority(priority);
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> binding on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Makes a <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> binding on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadius(
/// <returns>A <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusX(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusProperty.Bind().WithMode(mode).WithPriority(priority);
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Gets an observable for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the object, and thereafter whenever the property changes.
/// </returns>
public static IObservable<System.Double> ObserveRadius(this Avalonia.Media.RadialGradientBrush obj)
public static IObservable<Avalonia.RelativeScalar> ObserveRadiusX(this Avalonia.Media.RadialGradientBrush obj)
{
return obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusProperty);
return obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusXProperty);
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> property on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// Registers a handler for the <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> property on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the property changes.</param>
/// <returns>The target object.</returns>
public static Avalonia.Media.RadialGradientBrush OnRadius(this Avalonia.Media.RadialGradientBrush obj, Action<Avalonia.Media.RadialGradientBrush, IObservable<System.Double>> handler)
public static Avalonia.Media.RadialGradientBrush OnRadiusX(this Avalonia.Media.RadialGradientBrush obj, Action<Avalonia.Media.RadialGradientBrush, IObservable<Avalonia.RelativeScalar>> handler)
{
var observable = obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusProperty);
var observable = obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusXProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Media.RadialGradientBrush.RadiusYProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> value on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value to set for the property.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush RadiusY(this Avalonia.Media.RadialGradientBrush obj, Avalonia.RelativeScalar value)
{
obj[Avalonia.Media.RadialGradientBrush.RadiusYProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as a parameter.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush RadiusY(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/> with a source binding specified as an observable.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>The target object reference.</returns>
public static Avalonia.Media.RadialGradientBrush RadiusY(
this Avalonia.Media.RadialGradientBrush obj,
IObservable<Avalonia.RelativeScalar> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> binding on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusY(
this Avalonia.Media.RadialGradientBrush obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RadialGradientBrush.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the object, and thereafter whenever the property changes.
/// </returns>
public static IObservable<Avalonia.RelativeScalar> ObserveRadiusY(this Avalonia.Media.RadialGradientBrush obj)
{
return obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusYProperty);
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> property on an object of type <see cref="Avalonia.Media.RadialGradientBrush"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the property changes.</param>
/// <returns>The target object.</returns>
public static Avalonia.Media.RadialGradientBrush OnRadiusY(this Avalonia.Media.RadialGradientBrush obj, Action<Avalonia.Media.RadialGradientBrush, IObservable<Avalonia.RelativeScalar>> handler)
{
var observable = obj.GetObservable(Avalonia.Media.RadialGradientBrush.RadiusYProperty);
handler(obj, observable);
return obj;
}

Просмотреть файл

@ -6,6 +6,202 @@ namespace NXUI.Extensions;
/// </summary>
public static partial class RectangleGeometryExtensions
{
// Avalonia.Media.RectangleGeometry.RadiusXProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T RadiusX<T>(this T obj, System.Double value) where T : Avalonia.Media.RectangleGeometry
{
obj[Avalonia.Media.RectangleGeometry.RadiusXProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T RadiusX<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T RadiusX<T>(
this T obj,
IObservable<System.Double> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusX(
this Avalonia.Media.RectangleGeometry obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusXProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Double> ObserveRadiusX(this Avalonia.Media.RectangleGeometry obj)
{
return obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusXProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnRadiusX<T>(this T obj, Action<Avalonia.Media.RectangleGeometry, IObservable<System.Double>> handler) where T : Avalonia.Media.RectangleGeometry
{
var observable = obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusXProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Media.RectangleGeometry.RadiusYProperty
/// <summary>
/// Sets a <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T RadiusY<T>(this T obj, System.Double value) where T : Avalonia.Media.RectangleGeometry
{
obj[Avalonia.Media.RectangleGeometry.RadiusYProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T RadiusY<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T RadiusY<T>(
this T obj,
IObservable<System.Double> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Media.RectangleGeometry
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindRadiusY(
this Avalonia.Media.RectangleGeometry obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Media.RectangleGeometry.RadiusYProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Double> ObserveRadiusY(this Avalonia.Media.RectangleGeometry obj)
{
return obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusYProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnRadiusY<T>(this T obj, Action<Avalonia.Media.RectangleGeometry, IObservable<System.Double>> handler) where T : Avalonia.Media.RectangleGeometry
{
var observable = obj.GetObservable(Avalonia.Media.RectangleGeometry.RadiusYProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Media.RectangleGeometry.RectProperty
/// <summary>

Просмотреть файл

@ -344,6 +344,104 @@ public static partial class SelectableTextBlockExtensions
return obj;
}
// Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T SelectionForegroundBrush<T>(this T obj, Avalonia.Media.IBrush value) where T : Avalonia.Controls.SelectableTextBlock
{
obj[Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T SelectionForegroundBrush<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.SelectableTextBlock
{
var descriptor = Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T SelectionForegroundBrush<T>(
this T obj,
IObservable<Avalonia.Media.IBrush> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.SelectableTextBlock
{
var descriptor = Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindSelectionForegroundBrush(
this Avalonia.Controls.SelectableTextBlock obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.IBrush> ObserveSelectionForegroundBrush(this Avalonia.Controls.SelectableTextBlock obj)
{
return obj.GetObservable(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnSelectionForegroundBrush<T>(this T obj, Action<Avalonia.Controls.SelectableTextBlock, IObservable<Avalonia.Media.IBrush>> handler) where T : Avalonia.Controls.SelectableTextBlock
{
var observable = obj.GetObservable(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.SelectableTextBlock.CanCopyProperty
/// <summary>

Просмотреть файл

@ -104,6 +104,140 @@ public static partial class TemplatedControlExtensions
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(this T obj, Avalonia.Media.BackgroundSizing value) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizing<T>(
this T obj,
IObservable<Avalonia.Media.BackgroundSizing> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBackgroundSizing(
this Avalonia.Controls.Primitives.TemplatedControl obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.BackgroundSizing> ObserveBackgroundSizing(this Avalonia.Controls.Primitives.TemplatedControl obj)
{
return obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBackgroundSizing<T>(this T obj, Action<Avalonia.Controls.Primitives.TemplatedControl, IObservable<Avalonia.Media.BackgroundSizing>> handler) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var observable = obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.InnerBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingInnerBorderEdge<T>(this T obj) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.InnerBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.OuterBorderEdge"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingOuterBorderEdge<T>(this T obj) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.OuterBorderEdge;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property value to <see cref="Avalonia.Media.BackgroundSizing.CenterBorder"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BackgroundSizingCenterBorder<T>(this T obj) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty] = Avalonia.Media.BackgroundSizing.CenterBorder;
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.BorderBrushProperty
/// <summary>
@ -496,6 +630,104 @@ public static partial class TemplatedControlExtensions
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(this T obj, Avalonia.Media.FontFeatureCollection value) where T : Avalonia.Controls.Primitives.TemplatedControl
{
obj[Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(
this T obj,
IObservable<Avalonia.Media.FontFeatureCollection> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindFontFeatures(
this Avalonia.Controls.Primitives.TemplatedControl obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.FontFeatureCollection> ObserveFontFeatures(this Avalonia.Controls.Primitives.TemplatedControl obj)
{
return obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnFontFeatures<T>(this T obj, Action<Avalonia.Controls.Primitives.TemplatedControl, IObservable<Avalonia.Media.FontFeatureCollection>> handler) where T : Avalonia.Controls.Primitives.TemplatedControl
{
var observable = obj.GetObservable(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Primitives.TemplatedControl.FontSizeProperty
/// <summary>

Просмотреть файл

@ -2238,6 +2238,104 @@ public static partial class TextBlockExtensions
return obj;
}
// Avalonia.Controls.TextBlock.FontFeaturesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(this T obj, Avalonia.Media.FontFeatureCollection value) where T : Avalonia.Controls.TextBlock
{
obj[Avalonia.Controls.TextBlock.FontFeaturesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBlock
{
var descriptor = Avalonia.Controls.TextBlock.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(
this T obj,
IObservable<Avalonia.Media.FontFeatureCollection> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBlock
{
var descriptor = Avalonia.Controls.TextBlock.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindFontFeatures(
this Avalonia.Controls.TextBlock obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TextBlock.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.FontFeatureCollection> ObserveFontFeatures(this Avalonia.Controls.TextBlock obj)
{
return obj.GetObservable(Avalonia.Controls.TextBlock.FontFeaturesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnFontFeatures<T>(this T obj, Action<Avalonia.Controls.TextBlock, IObservable<Avalonia.Media.FontFeatureCollection>> handler) where T : Avalonia.Controls.TextBlock
{
var observable = obj.GetObservable(Avalonia.Controls.TextBlock.FontFeaturesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TextBlock.InlinesProperty
/// <summary>

Просмотреть файл

@ -790,6 +790,104 @@ public static partial class TextBoxExtensions
return obj;
}
// Avalonia.Controls.TextBox.CaretBlinkIntervalProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretBlinkInterval<T>(this T obj, System.TimeSpan value) where T : Avalonia.Controls.TextBox
{
obj[Avalonia.Controls.TextBox.CaretBlinkIntervalProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretBlinkInterval<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretBlinkInterval<T>(
this T obj,
IObservable<System.TimeSpan> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindCaretBlinkInterval(
this Avalonia.Controls.TextBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TextBox.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.TimeSpan> ObserveCaretBlinkInterval(this Avalonia.Controls.TextBox obj)
{
return obj.GetObservable(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnCaretBlinkInterval<T>(this T obj, Action<Avalonia.Controls.TextBox, IObservable<System.TimeSpan>> handler) where T : Avalonia.Controls.TextBox
{
var observable = obj.GetObservable(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TextBox.SelectionStartProperty
/// <summary>
@ -1182,6 +1280,104 @@ public static partial class TextBoxExtensions
return obj;
}
// Avalonia.Controls.TextBox.MinLinesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T MinLines<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.TextBox
{
obj[Avalonia.Controls.TextBox.MinLinesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T MinLines<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.MinLinesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T MinLines<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.TextBox
{
var descriptor = Avalonia.Controls.TextBox.MinLinesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindMinLines(
this Avalonia.Controls.TextBox obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TextBox.MinLinesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveMinLines(this Avalonia.Controls.TextBox obj)
{
return obj.GetObservable(Avalonia.Controls.TextBox.MinLinesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnMinLines<T>(this T obj, Action<Avalonia.Controls.TextBox, IObservable<System.Int32>> handler) where T : Avalonia.Controls.TextBox
{
var observable = obj.GetObservable(Avalonia.Controls.TextBox.MinLinesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TextBox.TextProperty
/// <summary>

Просмотреть файл

@ -202,6 +202,104 @@ public static partial class TextElementExtensions
return obj;
}
// Avalonia.Controls.Documents.TextElement.FontFeaturesProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(this T obj, Avalonia.Media.FontFeatureCollection value) where T : Avalonia.Controls.Documents.TextElement
{
obj[Avalonia.Controls.Documents.TextElement.FontFeaturesProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Documents.TextElement
{
var descriptor = Avalonia.Controls.Documents.TextElement.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T FontFeatures<T>(
this T obj,
IObservable<Avalonia.Media.FontFeatureCollection> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Documents.TextElement
{
var descriptor = Avalonia.Controls.Documents.TextElement.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindFontFeatures(
this Avalonia.Controls.Documents.TextElement obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Documents.TextElement.FontFeaturesProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Media.FontFeatureCollection> ObserveFontFeatures(this Avalonia.Controls.Documents.TextElement obj)
{
return obj.GetObservable(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnFontFeatures<T>(this T obj, Action<Avalonia.Controls.Documents.TextElement, IObservable<Avalonia.Media.FontFeatureCollection>> handler) where T : Avalonia.Controls.Documents.TextElement
{
var observable = obj.GetObservable(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Documents.TextElement.FontSizeProperty
/// <summary>

Просмотреть файл

@ -594,6 +594,104 @@ public static partial class TextPresenterExtensions
return obj;
}
// Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretBlinkInterval<T>(this T obj, System.TimeSpan value) where T : Avalonia.Controls.Presenters.TextPresenter
{
obj[Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretBlinkInterval<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.TextPresenter
{
var descriptor = Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T CaretBlinkInterval<T>(
this T obj,
IObservable<System.TimeSpan> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Presenters.TextPresenter
{
var descriptor = Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindCaretBlinkInterval(
this Avalonia.Controls.Presenters.TextPresenter obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.TimeSpan> ObserveCaretBlinkInterval(this Avalonia.Controls.Presenters.TextPresenter obj)
{
return obj.GetObservable(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnCaretBlinkInterval<T>(this T obj, Action<Avalonia.Controls.Presenters.TextPresenter, IObservable<System.TimeSpan>> handler) where T : Avalonia.Controls.Presenters.TextPresenter
{
var observable = obj.GetObservable(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.Presenters.TextPresenter.SelectionStartProperty
/// <summary>

Просмотреть файл

@ -773,4 +773,298 @@ public static partial class ToolTipExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.ToolTip.BetweenShowDelayProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BetweenShowDelay<T>(this T obj, System.Int32 value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.ToolTip.BetweenShowDelayProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BetweenShowDelay<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.BetweenShowDelayProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T BetweenShowDelay<T>(
this T obj,
IObservable<System.Int32> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.BetweenShowDelayProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindBetweenShowDelay(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ToolTip.BetweenShowDelayProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Int32> ObserveBetweenShowDelay(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.ToolTip.BetweenShowDelayProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnBetweenShowDelay<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Int32>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.ToolTip.BetweenShowDelayProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.ToolTip.ShowOnDisabledProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ShowOnDisabled<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.ToolTip.ShowOnDisabledProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ShowOnDisabled<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ShowOnDisabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ShowOnDisabled<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ShowOnDisabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindShowOnDisabled(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ToolTip.ShowOnDisabledProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveShowOnDisabled(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.ToolTip.ShowOnDisabledProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnShowOnDisabled<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.ToolTip.ShowOnDisabledProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.ToolTip.ServiceEnabledProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ServiceEnabled<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.ToolTip.ServiceEnabledProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ServiceEnabled<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ServiceEnabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ServiceEnabled<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.ToolTip.ServiceEnabledProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindServiceEnabled(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ToolTip.ServiceEnabledProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveServiceEnabled(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.ToolTip.ServiceEnabledProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnServiceEnabled<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.ToolTip.ServiceEnabledProperty);
handler(obj, observable);
return obj;
}
}

Просмотреть файл

@ -530,6 +530,104 @@ public static partial class TopLevelExtensions
return obj;
}
// Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T AutoSafeAreaPadding<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.Control
{
obj[Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T AutoSafeAreaPadding<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T AutoSafeAreaPadding<T>(
this T obj,
IObservable<System.Boolean> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Control
{
var descriptor = Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindAutoSafeAreaPadding(
this Avalonia.Controls.Control obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<System.Boolean> ObserveAutoSafeAreaPadding(this Avalonia.Controls.Control obj)
{
return obj.GetObservable(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnAutoSafeAreaPadding<T>(this T obj, Action<Avalonia.Controls.Control, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.Control
{
var observable = obj.GetObservable(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty);
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TopLevel.BackRequestedEvent
/// <summary>

Просмотреть файл

@ -201,4 +201,87 @@ public static partial class TransitioningContentControlExtensions
handler(obj, observable);
return obj;
}
// Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event on an object of type <see cref="Avalonia.Controls.TransitioningContentControl"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="action">The action to be performed when the event is raised.</param>
/// <param name="routes">The routing strategies for the event.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object.</returns>
public static T OnTransitionCompletedHandler<T>(
this T obj,
Action<T, Avalonia.Controls.TransitionCompletedEventArgs> action,
Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Direct) where T : Avalonia.Controls.TransitioningContentControl
{
obj.AddHandler(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, (_, args) => action(obj, args), routes);
return obj;
}
/// <summary>
/// Registers a handler for the <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event on an object of type <see cref="Avalonia.Controls.TransitioningContentControl"/> and returns an observable for the event.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the event is raised.</param>
/// <param name="routes">The routing strategies for the event.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object.</returns>
public static T OnTransitionCompleted<T>(
this T obj, Action<T, IObservable<Avalonia.Controls.TransitionCompletedEventArgs>> handler,
Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Direct) where T : Avalonia.Controls.TransitioningContentControl
{
var observable = obj.GetObservable(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, routes);
handler(obj, observable);
return obj;
}
/// <summary>
/// Gets an observable for the <see cref="Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent"/> event on an object of type <see cref="Avalonia.Controls.TransitioningContentControl"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="routes">The routing strategies for the event.</param>
/// <returns>An observable for the event.</returns>
public static IObservable<Avalonia.Controls.TransitionCompletedEventArgs> ObserveOnTransitionCompleted(
this Avalonia.Controls.TransitioningContentControl obj,
Avalonia.Interactivity.RoutingStrategies routes = Avalonia.Interactivity.RoutingStrategies.Direct)
{
return obj.GetObservable(Avalonia.Controls.TransitioningContentControl.TransitionCompletedEvent, routes);
}
// Avalonia.Controls.TransitioningContentControl.TransitionCompleted
/// <summary>
/// Adds a handler to the `TransitionCompleted` event on the specified object.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler to be called when the event is raised.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnTransitionCompletedEvent<T>(this T obj, Action<T, IObservable<Avalonia.Controls.TransitionCompletedEventArgs>> handler) where T : Avalonia.Controls.TransitioningContentControl
{
var observable = Observable
.FromEventPattern<EventHandler<Avalonia.Controls.TransitionCompletedEventArgs>, Avalonia.Controls.TransitionCompletedEventArgs>(
h => obj.TransitionCompleted += h,
h => obj.TransitionCompleted -= h)
.Select(x => x.EventArgs);
handler(obj, observable);
return obj;
}
/// <summary>
/// Returns an observable for the `TransitionCompleted` event on the specified object.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>An observable for the `TransitionCompleted` event on the specified object.</returns>
public static IObservable<Avalonia.Controls.TransitionCompletedEventArgs> ObserveOnTransitionCompletedEvent(this Avalonia.Controls.TransitioningContentControl obj)
{
return Observable
.FromEventPattern<EventHandler<Avalonia.Controls.TransitionCompletedEventArgs>, Avalonia.Controls.TransitionCompletedEventArgs>(
h => obj.TransitionCompleted += h,
h => obj.TransitionCompleted -= h)
.Select(x => x.EventArgs);
}
}

Просмотреть файл

@ -372,18 +372,6 @@ public static partial class WindowExtensions
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ExtendClientAreaChromeHintsPreferSystemChrome<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty] = Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.Default"/>.
/// </summary>
@ -396,6 +384,18 @@ public static partial class WindowExtensions
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ExtendClientAreaChromeHintsPreferSystemChrome<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty] = Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ExtendClientAreaChromeHintsProperty"/> property value to <see cref="Avalonia.Platform.ExtendClientAreaChromeHints.OSXThickTitleBar"/>.
/// </summary>
@ -968,6 +968,128 @@ public static partial class WindowExtensions
return obj;
}
// Avalonia.Controls.Window.ClosingBehaviorProperty
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="value">The value.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehavior<T>(this T obj, Avalonia.Controls.WindowClosingBehavior value) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ClosingBehaviorProperty] = value;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> with binding source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="binding">The source binding.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehavior<T>(
this T obj,
Avalonia.Data.IBinding binding,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Window
{
var descriptor = Avalonia.Controls.Window.ClosingBehaviorProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}
/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> with observable source value.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="observable">The source observable.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehavior<T>(
this T obj,
IObservable<Avalonia.Controls.WindowClosingBehavior> observable,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue) where T : Avalonia.Controls.Window
{
var descriptor = Avalonia.Controls.Window.ClosingBehaviorProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}
/// <summary>
/// Makes a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> binding.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="mode">The target binding mode.</param>
/// <param name="priority">The target binding priority.</param>
/// <returns>A <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindClosingBehavior(
this Avalonia.Controls.Window obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.Window.ClosingBehaviorProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}
/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <returns>
/// An observable which fires immediately with the current value of the property on the
/// object and subsequently each time the property value changes.
/// </returns>
public static IObservable<Avalonia.Controls.WindowClosingBehavior> ObserveClosingBehavior(this Avalonia.Controls.Window obj)
{
return obj.GetObservable(Avalonia.Controls.Window.ClosingBehaviorProperty);
}
/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <param name="handler">The handler with target object and observable with the current value of the property.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T OnClosingBehavior<T>(this T obj, Action<Avalonia.Controls.Window, IObservable<Avalonia.Controls.WindowClosingBehavior>> handler) where T : Avalonia.Controls.Window
{
var observable = obj.GetObservable(Avalonia.Controls.Window.ClosingBehaviorProperty);
handler(obj, observable);
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> property value to <see cref="Avalonia.Controls.WindowClosingBehavior.OwnerAndChildWindows"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehaviorOwnerAndChildWindows<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ClosingBehaviorProperty] = Avalonia.Controls.WindowClosingBehavior.OwnerAndChildWindows;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> property value to <see cref="Avalonia.Controls.WindowClosingBehavior.OwnerWindowOnly"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T ClosingBehaviorOwnerWindowOnly<T>(this T obj) where T : Avalonia.Controls.Window
{
obj[Avalonia.Controls.Window.ClosingBehaviorProperty] = Avalonia.Controls.WindowClosingBehavior.OwnerWindowOnly;
return obj;
}
// Avalonia.Controls.Window.WindowStateProperty
/// <summary>

Просмотреть файл

@ -152,6 +152,30 @@ public static partial class WindowNotificationManagerExtensions
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty"/> property value to <see cref="Avalonia.Controls.Notifications.NotificationPosition.TopCenter"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T PositionTopCenter<T>(this T obj) where T : Avalonia.Controls.Notifications.WindowNotificationManager
{
obj[Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty] = Avalonia.Controls.Notifications.NotificationPosition.TopCenter;
return obj;
}
/// <summary>
/// Sets a <see cref="Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty"/> property value to <see cref="Avalonia.Controls.Notifications.NotificationPosition.BottomCenter"/>.
/// </summary>
/// <param name="obj">The target object.</param>
/// <typeparam name="T">The type of the target object.</typeparam>
/// <returns>The target object reference.</returns>
public static T PositionBottomCenter<T>(this T obj) where T : Avalonia.Controls.Notifications.WindowNotificationManager
{
obj[Avalonia.Controls.Notifications.WindowNotificationManager.PositionProperty] = Avalonia.Controls.Notifications.NotificationPosition.BottomCenter;
return obj;
}
// Avalonia.Controls.Notifications.WindowNotificationManager.MaxItemsProperty
/// <summary>

Просмотреть файл

@ -8,6 +8,11 @@ namespace NXUI;
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static partial class Properties
{
/// <summary>
/// The <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/> property defined in <see cref="Avalonia.Controls.AutoCompleteBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Int32> AutoCompleteBoxCaretIndex => Avalonia.Controls.AutoCompleteBox.CaretIndexProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.AutoCompleteBox.WatermarkProperty"/> property defined in <see cref="Avalonia.Controls.AutoCompleteBox"/> class.
/// </summary>
@ -92,4 +97,19 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.AutoCompleteBox.AsyncPopulatorProperty"/> property defined in <see cref="Avalonia.Controls.AutoCompleteBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Func<System.String,System.Threading.CancellationToken,System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.Object>>>> AutoCompleteBoxAsyncPopulator => Avalonia.Controls.AutoCompleteBox.AsyncPopulatorProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/> property defined in <see cref="Avalonia.Controls.AutoCompleteBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Int32> AutoCompleteBoxMaxLength => Avalonia.Controls.AutoCompleteBox.MaxLengthProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/> property defined in <see cref="Avalonia.Controls.AutoCompleteBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Object> AutoCompleteBoxInnerLeftContent => Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/> property defined in <see cref="Avalonia.Controls.AutoCompleteBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Object> AutoCompleteBoxInnerRightContent => Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty;
}

Просмотреть файл

@ -13,6 +13,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> BorderBackground => Avalonia.Controls.Border.BackgroundProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/> property defined in <see cref="Avalonia.Controls.Border"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.BackgroundSizing> BorderBackgroundSizing => Avalonia.Controls.Border.BackgroundSizingProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Border.BorderBrushProperty"/> property defined in <see cref="Avalonia.Controls.Border"/> class.
/// </summary>

Просмотреть файл

@ -42,4 +42,9 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.ComboBox.VerticalContentAlignmentProperty"/> property defined in <see cref="Avalonia.Controls.ComboBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Layout.VerticalAlignment> ComboBoxVerticalContentAlignment => Avalonia.Controls.ComboBox.VerticalContentAlignmentProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/> property defined in <see cref="Avalonia.Controls.ComboBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Controls.Templates.IDataTemplate> ComboBoxSelectionBoxItemTemplate => Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty;
}

Просмотреть файл

@ -13,6 +13,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> ContentPresenterBackground => Avalonia.Controls.Presenters.ContentPresenter.BackgroundProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/> property defined in <see cref="Avalonia.Controls.Presenters.ContentPresenter"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.BackgroundSizing> ContentPresenterBackgroundSizing => Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Presenters.ContentPresenter.BorderBrushProperty"/> property defined in <see cref="Avalonia.Controls.Presenters.ContentPresenter"/> class.
/// </summary>

Просмотреть файл

@ -18,6 +18,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.AttachedProperty<System.Boolean> DataValidationErrorsHasErrors => Avalonia.Controls.DataValidationErrors.HasErrorsProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/> property defined in <see cref="Avalonia.Controls.DataValidationErrors"/> class.
/// </summary>
public static Avalonia.AttachedProperty<System.Func<System.Object,System.Object>> DataValidationErrorsErrorConverter => Avalonia.Controls.DataValidationErrors.ErrorConverterProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.DataValidationErrors.ErrorTemplateProperty"/> property defined in <see cref="Avalonia.Controls.DataValidationErrors"/> class.
/// </summary>

Просмотреть файл

@ -0,0 +1,20 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia properties.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "InconsistentNaming")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static partial class Properties
{
/// <summary>
/// The <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/> property defined in <see cref="Avalonia.Controls.HyperlinkButton"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> HyperlinkButtonIsVisited => Avalonia.Controls.HyperlinkButton.IsVisitedProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/> property defined in <see cref="Avalonia.Controls.HyperlinkButton"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Uri> HyperlinkButtonNavigateUri => Avalonia.Controls.HyperlinkButton.NavigateUriProperty;
}

Просмотреть файл

@ -42,4 +42,19 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.MenuItem.StaysOpenOnClickProperty"/> property defined in <see cref="Avalonia.Controls.MenuItem"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> MenuItemStaysOpenOnClick => Avalonia.Controls.MenuItem.StaysOpenOnClickProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/> property defined in <see cref="Avalonia.Controls.MenuItem"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Controls.MenuItemToggleType> MenuItemToggleType => Avalonia.Controls.MenuItem.ToggleTypeProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/> property defined in <see cref="Avalonia.Controls.MenuItem"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> MenuItemIsChecked => Avalonia.Controls.MenuItem.IsCheckedProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/> property defined in <see cref="Avalonia.Controls.MenuItem"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.String> MenuItemGroupName => Avalonia.Controls.MenuItem.GroupNameProperty;
}

Просмотреть файл

@ -57,4 +57,9 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.NativeMenuItem.IsEnabledProperty"/> property defined in <see cref="Avalonia.Controls.NativeMenuItem"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> NativeMenuItemIsEnabled => Avalonia.Controls.NativeMenuItem.IsEnabledProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/> property defined in <see cref="Avalonia.Controls.NativeMenuItem"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> NativeMenuItemIsVisible => Avalonia.Controls.NativeMenuItem.IsVisibleProperty;
}

Просмотреть файл

@ -97,4 +97,14 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.NumericUpDown.TextAlignmentProperty"/> property defined in <see cref="Avalonia.Controls.NumericUpDown"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.TextAlignment> NumericUpDownTextAlignment => Avalonia.Controls.NumericUpDown.TextAlignmentProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/> property defined in <see cref="Avalonia.Controls.NumericUpDown"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Object> NumericUpDownInnerLeftContent => Avalonia.Controls.NumericUpDown.InnerLeftContentProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/> property defined in <see cref="Avalonia.Controls.NumericUpDown"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Object> NumericUpDownInnerRightContent => Avalonia.Controls.NumericUpDown.InnerRightContentProperty;
}

Просмотреть файл

@ -0,0 +1,15 @@
// <auto-generated />
namespace NXUI;
/// <summary>
/// The avalonia properties.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "InconsistentNaming")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static partial class Properties
{
/// <summary>
/// The <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/> property defined in <see cref="Avalonia.Media.PathSegment"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> PathSegmentIsStroked => Avalonia.Media.PathSegment.IsStrokedProperty;
}

Просмотреть файл

@ -12,4 +12,9 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.Primitives.PopupRoot.TransformProperty"/> property defined in <see cref="Avalonia.Controls.Primitives.PopupRoot"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.Transform> PopupRootTransform => Avalonia.Controls.Primitives.PopupRoot.TransformProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/> property defined in <see cref="Avalonia.Controls.Primitives.PopupRoot"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> PopupRootWindowManagerAddShadowHint => Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty;
}

Просмотреть файл

@ -19,7 +19,12 @@ public static partial class Properties
public static Avalonia.StyledProperty<Avalonia.RelativePoint> RadialGradientBrushGradientOrigin => Avalonia.Media.RadialGradientBrush.GradientOriginProperty;
/// <summary>
/// The <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/> property defined in <see cref="Avalonia.Media.RadialGradientBrush"/> class.
/// The <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/> property defined in <see cref="Avalonia.Media.RadialGradientBrush"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Double> RadialGradientBrushRadius => Avalonia.Media.RadialGradientBrush.RadiusProperty;
public static Avalonia.StyledProperty<Avalonia.RelativeScalar> RadialGradientBrushRadiusX => Avalonia.Media.RadialGradientBrush.RadiusXProperty;
/// <summary>
/// The <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/> property defined in <see cref="Avalonia.Media.RadialGradientBrush"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.RelativeScalar> RadialGradientBrushRadiusY => Avalonia.Media.RadialGradientBrush.RadiusYProperty;
}

Просмотреть файл

@ -8,6 +8,16 @@ namespace NXUI;
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "RedundantNameQualifier")]
public static partial class Properties
{
/// <summary>
/// The <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/> property defined in <see cref="Avalonia.Media.RectangleGeometry"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Double> RectangleGeometryRadiusX => Avalonia.Media.RectangleGeometry.RadiusXProperty;
/// <summary>
/// The <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/> property defined in <see cref="Avalonia.Media.RectangleGeometry"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Double> RectangleGeometryRadiusY => Avalonia.Media.RectangleGeometry.RadiusYProperty;
/// <summary>
/// The <see cref="Avalonia.Media.RectangleGeometry.RectProperty"/> property defined in <see cref="Avalonia.Media.RectangleGeometry"/> class.
/// </summary>

Просмотреть файл

@ -28,6 +28,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> SelectableTextBlockSelectionBrush => Avalonia.Controls.SelectableTextBlock.SelectionBrushProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/> property defined in <see cref="Avalonia.Controls.SelectableTextBlock"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> SelectableTextBlockSelectionForegroundBrush => Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.SelectableTextBlock.CanCopyProperty"/> property defined in <see cref="Avalonia.Controls.SelectableTextBlock"/> class.
/// </summary>

Просмотреть файл

@ -22,4 +22,9 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.SplitButton.FlyoutProperty"/> property defined in <see cref="Avalonia.Controls.SplitButton"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Controls.Primitives.FlyoutBase> SplitButtonFlyout => Avalonia.Controls.SplitButton.FlyoutProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.SplitButton.HotKeyProperty"/> property defined in <see cref="Avalonia.Controls.SplitButton"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Input.KeyGesture> SplitButtonHotKey => Avalonia.Controls.SplitButton.HotKeyProperty;
}

Просмотреть файл

@ -13,6 +13,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> TemplatedControlBackground => Avalonia.Controls.Primitives.TemplatedControl.BackgroundProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/> property defined in <see cref="Avalonia.Controls.Primitives.TemplatedControl"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.BackgroundSizing> TemplatedControlBackgroundSizing => Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Primitives.TemplatedControl.BorderBrushProperty"/> property defined in <see cref="Avalonia.Controls.Primitives.TemplatedControl"/> class.
/// </summary>
@ -33,6 +38,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.FontFamily> TemplatedControlFontFamily => Avalonia.Controls.Primitives.TemplatedControl.FontFamilyProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/> property defined in <see cref="Avalonia.Controls.Primitives.TemplatedControl"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.FontFeatureCollection> TemplatedControlFontFeatures => Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontSizeProperty"/> property defined in <see cref="Avalonia.Controls.Primitives.TemplatedControl"/> class.
/// </summary>

Просмотреть файл

@ -98,6 +98,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.TextDecorationCollection> TextBlockTextDecorations => Avalonia.Controls.TextBlock.TextDecorationsProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/> property defined in <see cref="Avalonia.Controls.TextBlock"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.FontFeatureCollection> TextBlockFontFeatures => Avalonia.Controls.TextBlock.FontFeaturesProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TextBlock.InlinesProperty"/> property defined in <see cref="Avalonia.Controls.TextBlock"/> class.
/// </summary>

Просмотреть файл

@ -48,6 +48,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> TextBoxCaretBrush => Avalonia.Controls.TextBox.CaretBrushProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/> property defined in <see cref="Avalonia.Controls.TextBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.TimeSpan> TextBoxCaretBlinkInterval => Avalonia.Controls.TextBox.CaretBlinkIntervalProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TextBox.SelectionStartProperty"/> property defined in <see cref="Avalonia.Controls.TextBox"/> class.
/// </summary>
@ -68,6 +73,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<System.Int32> TextBoxMaxLines => Avalonia.Controls.TextBox.MaxLinesProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/> property defined in <see cref="Avalonia.Controls.TextBox"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Int32> TextBoxMinLines => Avalonia.Controls.TextBox.MinLinesProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TextBox.TextProperty"/> property defined in <see cref="Avalonia.Controls.TextBox"/> class.
/// </summary>

Просмотреть файл

@ -18,6 +18,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.AttachedProperty<Avalonia.Media.FontFamily> TextElementFontFamily => Avalonia.Controls.Documents.TextElement.FontFamilyProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/> property defined in <see cref="Avalonia.Controls.Documents.TextElement"/> class.
/// </summary>
public static Avalonia.AttachedProperty<Avalonia.Media.FontFeatureCollection> TextElementFontFeatures => Avalonia.Controls.Documents.TextElement.FontFeaturesProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Documents.TextElement.FontSizeProperty"/> property defined in <see cref="Avalonia.Controls.Documents.TextElement"/> class.
/// </summary>

Просмотреть файл

@ -38,6 +38,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Media.IBrush> TextPresenterCaretBrush => Avalonia.Controls.Presenters.TextPresenter.CaretBrushProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/> property defined in <see cref="Avalonia.Controls.Presenters.TextPresenter"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.TimeSpan> TextPresenterCaretBlinkInterval => Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Presenters.TextPresenter.SelectionStartProperty"/> property defined in <see cref="Avalonia.Controls.Presenters.TextPresenter"/> class.
/// </summary>

Просмотреть файл

@ -37,4 +37,19 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.ToolTip.ShowDelayProperty"/> property defined in <see cref="Avalonia.Controls.ToolTip"/> class.
/// </summary>
public static Avalonia.AttachedProperty<System.Int32> ToolTipShowDelay => Avalonia.Controls.ToolTip.ShowDelayProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/> property defined in <see cref="Avalonia.Controls.ToolTip"/> class.
/// </summary>
public static Avalonia.AttachedProperty<System.Int32> ToolTipBetweenShowDelay => Avalonia.Controls.ToolTip.BetweenShowDelayProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/> property defined in <see cref="Avalonia.Controls.ToolTip"/> class.
/// </summary>
public static Avalonia.AttachedProperty<System.Boolean> ToolTipShowOnDisabled => Avalonia.Controls.ToolTip.ShowOnDisabledProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/> property defined in <see cref="Avalonia.Controls.ToolTip"/> class.
/// </summary>
public static Avalonia.AttachedProperty<System.Boolean> ToolTipServiceEnabled => Avalonia.Controls.ToolTip.ServiceEnabledProperty;
}

Просмотреть файл

@ -52,4 +52,9 @@ public static partial class Properties
/// The <see cref="Avalonia.Controls.TopLevel.SystemBarColorProperty"/> property defined in <see cref="Avalonia.Controls.TopLevel"/> class.
/// </summary>
public static Avalonia.AttachedProperty<Avalonia.Media.SolidColorBrush> TopLevelSystemBarColor => Avalonia.Controls.TopLevel.SystemBarColorProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/> property defined in <see cref="Avalonia.Controls.TopLevel"/> class.
/// </summary>
public static Avalonia.AttachedProperty<System.Boolean> TopLevelAutoSafeAreaPadding => Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty;
}

Просмотреть файл

@ -58,6 +58,11 @@ public static partial class Properties
/// </summary>
public static Avalonia.StyledProperty<System.Boolean> WindowShowInTaskbar => Avalonia.Controls.Window.ShowInTaskbarProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Window.ClosingBehaviorProperty"/> property defined in <see cref="Avalonia.Controls.Window"/> class.
/// </summary>
public static Avalonia.StyledProperty<Avalonia.Controls.WindowClosingBehavior> WindowClosingBehavior => Avalonia.Controls.Window.ClosingBehaviorProperty;
/// <summary>
/// The <see cref="Avalonia.Controls.Window.WindowStateProperty"/> property defined in <see cref="Avalonia.Controls.Window"/> class.
/// </summary>

Просмотреть файл

@ -6,6 +6,78 @@ namespace NXUI.Extensions;
/// </summary>
public static partial class AutoCompleteBoxSetters
{
// Avalonia.Controls.AutoCompleteBox.CaretIndexProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxCaretIndex(this Style style, System.Int32 value)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxCaretIndex(this KeyFrame keyFrame, System.Int32 value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxCaretIndex(this Style style, IObservable<System.Int32> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxCaretIndex(this KeyFrame keyFrame, IObservable<System.Int32> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxCaretIndex(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.CaretIndexProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxCaretIndex(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.CaretIndexProperty, binding));
return keyFrame;
}
// Avalonia.Controls.AutoCompleteBox.WatermarkProperty
/// <summary>
@ -1158,4 +1230,220 @@ public static partial class AutoCompleteBoxSetters
return keyFrame;
}
// Avalonia.Controls.AutoCompleteBox.MaxLengthProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxMaxLength(this Style style, System.Int32 value)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxMaxLength(this KeyFrame keyFrame, System.Int32 value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxMaxLength(this Style style, IObservable<System.Int32> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxMaxLength(this KeyFrame keyFrame, IObservable<System.Int32> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxMaxLength(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.MaxLengthProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxMaxLength(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.MaxLengthProperty, binding));
return keyFrame;
}
// Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxInnerLeftContent(this Style style, System.Object value)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxInnerLeftContent(this KeyFrame keyFrame, System.Object value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxInnerLeftContent(this Style style, IObservable<System.Object> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxInnerLeftContent(this KeyFrame keyFrame, IObservable<System.Object> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxInnerLeftContent(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxInnerLeftContent(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerLeftContentProperty, binding));
return keyFrame;
}
// Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxInnerRightContent(this Style style, System.Object value)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxInnerRightContent(this KeyFrame keyFrame, System.Object value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxInnerRightContent(this Style style, IObservable<System.Object> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxInnerRightContent(this KeyFrame keyFrame, IObservable<System.Object> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetAutoCompleteBoxInnerRightContent(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetAutoCompleteBoxInnerRightContent(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.AutoCompleteBox.InnerRightContentProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -78,6 +78,78 @@ public static partial class BorderSetters
return keyFrame;
}
// Avalonia.Controls.Border.BackgroundSizingProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetBorderBackgroundSizing(this Style style, Avalonia.Media.BackgroundSizing value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Border.BackgroundSizingProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetBorderBackgroundSizing(this KeyFrame keyFrame, Avalonia.Media.BackgroundSizing value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Border.BackgroundSizingProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetBorderBackgroundSizing(this Style style, IObservable<Avalonia.Media.BackgroundSizing> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Border.BackgroundSizingProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetBorderBackgroundSizing(this KeyFrame keyFrame, IObservable<Avalonia.Media.BackgroundSizing> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Border.BackgroundSizingProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetBorderBackgroundSizing(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Border.BackgroundSizingProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Border.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetBorderBackgroundSizing(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Border.BackgroundSizingProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Border.BorderBrushProperty
/// <summary>

Просмотреть файл

@ -437,4 +437,76 @@ public static partial class ComboBoxSetters
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ComboBox.VerticalContentAlignmentProperty, binding));
return keyFrame;
}
// Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetComboBoxSelectionBoxItemTemplate(this Style style, Avalonia.Controls.Templates.IDataTemplate value)
{
style.Setters.Add(new Setter(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetComboBoxSelectionBoxItemTemplate(this KeyFrame keyFrame, Avalonia.Controls.Templates.IDataTemplate value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetComboBoxSelectionBoxItemTemplate(this Style style, IObservable<Avalonia.Controls.Templates.IDataTemplate> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetComboBoxSelectionBoxItemTemplate(this KeyFrame keyFrame, IObservable<Avalonia.Controls.Templates.IDataTemplate> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetComboBoxSelectionBoxItemTemplate(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetComboBoxSelectionBoxItemTemplate(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ComboBox.SelectionBoxItemTemplateProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -78,6 +78,78 @@ public static partial class ContentPresenterSetters
return keyFrame;
}
// Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetContentPresenterBackgroundSizing(this Style style, Avalonia.Media.BackgroundSizing value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetContentPresenterBackgroundSizing(this KeyFrame keyFrame, Avalonia.Media.BackgroundSizing value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetContentPresenterBackgroundSizing(this Style style, IObservable<Avalonia.Media.BackgroundSizing> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetContentPresenterBackgroundSizing(this KeyFrame keyFrame, IObservable<Avalonia.Media.BackgroundSizing> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetContentPresenterBackgroundSizing(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetContentPresenterBackgroundSizing(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Presenters.ContentPresenter.BackgroundSizingProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Presenters.ContentPresenter.BorderBrushProperty
/// <summary>

Просмотреть файл

@ -150,6 +150,78 @@ public static partial class DataValidationErrorsSetters
return keyFrame;
}
// Avalonia.Controls.DataValidationErrors.ErrorConverterProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetDataValidationErrorsErrorConverter(this Style style, System.Func<System.Object,System.Object> value)
{
style.Setters.Add(new Setter(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetDataValidationErrorsErrorConverter(this KeyFrame keyFrame, System.Func<System.Object,System.Object> value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetDataValidationErrorsErrorConverter(this Style style, IObservable<System.Func<System.Object,System.Object>> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetDataValidationErrorsErrorConverter(this KeyFrame keyFrame, IObservable<System.Func<System.Object,System.Object>> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetDataValidationErrorsErrorConverter(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.DataValidationErrors.ErrorConverterProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetDataValidationErrorsErrorConverter(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.DataValidationErrors.ErrorConverterProperty, binding));
return keyFrame;
}
// Avalonia.Controls.DataValidationErrors.ErrorTemplateProperty
/// <summary>

Просмотреть файл

@ -0,0 +1,152 @@
// <auto-generated />
namespace NXUI.Extensions;
/// <summary>
/// The avalonia <see cref="Avalonia.Controls.HyperlinkButton"/> class style setters extension methods.
/// </summary>
public static partial class HyperlinkButtonSetters
{
// Avalonia.Controls.HyperlinkButton.IsVisitedProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetHyperlinkButtonIsVisited(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.IsVisitedProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetHyperlinkButtonIsVisited(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.IsVisitedProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetHyperlinkButtonIsVisited(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.IsVisitedProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetHyperlinkButtonIsVisited(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.IsVisitedProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetHyperlinkButtonIsVisited(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.IsVisitedProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.HyperlinkButton.IsVisitedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetHyperlinkButtonIsVisited(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.IsVisitedProperty, binding));
return keyFrame;
}
// Avalonia.Controls.HyperlinkButton.NavigateUriProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetHyperlinkButtonNavigateUri(this Style style, System.Uri value)
{
style.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.NavigateUriProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetHyperlinkButtonNavigateUri(this KeyFrame keyFrame, System.Uri value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.NavigateUriProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetHyperlinkButtonNavigateUri(this Style style, IObservable<System.Uri> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.NavigateUriProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetHyperlinkButtonNavigateUri(this KeyFrame keyFrame, IObservable<System.Uri> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.NavigateUriProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetHyperlinkButtonNavigateUri(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.NavigateUriProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.HyperlinkButton.NavigateUriProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetHyperlinkButtonNavigateUri(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.HyperlinkButton.NavigateUriProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -438,4 +438,220 @@ public static partial class MenuItemSetters
return keyFrame;
}
// Avalonia.Controls.MenuItem.ToggleTypeProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemToggleType(this Style style, Avalonia.Controls.MenuItemToggleType value)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.ToggleTypeProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemToggleType(this KeyFrame keyFrame, Avalonia.Controls.MenuItemToggleType value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.ToggleTypeProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemToggleType(this Style style, IObservable<Avalonia.Controls.MenuItemToggleType> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.ToggleTypeProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemToggleType(this KeyFrame keyFrame, IObservable<Avalonia.Controls.MenuItemToggleType> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.ToggleTypeProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemToggleType(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.ToggleTypeProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.ToggleTypeProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemToggleType(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.ToggleTypeProperty, binding));
return keyFrame;
}
// Avalonia.Controls.MenuItem.IsCheckedProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemIsChecked(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.IsCheckedProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemIsChecked(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.IsCheckedProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemIsChecked(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.IsCheckedProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemIsChecked(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.IsCheckedProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemIsChecked(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.IsCheckedProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.IsCheckedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemIsChecked(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.IsCheckedProperty, binding));
return keyFrame;
}
// Avalonia.Controls.MenuItem.GroupNameProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemGroupName(this Style style, System.String value)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.GroupNameProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemGroupName(this KeyFrame keyFrame, System.String value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.GroupNameProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemGroupName(this Style style, IObservable<System.String> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.GroupNameProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemGroupName(this KeyFrame keyFrame, IObservable<System.String> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.GroupNameProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetMenuItemGroupName(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.MenuItem.GroupNameProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.MenuItem.GroupNameProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetMenuItemGroupName(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.MenuItem.GroupNameProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -725,4 +725,76 @@ public static partial class NativeMenuItemSetters
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsEnabledProperty, binding));
return keyFrame;
}
// Avalonia.Controls.NativeMenuItem.IsVisibleProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNativeMenuItemIsVisible(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsVisibleProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNativeMenuItemIsVisible(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsVisibleProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNativeMenuItemIsVisible(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsVisibleProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNativeMenuItemIsVisible(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsVisibleProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNativeMenuItemIsVisible(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsVisibleProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NativeMenuItem.IsVisibleProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNativeMenuItemIsVisible(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NativeMenuItem.IsVisibleProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -1230,4 +1230,148 @@ public static partial class NumericUpDownSetters
return keyFrame;
}
// Avalonia.Controls.NumericUpDown.InnerLeftContentProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNumericUpDownInnerLeftContent(this Style style, System.Object value)
{
style.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNumericUpDownInnerLeftContent(this KeyFrame keyFrame, System.Object value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNumericUpDownInnerLeftContent(this Style style, IObservable<System.Object> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNumericUpDownInnerLeftContent(this KeyFrame keyFrame, IObservable<System.Object> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNumericUpDownInnerLeftContent(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerLeftContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNumericUpDownInnerLeftContent(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerLeftContentProperty, binding));
return keyFrame;
}
// Avalonia.Controls.NumericUpDown.InnerRightContentProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNumericUpDownInnerRightContent(this Style style, System.Object value)
{
style.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerRightContentProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNumericUpDownInnerRightContent(this KeyFrame keyFrame, System.Object value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerRightContentProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNumericUpDownInnerRightContent(this Style style, IObservable<System.Object> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerRightContentProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNumericUpDownInnerRightContent(this KeyFrame keyFrame, IObservable<System.Object> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerRightContentProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetNumericUpDownInnerRightContent(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerRightContentProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.NumericUpDown.InnerRightContentProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetNumericUpDownInnerRightContent(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.NumericUpDown.InnerRightContentProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -0,0 +1,80 @@
// <auto-generated />
namespace NXUI.Extensions;
/// <summary>
/// The avalonia <see cref="Avalonia.Media.PathSegment"/> class style setters extension methods.
/// </summary>
public static partial class PathSegmentSetters
{
// Avalonia.Media.PathSegment.IsStrokedProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetPathSegmentIsStroked(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Media.PathSegment.IsStrokedProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetPathSegmentIsStroked(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.PathSegment.IsStrokedProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetPathSegmentIsStroked(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Media.PathSegment.IsStrokedProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetPathSegmentIsStroked(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.PathSegment.IsStrokedProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetPathSegmentIsStroked(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Media.PathSegment.IsStrokedProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.PathSegment.IsStrokedProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetPathSegmentIsStroked(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.PathSegment.IsStrokedProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -77,4 +77,76 @@ public static partial class PopupRootSetters
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.TransformProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetPopupRootWindowManagerAddShadowHint(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetPopupRootWindowManagerAddShadowHint(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetPopupRootWindowManagerAddShadowHint(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetPopupRootWindowManagerAddShadowHint(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetPopupRootWindowManagerAddShadowHint(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetPopupRootWindowManagerAddShadowHint(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.PopupRoot.WindowManagerAddShadowHintProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -150,75 +150,147 @@ public static partial class RadialGradientBrushSetters
return keyFrame;
}
// Avalonia.Media.RadialGradientBrush.RadiusProperty
// Avalonia.Media.RadialGradientBrush.RadiusXProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/>.
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRadialGradientBrushRadius(this Style style, System.Double value)
public static Style SetRadialGradientBrushRadiusX(this Style style, Avalonia.RelativeScalar value)
{
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusProperty, value));
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusXProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/>.
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRadialGradientBrushRadius(this KeyFrame keyFrame, System.Double value)
public static KeyFrame SetRadialGradientBrushRadiusX(this KeyFrame keyFrame, Avalonia.RelativeScalar value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusProperty, value));
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusXProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/>.
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRadialGradientBrushRadius(this Style style, IObservable<System.Double> observable)
public static Style SetRadialGradientBrushRadiusX(this Style style, IObservable<Avalonia.RelativeScalar> observable)
{
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusProperty, observable.ToBinding()));
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusXProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/>.
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRadialGradientBrushRadius(this KeyFrame keyFrame, IObservable<System.Double> observable)
public static KeyFrame SetRadialGradientBrushRadiusX(this KeyFrame keyFrame, IObservable<Avalonia.RelativeScalar> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusProperty, observable.ToBinding()));
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusXProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/>.
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRadialGradientBrushRadius(this Style style, Avalonia.Data.IBinding binding)
public static Style SetRadialGradientBrushRadiusX(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusProperty, binding));
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusXProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusProperty"/>.
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusXProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRadialGradientBrushRadius(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
public static KeyFrame SetRadialGradientBrushRadiusX(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusProperty, binding));
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusXProperty, binding));
return keyFrame;
}
// Avalonia.Media.RadialGradientBrush.RadiusYProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRadialGradientBrushRadiusY(this Style style, Avalonia.RelativeScalar value)
{
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusYProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRadialGradientBrushRadiusY(this KeyFrame keyFrame, Avalonia.RelativeScalar value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusYProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRadialGradientBrushRadiusY(this Style style, IObservable<Avalonia.RelativeScalar> observable)
{
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusYProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRadialGradientBrushRadiusY(this KeyFrame keyFrame, IObservable<Avalonia.RelativeScalar> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusYProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRadialGradientBrushRadiusY(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusYProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RadialGradientBrush.RadiusYProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRadialGradientBrushRadiusY(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RadialGradientBrush.RadiusYProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -6,6 +6,150 @@ namespace NXUI.Extensions;
/// </summary>
public static partial class RectangleGeometrySetters
{
// Avalonia.Media.RectangleGeometry.RadiusXProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRectangleGeometryRadiusX(this Style style, System.Double value)
{
style.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusXProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRectangleGeometryRadiusX(this KeyFrame keyFrame, System.Double value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusXProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRectangleGeometryRadiusX(this Style style, IObservable<System.Double> observable)
{
style.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusXProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRectangleGeometryRadiusX(this KeyFrame keyFrame, IObservable<System.Double> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusXProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRectangleGeometryRadiusX(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusXProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusXProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRectangleGeometryRadiusX(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusXProperty, binding));
return keyFrame;
}
// Avalonia.Media.RectangleGeometry.RadiusYProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRectangleGeometryRadiusY(this Style style, System.Double value)
{
style.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusYProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRectangleGeometryRadiusY(this KeyFrame keyFrame, System.Double value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusYProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRectangleGeometryRadiusY(this Style style, IObservable<System.Double> observable)
{
style.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusYProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRectangleGeometryRadiusY(this KeyFrame keyFrame, IObservable<System.Double> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusYProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetRectangleGeometryRadiusY(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusYProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Media.RectangleGeometry.RadiusYProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetRectangleGeometryRadiusY(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Media.RectangleGeometry.RadiusYProperty, binding));
return keyFrame;
}
// Avalonia.Media.RectangleGeometry.RectProperty
/// <summary>

Просмотреть файл

@ -222,4 +222,76 @@ public static partial class SelectableTextBlockSetters
return keyFrame;
}
// Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetSelectableTextBlockSelectionForegroundBrush(this Style style, Avalonia.Media.IBrush value)
{
style.Setters.Add(new Setter(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetSelectableTextBlockSelectionForegroundBrush(this KeyFrame keyFrame, Avalonia.Media.IBrush value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetSelectableTextBlockSelectionForegroundBrush(this Style style, IObservable<Avalonia.Media.IBrush> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetSelectableTextBlockSelectionForegroundBrush(this KeyFrame keyFrame, IObservable<Avalonia.Media.IBrush> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetSelectableTextBlockSelectionForegroundBrush(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetSelectableTextBlockSelectionForegroundBrush(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.SelectableTextBlock.SelectionForegroundBrushProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -78,6 +78,78 @@ public static partial class TemplatedControlSetters
return keyFrame;
}
// Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTemplatedControlBackgroundSizing(this Style style, Avalonia.Media.BackgroundSizing value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTemplatedControlBackgroundSizing(this KeyFrame keyFrame, Avalonia.Media.BackgroundSizing value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTemplatedControlBackgroundSizing(this Style style, IObservable<Avalonia.Media.BackgroundSizing> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTemplatedControlBackgroundSizing(this KeyFrame keyFrame, IObservable<Avalonia.Media.BackgroundSizing> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTemplatedControlBackgroundSizing(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTemplatedControlBackgroundSizing(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.BackgroundSizingProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Primitives.TemplatedControl.BorderBrushProperty
/// <summary>
@ -366,6 +438,78 @@ public static partial class TemplatedControlSetters
return keyFrame;
}
// Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTemplatedControlFontFeatures(this Style style, Avalonia.Media.FontFeatureCollection value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTemplatedControlFontFeatures(this KeyFrame keyFrame, Avalonia.Media.FontFeatureCollection value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTemplatedControlFontFeatures(this Style style, IObservable<Avalonia.Media.FontFeatureCollection> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTemplatedControlFontFeatures(this KeyFrame keyFrame, IObservable<Avalonia.Media.FontFeatureCollection> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTemplatedControlFontFeatures(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTemplatedControlFontFeatures(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Primitives.TemplatedControl.FontFeaturesProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Primitives.TemplatedControl.FontSizeProperty
/// <summary>

Просмотреть файл

@ -1302,6 +1302,78 @@ public static partial class TextBlockSetters
return keyFrame;
}
// Avalonia.Controls.TextBlock.FontFeaturesProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBlockFontFeatures(this Style style, Avalonia.Media.FontFeatureCollection value)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBlock.FontFeaturesProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBlockFontFeatures(this KeyFrame keyFrame, Avalonia.Media.FontFeatureCollection value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBlock.FontFeaturesProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBlockFontFeatures(this Style style, IObservable<Avalonia.Media.FontFeatureCollection> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBlock.FontFeaturesProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBlockFontFeatures(this KeyFrame keyFrame, IObservable<Avalonia.Media.FontFeatureCollection> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBlock.FontFeaturesProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBlockFontFeatures(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBlock.FontFeaturesProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBlock.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBlockFontFeatures(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBlock.FontFeaturesProperty, binding));
return keyFrame;
}
// Avalonia.Controls.TextBlock.InlinesProperty
/// <summary>

Просмотреть файл

@ -582,6 +582,78 @@ public static partial class TextBoxSetters
return keyFrame;
}
// Avalonia.Controls.TextBox.CaretBlinkIntervalProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBoxCaretBlinkInterval(this Style style, System.TimeSpan value)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBoxCaretBlinkInterval(this KeyFrame keyFrame, System.TimeSpan value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBoxCaretBlinkInterval(this Style style, IObservable<System.TimeSpan> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBoxCaretBlinkInterval(this KeyFrame keyFrame, IObservable<System.TimeSpan> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBoxCaretBlinkInterval(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBox.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBoxCaretBlinkInterval(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBox.CaretBlinkIntervalProperty, binding));
return keyFrame;
}
// Avalonia.Controls.TextBox.SelectionStartProperty
/// <summary>
@ -870,6 +942,78 @@ public static partial class TextBoxSetters
return keyFrame;
}
// Avalonia.Controls.TextBox.MinLinesProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBoxMinLines(this Style style, System.Int32 value)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBox.MinLinesProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBoxMinLines(this KeyFrame keyFrame, System.Int32 value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBox.MinLinesProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBoxMinLines(this Style style, IObservable<System.Int32> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBox.MinLinesProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBoxMinLines(this KeyFrame keyFrame, IObservable<System.Int32> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBox.MinLinesProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextBoxMinLines(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.TextBox.MinLinesProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TextBox.MinLinesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextBoxMinLines(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TextBox.MinLinesProperty, binding));
return keyFrame;
}
// Avalonia.Controls.TextBox.TextProperty
/// <summary>

Просмотреть файл

@ -150,6 +150,78 @@ public static partial class TextElementSetters
return keyFrame;
}
// Avalonia.Controls.Documents.TextElement.FontFeaturesProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextElementFontFeatures(this Style style, Avalonia.Media.FontFeatureCollection value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextElementFontFeatures(this KeyFrame keyFrame, Avalonia.Media.FontFeatureCollection value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextElementFontFeatures(this Style style, IObservable<Avalonia.Media.FontFeatureCollection> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextElementFontFeatures(this KeyFrame keyFrame, IObservable<Avalonia.Media.FontFeatureCollection> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextElementFontFeatures(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Documents.TextElement.FontFeaturesProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextElementFontFeatures(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Documents.TextElement.FontFeaturesProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Documents.TextElement.FontSizeProperty
/// <summary>

Просмотреть файл

@ -438,6 +438,78 @@ public static partial class TextPresenterSetters
return keyFrame;
}
// Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextPresenterCaretBlinkInterval(this Style style, System.TimeSpan value)
{
style.Setters.Add(new Setter(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextPresenterCaretBlinkInterval(this KeyFrame keyFrame, System.TimeSpan value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextPresenterCaretBlinkInterval(this Style style, IObservable<System.TimeSpan> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextPresenterCaretBlinkInterval(this KeyFrame keyFrame, IObservable<System.TimeSpan> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTextPresenterCaretBlinkInterval(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTextPresenterCaretBlinkInterval(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.Presenters.TextPresenter.CaretBlinkIntervalProperty, binding));
return keyFrame;
}
// Avalonia.Controls.Presenters.TextPresenter.SelectionStartProperty
/// <summary>

Просмотреть файл

@ -437,4 +437,220 @@ public static partial class ToolTipSetters
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowDelayProperty, binding));
return keyFrame;
}
// Avalonia.Controls.ToolTip.BetweenShowDelayProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipBetweenShowDelay(this Style style, System.Int32 value)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.BetweenShowDelayProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipBetweenShowDelay(this KeyFrame keyFrame, System.Int32 value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.BetweenShowDelayProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipBetweenShowDelay(this Style style, IObservable<System.Int32> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.BetweenShowDelayProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipBetweenShowDelay(this KeyFrame keyFrame, IObservable<System.Int32> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.BetweenShowDelayProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipBetweenShowDelay(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.BetweenShowDelayProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.BetweenShowDelayProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipBetweenShowDelay(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.BetweenShowDelayProperty, binding));
return keyFrame;
}
// Avalonia.Controls.ToolTip.ShowOnDisabledProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipShowOnDisabled(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowOnDisabledProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipShowOnDisabled(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowOnDisabledProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipShowOnDisabled(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowOnDisabledProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipShowOnDisabled(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowOnDisabledProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipShowOnDisabled(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowOnDisabledProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.ShowOnDisabledProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipShowOnDisabled(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ShowOnDisabledProperty, binding));
return keyFrame;
}
// Avalonia.Controls.ToolTip.ServiceEnabledProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipServiceEnabled(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ServiceEnabledProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipServiceEnabled(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ServiceEnabledProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipServiceEnabled(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ServiceEnabledProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipServiceEnabled(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ServiceEnabledProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetToolTipServiceEnabled(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ServiceEnabledProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.ToolTip.ServiceEnabledProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetToolTipServiceEnabled(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.ToolTip.ServiceEnabledProperty, binding));
return keyFrame;
}
}

Просмотреть файл

@ -294,4 +294,76 @@ public static partial class TopLevelSetters
return keyFrame;
}
// Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="value">The property value.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTopLevelAutoSafeAreaPadding(this Style style, System.Boolean value)
{
style.Setters.Add(new Setter(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty, value));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="value">The property value.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTopLevelAutoSafeAreaPadding(this KeyFrame keyFrame, System.Boolean value)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty, value));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="observable">The property observable.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTopLevelAutoSafeAreaPadding(this Style style, IObservable<System.Boolean> observable)
{
style.Setters.Add(new Setter(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty, observable.ToBinding()));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="observable">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTopLevelAutoSafeAreaPadding(this KeyFrame keyFrame, IObservable<System.Boolean> observable)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty, observable.ToBinding()));
return keyFrame;
}
/// <summary>
/// Adds a style setter for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="style">The target style.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target style object reference.</returns>
public static Style SetTopLevelAutoSafeAreaPadding(this Style style, Avalonia.Data.IBinding binding)
{
style.Setters.Add(new Setter(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty, binding));
return style;
}
/// <summary>
/// Adds a keyframe setter for an <see cref="Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty"/>.
/// </summary>
/// <param name="keyFrame">The target keyframe.</param>
/// <param name="binding">The property binding.</param>
/// <returns>The target keyframe object reference.</returns>
public static KeyFrame SetTopLevelAutoSafeAreaPadding(this KeyFrame keyFrame, Avalonia.Data.IBinding binding)
{
keyFrame.Setters.Add(new Setter(Avalonia.Controls.TopLevel.AutoSafeAreaPaddingProperty, binding));
return keyFrame;
}
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше