public Window_FastSegmentation() { this.InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; _vm = (Window_FastSegmentation_VM)FindResource("Window_FastSegmentation_VMDataSource"); // 在此点之下插入创建对象所需的代码。 }
public Window_FastSegmentation(FastSegmentParam info) { this.InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; _vm = (Window_FastSegmentation_VM)FindResource("Window_FastSegmentation_VMDataSource"); _vm.FastSegmentParam = info; Messenger.Default.Register<string>(this, MsgToken.MSG_WINFASTSEGMENTATION_CLOSE, CloseDialog); }