Custom Theme That Overrides Default Theme WP7

后端 未结 3 544
执笔经年
执笔经年 2021-01-06 03:48

Is it possible to create a custom theme and have it used as the default theme?

Every example I can find anywhere says you can create custom themes by copying the

3条回答
  •  醉梦人生
    2021-01-06 04:37

    If you create a resource dictionary and call it something like Reset.xaml that contains all of the standard brush resources. Put any custom resource styles/brushes into another resource dictionary (we'll call it Custom.xaml for now). In App.xaml include both of these resource dictionaries as shown here:

        
            
                
                    
                    
                
             
        
    

    In theory, this should be enough, but unfortunately it's not. For some reason (hopefully a bug that will get fixed in the Mango update) you also need to include the Reset.xaml in the Custom.xaml like this:

        
            
        
    

    Once you've done this, that should be it; you shouldn't need to do anything else.

提交回复
热议问题