WPF Image Command Binding

前端 未结 5 635
耶瑟儿~
耶瑟儿~ 2020-12-09 09:37

I\'m putting a WPF application together in which I have an image control which I want to bind a custom command object to from my view model that will execute when the image

5条回答
  •  轮回少年
    2020-12-09 10:06

    Simplified version of answer from @Robert Rossney:

    
        
            
        
    
    

    The best way to include an image is to use a {StaticResource x}, see WPF image resources

提交回复
热议问题