Skip to content

Commit

Permalink
Update to Avalonia 11.0.0-rc2.2 (#326)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Webb <[email protected]>
  • Loading branch information
Numpsy and Numpsy authored Jul 2, 2023
1 parent 0f79806 commit 6e88b55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/Avalonia.FuncUI/DSL/ItemsControl.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ module ItemsControl =
static member itemTemplate<'t when 't :> ItemsControl>(value: IDataTemplate) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<IDataTemplate>(ItemsControl.ItemTemplateProperty, value, ValueNone)

static member areHorizontalSnapPointsRegular<'t when 't :> ItemsControl>(value: bool) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<bool>(ItemsControl.AreHorizontalSnapPointsRegularProperty, value, ValueNone)

static member areVerticalSnapPointsRegular<'t when 't :> ItemsControl>(value: bool) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<bool>(ItemsControl.AreVerticalSnapPointsRegularProperty, value, ValueNone)

static member onItemsChanged<'t when 't :> ItemsControl>(func: IEnumerable -> unit, ?subPatchOptions) =
AttrBuilder<'t>.CreateSubscription(
ItemsControl.ItemsSourceProperty :> AvaloniaProperty<IEnumerable>,
Expand Down
8 changes: 7 additions & 1 deletion src/Avalonia.FuncUI/DSL/Panels/StackPanel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ module StackPanel =
/// Gets or sets the orientation in which child controls will be layed out.
/// </summary>
static member orientation<'t when 't :> StackPanel>(orientation: Orientation) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<Orientation>(StackPanel.OrientationProperty, orientation, ValueNone)
AttrBuilder<'t>.CreateProperty<Orientation>(StackPanel.OrientationProperty, orientation, ValueNone)

static member areHorizontalSnapPointsRegular<'t when 't :> StackPanel>(value: bool) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<bool>(StackPanel.AreHorizontalSnapPointsRegularProperty, value, ValueNone)

static member areVerticalSnapPointsRegular<'t when 't :> StackPanel>(value: bool) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<bool>(StackPanel.AreVerticalSnapPointsRegularProperty, value, ValueNone)
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<AvaloniaVersion>11.0.0-rc1.1</AvaloniaVersion>
<AvaloniaVersion>11.0.0-rc2.2</AvaloniaVersion>
<FuncUIVersion>1.0.0-rc1.1.1</FuncUIVersion>
</PropertyGroup>
</Project>

0 comments on commit 6e88b55

Please sign in to comment.