Skip to content

Commit

Permalink
Add static property ClipboardContentBinding (#385)
Browse files Browse the repository at this point in the history
Co-authored-by: Francesco Galla <fgalla@symmetryinvestments.com>
  • Loading branch information
GallaFrancesco and Francesco Galla authored Jan 31, 2024
1 parent d5068af commit 87eee60
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Avalonia.FuncUI/DSL/DataGrid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ module DataGridBoundColumn =
setter = ValueSome (fun (column, value) -> column.Binding <- value),
comparer = ValueNone
)

static member clipboardContentBinding<'t when 't :> DataGridBoundColumn>(binding: IBinding) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<IBinding>(
name = "ClipboardContentBinding",
value = binding,
getter = ValueSome (fun column -> column.ClipboardContentBinding),
setter = ValueSome (fun (column, value) -> column.ClipboardContentBinding <- value),
comparer = ValueNone
)


[<AutoOpen>]
Expand Down Expand Up @@ -153,4 +162,4 @@ module DataGridTemplateColumn =
AttrBuilder<'t>.CreateProperty<IDataTemplate>(DataGridTemplateColumn.CellTemplateProperty, template, ValueNone)

static member cellEditingTemplate<'t when 't :> DataGridTemplateColumn>(template: IDataTemplate) : IAttr<'t> =
AttrBuilder<'t>.CreateProperty<IDataTemplate>(DataGridTemplateColumn.CellEditingTemplateProperty, template, ValueNone)
AttrBuilder<'t>.CreateProperty<IDataTemplate>(DataGridTemplateColumn.CellEditingTemplateProperty, template, ValueNone)

0 comments on commit 87eee60

Please sign in to comment.