logic for MainWindow.xaml public partial class MainWindow : Window ViewModelviewModel = new ViewModel();
{
InitializeComponent(throw new System.NotSupportedExcep
我们在我们的ReactiveUI.WPF核心WPF应用程序中使用了.Net 11.0.1。我们正在研究用基于ReactiveUI的绑定来替换所有基于XAML的绑定。= new MainWindowViewModel(); this.WhenActivated(disposables=> this.Bind(ViewModel, x => x.ItemB
因此,我目前正在尝试使用MVVM学习WPF,并且我在网上学习了一些教程。现在我有了一个简单的项目,我试着自己完成它,但不知何故ListBox仍然是空的。我认为它不会绑定到ViewModel。ViewModel: public class PersonViewModel ObservableCollection<Person> Personen { get; set; } = new另外,我这样设置我的DataContext: public PersonenView() Initializ