[英]Stylet MVVM binded VM don't show view
正如下面的代碼所示,我有主要的 RootViewModel 和 View,我在其中放置了一個 Content Control,並將其綁定到 ActiveItem。 我的問題是,單擊按鈕時未顯示 RedView,而是繪制文本 StyletTest.RedViewModel。 單擊按鈕時,我需要在內容控 ...
[英]Stylet MVVM binded VM don't show view
正如下面的代碼所示,我有主要的 RootViewModel 和 View,我在其中放置了一個 Content Control,並將其綁定到 ActiveItem。 我的問題是,單擊按鈕時未顯示 RedView,而是繪制文本 StyletTest.RedViewModel。 單擊按鈕時,我需要在內容控 ...
[英]Share a boolean property between the mainviewmodel and the others viewmodels in Stylet MVVM (vb.net)
我正在使用 Stylet MVVM 框架(VM 優先方法)開發 wpf 應用程序。 在 MainViewModel 中,我有一個名為 IsProjectLoaded 的屬性,它作為一個標志來知道用戶是否已加載它並執行正確的操作。 該標志應該從其他虛擬機觸發,例如 OpenProjectViewMod ...
[英]Adding Views/ViewModels to an ObservableCollection when using ViewModel-First MVVM Stylet framework
當使用 ViewModel first MVVM 模式時,如何將 ViewModel 添加到 ObservableCollection 以便它們可以綁定到另一個 View 並顯示為視圖? 我正在使用 AvalonDock,並且正在努力將 AvalonDock 中的LayoutDocument窗格綁 ...
[英]1 Control, two separate binding sources
早上好! 我有一個 WPF 應用程序,它將根據它收到的命令行參數顯示許多不同的文件類型。 它工作正常,但我想 go 回來並重構它。 我只是幾年的開發人員,想掌握 MVVM。 我正在使用名為 Stylet 的 MVVM 設計 package。 在我的 PDF 視圖中,我正在使用 Telerik Rad ...
[英]How to keep Views and ViewModels in seperate NameSpaces (, and assemblies) in Stylet
我已經開始在 WPF 中將Stylet用於 MVVM。 我在命名空間 StyletProj.Pages 中有我的視圖,在命名空間StyletProj.Pages中有Bootstrapper程序,在命名空間StyletProj中有我的 ViewModels(在另一個程序StyletViewModels ...
[英]Stylet Button not enabling when its CanX property returns true
使用樣式我正在使用帶有 dotnet core 3.1 的默認 Stylet 模板。 我只是添加了一個重現問題的屬性/方法。<TextBox Text="{Binding Username, Mode=TwoWay, Upda ...