Skip to content

Commit

Permalink
Update to 11.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jul 5, 2023
1 parent 0fea560 commit f6c4645
Show file tree
Hide file tree
Showing 23 changed files with 284 additions and 1,729 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionPrefix>11.0.0</VersionPrefix>
<VersionSuffix>rc1.1</VersionSuffix>
<VersionSuffix></VersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
<Copyright>Copyright © Wiesław Šoltés 2023</Copyright>
Expand All @@ -13,7 +13,7 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<AvaloniaVersion>11.0.0-rc1.1</AvaloniaVersion>
<AvaloniaVersion>11.0.0</AvaloniaVersion>
<SystemReactiveVersion>5.0.0</SystemReactiveVersion>
</PropertyGroup>
</Project>
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ https://user-images.githubusercontent.com/2297442/132313187-32f18c4b-e894-46db-9
### NXUI

```xml
<PackageReference Include="NXUI" Version="11.0.0-rc1.1" />
<PackageReference Include="NXUI" Version="11.0.0" />
```

Additionally, depending on the application type:

### Desktop

```xml
<PackageReference Include="NXUI.Desktop" Version="11.0.0-rc1.1" />
<PackageReference Include="NXUI.Desktop" Version="11.0.0" />
```
or
```xml
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-rc1.1" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.0" />
```

### Browser

```xml
<PackageReference Include="Avalonia.Browser" Version="11.0.0-rc1.1" />
<PackageReference Include="Avalonia.Browser" Version="11.0.0" />
```

```
Expand Down
2 changes: 1 addition & 1 deletion src/NXUI.FSharp/Extensions/AnimationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static Avalonia.Animation.Animation keyFrames(this Avalonia.Animation.Ani
/// <param name="value"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
public static T animator<T>(this T animationSetter, CustomAnimatorBase value) where T : IAnimationSetter
public static T animator<T>(this T animationSetter, ICustomAnimator value) where T : IAnimationSetter
{
Avalonia.Animation.Animation.SetAnimator(animationSetter, value);
return animationSetter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,200 +539,4 @@ public static T OnDisplayMemberBinding<T>(this T obj, Action<Avalonia.Controls.I
handler(obj, observable);
return obj;
}

// Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty

/// <summary>
/// Sets a <see cref="Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty"/> 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 areHorizontalSnapPointsRegular<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.ItemsControl
{
obj[Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty] = value;
return obj;
}

/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty"/> 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 areHorizontalSnapPointsRegular<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.ItemsControl
{
var descriptor = Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}

/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty"/> 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 areHorizontalSnapPointsRegular<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.ItemsControl
{
var descriptor = Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}

/// <summary>
/// Makes a <see cref="Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty"/> 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.ItemsControl.AreHorizontalSnapPointsRegularProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindAreHorizontalSnapPointsRegular(
this Avalonia.Controls.ItemsControl obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}

/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty"/>.
/// </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> ObserveAreHorizontalSnapPointsRegular(this Avalonia.Controls.ItemsControl obj)
{
return obj.GetObservable(Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty);
}

/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty"/>.
/// </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 OnAreHorizontalSnapPointsRegular<T>(this T obj, Action<Avalonia.Controls.ItemsControl, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.ItemsControl
{
var observable = obj.GetObservable(Avalonia.Controls.ItemsControl.AreHorizontalSnapPointsRegularProperty);
handler(obj, observable);
return obj;
}

// Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty

/// <summary>
/// Sets a <see cref="Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty"/> 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 areVerticalSnapPointsRegular<T>(this T obj, System.Boolean value) where T : Avalonia.Controls.ItemsControl
{
obj[Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty] = value;
return obj;
}

/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty"/> 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 areVerticalSnapPointsRegular<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.ItemsControl
{
var descriptor = Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = binding;
return obj;
}

/// <summary>
/// Sets a binding to <see cref="Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty"/> 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 areVerticalSnapPointsRegular<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.ItemsControl
{
var descriptor = Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty.Bind().WithMode(mode).WithPriority(priority);
obj[descriptor] = observable.ToBinding();
return obj;
}

/// <summary>
/// Makes a <see cref="Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty"/> 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.ItemsControl.AreVerticalSnapPointsRegularProperty"/> binding.</returns>
public static Avalonia.Data.IBinding BindAreVerticalSnapPointsRegular(
this Avalonia.Controls.ItemsControl obj,
Avalonia.Data.BindingMode mode = Avalonia.Data.BindingMode.TwoWay,
Avalonia.Data.BindingPriority priority = Avalonia.Data.BindingPriority.LocalValue)
{
var descriptor = Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty.Bind().WithMode(mode).WithPriority(priority);
return obj[descriptor];
}

/// <summary>
/// Gets an observable for an <see cref="Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty"/>.
/// </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> ObserveAreVerticalSnapPointsRegular(this Avalonia.Controls.ItemsControl obj)
{
return obj.GetObservable(Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty);
}

/// <summary>
/// Sets a handler with an observable for an <see cref="Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty"/>.
/// </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 OnAreVerticalSnapPointsRegular<T>(this T obj, Action<Avalonia.Controls.ItemsControl, IObservable<System.Boolean>> handler) where T : Avalonia.Controls.ItemsControl
{
var observable = obj.GetObservable(Avalonia.Controls.ItemsControl.AreVerticalSnapPointsRegularProperty);
handler(obj, observable);
return obj;
}
}
Loading

0 comments on commit f6c4645

Please sign in to comment.