From 6e88b5555013d780cfcce81bcbc0d2eb858a036b Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Sun, 2 Jul 2023 14:34:26 +0100 Subject: [PATCH] Update to Avalonia 11.0.0-rc2.2 (#326) Co-authored-by: Richard Webb --- src/Avalonia.FuncUI/DSL/ItemsControl.fs | 6 ------ src/Avalonia.FuncUI/DSL/Panels/StackPanel.fs | 8 +++++++- src/Directory.Build.props | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Avalonia.FuncUI/DSL/ItemsControl.fs b/src/Avalonia.FuncUI/DSL/ItemsControl.fs index f69f1329..f156ad3c 100644 --- a/src/Avalonia.FuncUI/DSL/ItemsControl.fs +++ b/src/Avalonia.FuncUI/DSL/ItemsControl.fs @@ -28,12 +28,6 @@ module ItemsControl = static member itemTemplate<'t when 't :> ItemsControl>(value: IDataTemplate) : IAttr<'t> = AttrBuilder<'t>.CreateProperty(ItemsControl.ItemTemplateProperty, value, ValueNone) - static member areHorizontalSnapPointsRegular<'t when 't :> ItemsControl>(value: bool) : IAttr<'t> = - AttrBuilder<'t>.CreateProperty(ItemsControl.AreHorizontalSnapPointsRegularProperty, value, ValueNone) - - static member areVerticalSnapPointsRegular<'t when 't :> ItemsControl>(value: bool) : IAttr<'t> = - AttrBuilder<'t>.CreateProperty(ItemsControl.AreVerticalSnapPointsRegularProperty, value, ValueNone) - static member onItemsChanged<'t when 't :> ItemsControl>(func: IEnumerable -> unit, ?subPatchOptions) = AttrBuilder<'t>.CreateSubscription( ItemsControl.ItemsSourceProperty :> AvaloniaProperty, diff --git a/src/Avalonia.FuncUI/DSL/Panels/StackPanel.fs b/src/Avalonia.FuncUI/DSL/Panels/StackPanel.fs index 781e4906..ad15f228 100644 --- a/src/Avalonia.FuncUI/DSL/Panels/StackPanel.fs +++ b/src/Avalonia.FuncUI/DSL/Panels/StackPanel.fs @@ -21,4 +21,10 @@ module StackPanel = /// Gets or sets the orientation in which child controls will be layed out. /// static member orientation<'t when 't :> StackPanel>(orientation: Orientation) : IAttr<'t> = - AttrBuilder<'t>.CreateProperty(StackPanel.OrientationProperty, orientation, ValueNone) \ No newline at end of file + AttrBuilder<'t>.CreateProperty(StackPanel.OrientationProperty, orientation, ValueNone) + + static member areHorizontalSnapPointsRegular<'t when 't :> StackPanel>(value: bool) : IAttr<'t> = + AttrBuilder<'t>.CreateProperty(StackPanel.AreHorizontalSnapPointsRegularProperty, value, ValueNone) + + static member areVerticalSnapPointsRegular<'t when 't :> StackPanel>(value: bool) : IAttr<'t> = + AttrBuilder<'t>.CreateProperty(StackPanel.AreVerticalSnapPointsRegularProperty, value, ValueNone) \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7c5558da..10b2d90c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,6 +1,6 @@ - 11.0.0-rc1.1 + 11.0.0-rc2.2 1.0.0-rc1.1.1