Template Binding in Control template

后端 未结 4 2148
我寻月下人不归
我寻月下人不归 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:07

    I'm not sure that I understood your problem very well but why don't you use ContentPresenter? It allows to move the code for your Image at the higher level.

    
      ...
      
    
    ...
    
    

提交回复
热议问题