Open yukina3230 opened 1 year ago
Semi.Avalonia is only a theme of the local Avalonia controls, and TabView
is not within the target scope.
Meanwhile, Ursa.Avalonia will consider adding TabView
.
同样在找这个控件,能够实现就太好了! 感觉New Tab按钮应该是一个可选项,因为Tab有可能是通过其他UI交互创建的。
同样在找这个控件,能够实现就太好了! 感觉New Tab按钮应该是一个可选项,因为Tab有可能是通过其他UI交互创建的。
其实还有很多其他的问题。在mvvm的模式下我的关闭按钮功能应该只是destroy tabitem,还是也要负责从vm集合中移除?
其实还有很多其他的问题。在mvvm的模式下我的关闭按钮功能应该只是destroy tabitem,还是也要负责从vm集合中移除?
个人的简单实现是用ListBox实现标签页,用ContentControl展示页面(利用ViewLocator实现导航)。每个ListBoxItemViewModel都带有标签页的Header和页面的ViewModel属性,所以关闭时自然也要将一个ItemViewModel从VM集合中移除,不知这样做是否会带来一些问题。 当然,实现更好的通用控件要考虑更多,这还得取决于你们的决定。
Would be great if it has a TabView control that can Reorder, New/Close tabs. (Like in FluentAvalonia)