Template Binding in Control template

后端 未结 4 2172
我寻月下人不归
我寻月下人不归 2020-11-28 09:19

I have the following control template.

I wish to set the source property for the image control in the control template using Template Binding.

But since t

4条回答
  •  时光说笑
    2020-11-28 10:11

    I'd suggest using dynamic resources, e.g. define the template as follows:

    
        
            
                
                
            
        
    
    

    And use it like this:

    
    

提交回复
热议问题