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.
我有一个现有的 XAML 文件,其中包含一些数据模板。这些数据模板之一可以在不同的情况下使用。因此,我只想在某个条件为真时绑定 1 个属性。
实现这一目标的最佳方法是什么?
我通过创建另一个覆盖原始数据模板来解决这个问题。谢谢你的帮助。