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.
使用数据模板时 InitializeComponent()(用于在 wpf 中创建控件)如何工作。每次绑定对象更改时都会创建视图吗?
我不认为每次绑定更改时都会重新生成视图。它只是更新与更新有关的集合和视图(控件)。否则会消耗大量资源。