Is there the way to share static resources among pages and user controls in the windows 8.1 store application?

StackOverflow https://stackoverflow.com/questions/23538794

문제

Is there the way to declare static resource once(for example style for some control), and to use that resource in any XAML in the application? I want to avoid coping same resource again on every new page or user control.

도움이 되었습니까?

해결책

I found the solution.

Static resource have to be declared at App.xaml:

<Application.Resources> <Style x:Key="myStyle" ...>...</style></Application.Resources>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top