xaml中代码:
<Canvas >
<ContentPresenter Content="{Binding Canvas}"/>
</Canvas>
在对应的ViewModel类中添加属性Canvas即可