Accessing ResourceDictionary from WPF UserControl

前端 未结 4 754
孤城傲影
孤城傲影 2021-01-18 05:55

I\'m trying to access a resource dictionary in a UserControl code-behind via C# and I\'m having little success.

Merged Dictionary:



        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 06:39

    Try to remove the forward slash infront of your location. The only time you should use /Resources is if you have to go up a library first. like ../Resources

    
        
            
                               
            
        
    
    

    Hope this helps you.

提交回复
热议问题