How do I reference a StaticResource in code-behind?
The page-level Resources object has the ability to find local, app-level, static, and theme resources. This means you simply do this: foo2.Style = this.Resources[“NavigationBackButtonNormalStyle”] as Style; Best of luck!