Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有基于日期范围生成列的 C# WPF 列表视图。我如何防止列升级?我怎么不能在生成列时做单个实例?
我怎样才能将它绑定到我的视图模型上?
每次单击“生成”按钮时都会附加列的问题吗?如果是这种情况,那么您唯一应该添加的是
private void CreateColumns() { myView.Columns.Clear(); //... }
到 CreateColumns 方法的开头。