MergedDictionaries and Resource lookup

后端 未结 4 1316
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 20:13

i have a problem with Resource dictionaries and mergeddictionaries in general, especially when it comes to resource-lookup performance. After some performance testing i foun

4条回答
  •  隐瞒了意图╮
    2020-12-04 20:28

    Was any light shed on the resource lookup procedure? Why was "myColor" not found?

    By the way, I found a way to make it work - but a strange and unstable way. If Application.xaml has this code, the color should be found:

    
        
        
            
                 
             
        
    
    

    If, on the other hand, you include this code into another XAML, which you then include into Application.xaml - it doesn't work, even though the resource structures are identical (verified with Snoop).

提交回复
热议问题