【发布时间】:2014-08-25 13:56:00
【问题描述】:
在PhoneApplicationPage.Resources 标记内我的项目的.xaml 页面中声明了一些样式。
如何在 windows phone 8 后面的代码中访问这些样式
<phone:PhoneApplicationPage.Resources>
<Stlye x:key="Mystlye" TargetType = "Button">
.....
</Style>
</phone:PhoneApplicationPage.Resources>
现在我想在代码隐藏中访问这个 Mystlye...怎么做?
【问题讨论】:
标签: xaml windows-phone-8 code-behind