fsprojects / Avalonia.FuncUI

Develop cross-plattform GUI Applications using F# and Avalonia!
https://funcui.avaloniaui.net/
MIT License
889 stars 72 forks source link

UniformGrid.columns issue #400

Closed Fxplorer closed 2 months ago

Fxplorer commented 3 months ago

I was trying to add a UniformGrid in a view and there is no way to add the attributes,

    let view (state: State) (dispatch) : IView =
        UniformGrid.create [
            UniformGrid.columns 4
            UniformGrid.children [
            ]
        ]

the columns and the children both error saying they are not implemented. Avalonia 11.0.10 FuncUI 1.3.0

error: The value, constructor, namespace or type 'columns' is not defined.

JaggerJo commented 3 months ago

The UniformGrid control is located in a different namespace (Avalonia.Controls.Primitives) than most Controls. You need to open that namespace in order to access the DSL extensions.

open Avalonia.Controls.Primitives