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.
我定义了各种从 ControlBehavior 类派生的自定义行为类。.net 4 中缺少 ControlBehavior 类。
ControlBehavior在 .net 4 中发布之前是WPF 工具包的一部分。
那么如何进行呢?
您可能需要获取 WPFToolkit 的源代码并实现您自己的该(行为)类版本。