winrt xaml merged resources

后端 未结 1 937
旧时难觅i
旧时难觅i 2021-01-06 13:51

I need to separate application styles to several xaml files. But I also need to define some shared values like

100<         


        
1条回答
  •  感情败类
    2021-01-06 14:09

    Using merged dictionaries can get a bit tricky if you have dependencies between other merged dictionaries.

    When you have multiple application-scope resources the order of the declare is important. They are resolved in the inverse order of the declare, so in your case you should have the order.

    
    
        
            
            
            
    
        
    
    

    Also, you may need to reference the other ResourceDictionary in Styles1.xaml. This worked for me in Styles1.xaml.

    
    
      
        
      
    
      
    
    

    0 讨论(0)
提交回复
热议问题