public TestHeaderView() { InitializeComponent(); _binder.Bind(x => x.Path).To(path); _binder.Bind(x => x.Status).To(status); _binder.Bind(x => x.AutoRun).To(autoRun); _binder.Bind(x => x.NumberOfRetries).To(numberOfRetries); _binder.Bind(x => x.Name).To(testName).OnChange(() => { hideTestName(); }).RebindOnChange(); var element = new ButtonElement(lifecycle); element.OnClick(() => _model.ToggleLifecycle()); _binder.AddElement(element); path.MouseDown += new System.Windows.Input.MouseButtonEventHandler(path_MouseDown); testName.LostFocus += (x, y) => { hideTestName(); }; //testName.LostMouseCapture += (x, y) => hideTestName(); testName.LostKeyboardFocus += (x, y) => hideTestName(); }
public TestHeaderView() { InitializeComponent(); _binder.Bind(x => x.Path).To(path); _binder.Bind(x => x.Status).To(status); _binder.Bind(x => x.AutoRun).To(autoRun); _binder.Bind(x => x.NumberOfRetries).To(numberOfRetries); _binder.Bind(x => x.Name).To(testName).OnChange(() => { hideTestName(); }).RebindOnChange(); var element = new ButtonElement(lifecycle); element.OnClick(() => _model.ToggleLifecycle()); _binder.AddElement(element); path.MouseDown += new System.Windows.Input.MouseButtonEventHandler(path_MouseDown); testName.LostFocus += (x, y) => { hideTestName(); }; //testName.LostMouseCapture += (x, y) => hideTestName(); testName.LostKeyboardFocus += (x, y) => hideTestName(); }
public TestHeaderView() { InitializeComponent(); _binder.Bind(x => x.Name).To(name); _binder.Bind(x => x.Path).To(path); _binder.Bind(x => x.Status).To(status); var element = new ButtonElement(lifecycle); element.OnClick(() => _model.ToggleLifecycle()); _binder.AddElement(element); }