예제 #1
0
            /// <summary>
            /// 窗体大小发生改变时的事件处理
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            public void Window_SizeChanged(object sender, SizeChangedEventArgs e)
            {
                wndMain wnd = (wndMain)sender;

                wnd.UpdateLayout();
                if (wnd.Opacity == 0 && wnd.WindowState == WindowState.Normal)
                {
                    wnd.WindowState = WindowState.Minimized;
                }
                if (wnd.IsInformationsInitialized)
                {
                    AppInfoOperations.SetWidth(wnd.ActualWidth);
                    AppInfoOperations.SetHeight(wnd.ActualHeight);
                }
            }