我正在使用MVVM模式并在运行我的应用程序时收到以下信息无效操作异常TwoWay或OneWayToSource绑定(bind)无法对“ViewModel.SynergyViewModel”类型的只读属性“Options”起作用。我已经在我的View模型中注释掉了我的所有源代码,并将其追溯到一个复选框。如果我在应用程序运行的View模型中注释掉复选框或属性,则减去功能。下面我列出了我的复选框的代码和View模型中的属性。privatebool_Options;publicboolOptions{get{return_Options;}privateset{if(_Options==val
OneWayToSource.NET4.0中的绑定(bind)似乎已损坏我有这个简单的Xaml我的代码是这样的publicMainWindow(){InitializeComponent();this.DataContext=this;}privatestringm_textProperty;publicstringTextProperty{get{return"ShouldnotbeusedinOneWayToSourceBinding";}set{m_textProperty=value;}}在.NET3.5中这可以正常工作,但可能除外。在TextBox中放置一些文本,按Tab键使
OneWayToSource.NET4.0中的绑定(bind)似乎已损坏我有这个简单的Xaml我的代码是这样的publicMainWindow(){InitializeComponent();this.DataContext=this;}privatestringm_textProperty;publicstringTextProperty{get{return"ShouldnotbeusedinOneWayToSourceBinding";}set{m_textProperty=value;}}在.NET3.5中这可以正常工作,但可能除外。在TextBox中放置一些文本,按Tab键使