需要使用

using System.Windows

 

需要在类后面添加  

: FrameworkElement

使用方法

(string)FindResource(“key”);

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