Skip to content

Commit

Permalink
add DataGridFrozenGrid bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkyFowl committed May 8, 2024
1 parent 0b65342 commit 57bc973
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Avalonia.FuncUI/DSL/DataGrid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ module DataGrid =
multipleContent = columns
)

[<AutoOpen>]
module DataGridFrozenGrid =
open Avalonia.Controls.Primitives
let create (attrs: IAttr<DataGridFrozenGrid> list): IView<DataGridFrozenGrid> =
ViewBuilder.Create<DataGridFrozenGrid>(attrs)

type Control with
static member isFrozen<'t when 't :> Control>(value: bool) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<bool>(DataGridFrozenGrid.IsFrozenProperty, value, ValueNone)

[<AutoOpen>]
module DataGridColumn =

Expand Down

0 comments on commit 57bc973

Please sign in to comment.