public ClosableTab() { // Create an instance of the usercontrol closableTabHeader = new CloseableHeader(); // Assign the usercontrol to the tab header this.Header = closableTabHeader; closableTabHeader.button_close.MouseEnter += new MouseEventHandler(button_close_MouseEnter); closableTabHeader.button_close.MouseLeave += new MouseEventHandler(button_close_MouseLeave); closableTabHeader.button_close.Click += new RoutedEventHandler(button_close_Click); closableTabHeader.label_TabTitle.SizeChanged += new SizeChangedEventHandler(label_TabTitle_SizeChanged); }
public ClosableTab() { Log.FunctionIndent("ClosableTab", "ClosableTab"); try { // Create an instance of the usercontrol closableTabHeader = new CloseableHeader(); // Assign the usercontrol to the tab header this.Header = closableTabHeader; closableTabHeader.button_close.MouseEnter += new MouseEventHandler(button_close_MouseEnter); closableTabHeader.button_close.MouseLeave += new MouseEventHandler(button_close_MouseLeave); closableTabHeader.button_close.Click += new RoutedEventHandler(button_close_Click); closableTabHeader.label_TabTitle.SizeChanged += new SizeChangedEventHandler(label_TabTitle_SizeChanged); } catch (Exception ex) { Log.Error(ex.ToString()); } Log.FunctionOutdent("ClosableTab", "ClosableTab"); }