需要使用

using System.Windows

 

需要在类后面添加  

: FrameworkElement

使用方法

(string)FindResource(“key”);

posted on 2022-01-20 14:39  rin_riceroll  阅读(90)  评论(0)    收藏  举报