Wednesday, October 22, 2014

How to reference ResourceDictionary defined Class Library from within App.xaml

app.xaml like this:



<Application
x:Class="ImportLibResourcesApp.App"
xmlns="http://ift.tt/w9rHWX;
xmlns:x="http://ift.tt/zZkFEV;
xmlns:local="using:ImportLibResourcesApp">
<Application.Resources >
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries >
<ResourceDictionary Source="/(default namespace of Dll );component/(yourresourcedictionary.xaml)"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>

</Application>



the sample project download here.


在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。


No comments:

Post a Comment