public StandardPopupView(int id, StandardPopupViewModel.EnumPopupType Type) { InitializeComponent(); vModel = new StandardPopupViewModel(id, Type); vModel.DoRejectChanges += () => RejectChanges(); Caliburn.Micro.ViewModelBinder.Bind(vModel, this, null); }
public StandardPopupView(int id, StandardPopupViewModel.EnumPopupType Type, string titel, double height, double width) { InitializeComponent(); this.Height = height; this.Width = width; this.Title = titel; vModel = new StandardPopupViewModel(id, Type); vModel.DoRejectChanges += () => RejectChanges(); Caliburn.Micro.ViewModelBinder.Bind(vModel, this, null); }