AvaloniaUI / Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
MIT License
234 stars 49 forks source link

Invisible in web assembly #235

Open Moisha opened 8 months ago

Moisha commented 8 months ago

TreeDataGrid works well in desktop version but invisible in browser. And make other controls invisible. Tried on Windows and Ubuntu, result is the same. For example this view

<TreeDataGrid Name="treeGrid" Source="{Binding Source}" HorizontalAlignment="Center" VerticalAlignment="Center" Width = "300" Height="300" />

and this view

<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <TreeView Name="tree" ItemsSource="{Binding Items}" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width = "300" /> <TreeDataGrid Name="treeGrid" Source="{Binding Source}" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width = "300" /> </StackPanel>

are totally invisible in browser. Changing places TreeView and TreeDataGrid has no effect.

Removing TreeDataGrid from second view immediately reveals TreeView.

Numpsy commented 3 months ago

fwiw, I've had it working in WASM before with Avalonia 11.0, and just tried it with the latest Avalonia 11.1 nightly and it seems ok (only a simple setup with a HierarchicalTreeDataGridSource but still)

image