public MainWindow() { InitializeComponent(); mdiContainer.Children.CollectionChanged += mdiContainer_ChildrenChanged; EventWindowDrag = new Assets.Scripts.WindowsDragger(this, TitleMain); EventWindowResize = new Assets.Scripts.WindowsResizer(this, resizer); EventTitleMainDoubleClick = new Assets.Scripts.EventDoubleClick(this, TitleMain, TitleMainDoubleClick); EventPanelFunctionClickOut = new Assets.Scripts.EventClickOut(this, DockChucNang, PanelFunctionClickOut); EventPanelFunctionClickOut.Without.Add(_menuFull); EventPanelFunctionClickOut.Without.Add(_menuMini); EventPanelFunctionClickOut.Without.Add(TitleMain); MaxHeight = Assets.Scripts.WpfScreen.GetScreenFrom(this).WorkingArea.Height; DataContext = Managers.Manager.Current; }
/* * Sự kiện double click vào title */ private void TitleMainDoubleClick(Assets.Scripts.EventDoubleClick sender) { MinimizeAndMaximize(); }