Usercontrol using wrong Datacontext

前端 未结 4 1131
别跟我提以往
别跟我提以往 2021-01-24 11:23

I have a UserControl that is used in a parent control in this way:


         


        
4条回答
  •  礼貌的吻别
    2021-01-24 12:01

    This is because you set the TranslationTextInput.DataContext to TranslationTextInputViewModel in the constructor.

提交回复
热议问题