首页 > 其他 > 详细

Style file: generic.xaml

时间:2014-06-05 12:49:52      阅读:366      评论:0      收藏:0      [点我收藏+]

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

Style file: generic.xaml

原文:http://www.cnblogs.com/crazyghostvon/p/Generic.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!