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.
我们可以使用此代码 (Brush)this.FindResource("key")在 wpf 中获取 Brush 引用,如何在 windows8 Metro 中执行相同操作?
(Brush)this.FindResource("key")
尝试这个...
Resource.tryGetValue(out object,key);
应该管用。