How to set a default source for an Image if binding source is null?

后端 未结 8 1842
无人及你
无人及你 2021-02-05 09:00

I\'m using binding for source of an Image control.


But this ImageUri can

8条回答
  •  不知归路
    2021-02-05 09:29

    You can use ImageFailed event and ChangePropertyAction.

    This Code Snippet worked for me:

    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    
    
        
            
                
                    
                        
                            /LanSysWebGIS;component/Pictures/Icon/NoImageAvailable.jpg
                        
                    
                
            
        
    
    

提交回复
热议问题