码迷,mamicode.com
首页 > 其他好文 > 详细

Style file: generic.xaml

时间:2014-06-06 20:47:27      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:des   c   style   class   blog   code   

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

标签:des   c   style   class   blog   code   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!