Style file: generic.xaml

时间:2014-06-06 20:47:27   收藏:0   阅读:248

All silverlight control style should be designed in generic.xaml which is in theme folder.

But when there are a lots of controls, the generic.xaml file will be too big. Generally, we hope one control style, one style file. There is one more further step we need to move:

Reference the other style files in the generic.xaml file like below:

bubuko.com,布布扣
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/AssemblyName;component/FilePath/Filename.xaml"/>
        <ResourceDictionary Source="/AssemblyName;component/FilePath/Filename.xaml"/>
        <ResourceDictionary Source="/AssemblyName;component/FilePath/Filename.xaml"/>
    </ResourceDictionary.MergedDictionaries>
bubuko.com,布布扣

 

It will work like a charmming.

Style file: generic.xaml,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!