WPF compile error “IDictionary must have a Key attribute”

前端 未结 1 1760
暗喜
暗喜 2021-01-13 00:23

I\'ve created control styles I want to use among multiple xaml pages in my WPF app. To do this I created a Resources.xaml and added the styles there.

Then in my pag

1条回答
  •  伪装坚强ぢ
    2021-01-13 00:43

    Are there any other resources defined other than the merged ResourceDictionary in that Page?

    For example, here's a snippet from a Window I created.

    
        
            
                
                    
                
                
                
                
            
        
         ...
    

    The merged dictionary did not require a key, but the other resources for that Window do.

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