如何将注入的 ViewModel 停用到 ContentControl 中
[Import]
public IMyViewModel MyViewModel { get; set; }
public void ClickButton
{
//This Method Not Deactive MyViewModel
MyViewModel.Deactivate(true);
}
<ContentControl x:Name="MyViewModel" />
如何将注入的 ViewModel 停用到 ContentControl 中
[Import]
public IMyViewModel MyViewModel { get; set; }
public void ClickButton
{
//This Method Not Deactive MyViewModel
MyViewModel.Deactivate(true);
}
<ContentControl x:Name="MyViewModel" />