1

如何将注入的 ViewModel 停用到 ContentControl 中

[Import]
public IMyViewModel MyViewModel { get; set; }

public void ClickButton
{
   //This Method Not Deactive MyViewModel
   MyViewModel.Deactivate(true);
}

<ContentControl x:Name="MyViewModel" />
4

0 回答 0