public PageTipBoxRackModel(PageTipBoxRackViewModel viewModel, PageTipBoxRackView view) { this.ViewModel = viewModel; this.View = view; //初始化界面并展示和吸头消息管理类中字典对应 init(); }
public PageTipBoxRackView() { InitializeComponent(); ViewModel = new PageTipBoxRackViewModel(this); DataContext = ViewModel; }