71 references to WindowState
PresentationFramework (68)
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
7103bamlMember.TypeConverterType = typeof(System.Windows.WindowState);
System\Windows\Shell\WindowChromeWorker.cs (12)
54private WindowState _lastRoundingState; 55private WindowState _lastMenuState; 560WindowState? state = null; 563state = WindowState.Maximized; 632private WindowState _GetHwndState() 637case SW.SHOWMINIMIZED: return WindowState.Minimized; 638case SW.SHOWMAXIMIZED: return WindowState.Maximized; 640return WindowState.Normal; 663private void _UpdateSystemMenu(WindowState? assumeState) 668WindowState state = assumeState ?? _GetHwndState(); 686case WindowState.Maximized: 693case WindowState.Minimized:
System\Windows\Window.cs (55)
265if (WindowState == WindowState.Normal) 1483DependencyProperty.Register("WindowState", typeof(WindowState), typeof(Window), 1485WindowState.Normal, 1496public WindowState WindowState 1506return (WindowState) GetValue(WindowStateProperty); 2748if (WindowState != WindowState.Normal) 2765if (WindowState != WindowState.Normal) 2778if (WindowState != WindowState.Normal) 2791if (WindowState != WindowState.Normal) 2864if (WindowState == WindowState.Normal) 2947if (WindowState == WindowState.Normal) 3092if (WindowState == WindowState.Normal) 3111if (WindowState == WindowState.Normal) 3483if (WindowState == WindowState.Maximized) 3844if (Owner.WindowState == WindowState.Maximized || Owner.WindowState == WindowState.Minimized) 4028case WindowState.Normal: 4030case WindowState.Maximized: 4033case WindowState.Minimized: 4726if (_previousWindowState != WindowState.Maximized) 4732if (WindowState != WindowState.Maximized) 4745WindowState = WindowState.Maximized; 4753_previousWindowState = WindowState.Maximized; 4758if (_previousWindowState != WindowState.Minimized) 4760if (WindowState != WindowState.Minimized) 4773WindowState = WindowState.Minimized; 4775_previousWindowState = WindowState.Minimized; 4780if (_previousWindowState != WindowState.Normal) 4782if (WindowState != WindowState.Normal) 4784WindowState = WindowState.Normal; 4787_previousWindowState = WindowState.Normal; 4866if (WindowState == WindowState.Normal) 5201return IsValidWindowState((WindowState)value); 5209w.OnWindowStateChanged((WindowState) e.NewValue); 5212private void OnWindowStateChanged(WindowState windowState) 5236case WindowState.Normal: 5273case WindowState.Maximized: 5283case WindowState.Minimized: 5641case WindowState.Maximized: 5644case WindowState.Minimized: 5792if (WindowState == WindowState.Normal) 5830if (WindowState == WindowState.Normal) 5892if (WindowState == WindowState.Normal) 5929if (WindowState == WindowState.Normal) 6118if (w.WindowState != WindowState.Normal) 6151if (WindowState == WindowState.Normal) 6193if (w.WindowState != WindowState.Normal) 6246if (WindowState == WindowState.Normal) 6992if (!_inTrustedSubWindow && WindowState == WindowState.Maximized && !ShowActivated) 7019private static bool IsValidWindowState(WindowState value) 7021return value == WindowState.Maximized 7022|| value == WindowState.Minimized 7023|| value == WindowState.Normal; 7341private WindowState _previousWindowState = WindowState.Normal;
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (3)
174rw.WindowState != WindowState.Minimized) 198&& rw.WindowState != WindowState.Maximized) 222rw.WindowState != WindowState.Normal)