r/dotnet • u/Userware • 15h ago
Promotion We've ported an open-source WPF TreeGrid control to OpenSilver so it can run cross-platform (live web demo)
Hi .NET friends,
We've ported the awesome WPF TreeGrid control by gulshan-verma to OpenSilver, so it can run cross-platform (web, win, mac, linux, android & ios).
It's a XAML hierarchical data grid that supports MVVM and comes with a ton of features. The attached video shows a few of them.
It's MIT-licensed, it runs fast, and you can test it in the dedicated online playground at:
On that site, you can drag and drop the TreeGrid control, then select it to see all of its options. There are still a few glitches that we're working on resolving, but it should be production-ready by the end of the year.
The full source code, along with a demo app, is available in the "OpenSilverPort" branch of https://github.com/OpenSilver/tree-grid-wpf
Please do share your feedback, so we can improve the TreeGrid!
Thanks a lot!
EDIT: Someone asked how much of the original code was preserved when porting from WPF to OpenSilver: the vast majority of the original C#/XAML code was preserved. We think more than 99%. The code is shared and we used compiler directives (#if OPENSILVER). You can see the full list of changes in the following commit (note that most of the files listed here are either Markdown or CSPROJ files, while only very little C#/XAML code was modified): https://github.com/OpenSilver/tree-grid-wpf/commit/cce756b5ea6c3087da6c81373ccb85fa00ab0fcb
