public MyScreenView(IMyScreen logic) { InitializeComponent(); browseFilePathButton.Bind(logic.BrowseCommand, bindName: true, toolTip: "Browse file path ..."); filePathTextBox.Bind(logic, nameof(logic.FilePath)); }
public MyScreenView(IMyScreen controller) { this.controller = controller; InitializeComponent(); }
public MyScreenView(IMyScreen screen) { DataContext = screen; InitializeComponent(); }