74 references to WindowState
PresentationFramework (74)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
7061
bamlMember.TypeConverterType = typeof(System.Windows.
WindowState
);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (18)
67
private
WindowState
_lastRoundingState;
68
private
WindowState
_lastMenuState;
537
if (_window.WindowState ==
WindowState
.Maximized || _window.WindowState ==
WindowState
.Minimized)
594
if (_window.WindowState !=
WindowState
.Normal)
849
WindowState
? state = null;
852
state =
WindowState
.Maximized;
935
Assert.Implies(_window.WindowState ==
WindowState
.Maximized, Utility.IsOSWindows7OrNewer);
936
if (_window.WindowState !=
WindowState
.Maximized)
962
if (_window.WindowState ==
WindowState
.Maximized)
1018
private
WindowState
_GetHwndState()
1023
case SW.SHOWMINIMIZED: return
WindowState
.Minimized;
1024
case SW.SHOWMAXIMIZED: return
WindowState
.Maximized;
1026
return
WindowState
.Normal;
1057
private void _UpdateSystemMenu(
WindowState
? assumeState)
1062
WindowState
state = assumeState ?? _GetHwndState();
1080
case
WindowState
.Maximized:
1087
case
WindowState
.Minimized:
src\Framework\System\Windows\Window.cs (55)
304
if (WindowState ==
WindowState
.Normal)
1519
DependencyProperty.Register("WindowState", typeof(
WindowState
), typeof(Window),
1521
WindowState
.Normal,
1532
public
WindowState
WindowState
1542
return (
WindowState
) GetValue(WindowStateProperty);
2793
if (WindowState !=
WindowState
.Normal)
2810
if (WindowState !=
WindowState
.Normal)
2823
if (WindowState !=
WindowState
.Normal)
2836
if (WindowState !=
WindowState
.Normal)
2909
if (WindowState ==
WindowState
.Normal)
3002
if (WindowState ==
WindowState
.Normal)
3160
if (WindowState ==
WindowState
.Normal)
3179
if (WindowState ==
WindowState
.Normal)
3535
if (WindowState ==
WindowState
.Maximized)
3916
if (Owner.WindowState ==
WindowState
.Maximized || Owner.WindowState ==
WindowState
.Minimized)
4126
case
WindowState
.Normal:
4128
case
WindowState
.Maximized:
4131
case
WindowState
.Minimized:
4872
if (_previousWindowState !=
WindowState
.Maximized)
4878
if (WindowState !=
WindowState
.Maximized)
4891
WindowState =
WindowState
.Maximized;
4899
_previousWindowState =
WindowState
.Maximized;
4904
if (_previousWindowState !=
WindowState
.Minimized)
4906
if (WindowState !=
WindowState
.Minimized)
4919
WindowState =
WindowState
.Minimized;
4921
_previousWindowState =
WindowState
.Minimized;
4926
if (_previousWindowState !=
WindowState
.Normal)
4928
if (WindowState !=
WindowState
.Normal)
4930
WindowState =
WindowState
.Normal;
4933
_previousWindowState =
WindowState
.Normal;
5022
if (WindowState ==
WindowState
.Normal)
5367
return IsValidWindowState((
WindowState
)value);
5375
w.OnWindowStateChanged((
WindowState
) e.NewValue);
5383
private void OnWindowStateChanged(
WindowState
windowState)
5410
case
WindowState
.Normal:
5447
case
WindowState
.Maximized:
5457
case
WindowState
.Minimized:
5860
case
WindowState
.Maximized:
5863
case
WindowState
.Minimized:
6028
if (WindowState ==
WindowState
.Normal)
6066
if (WindowState ==
WindowState
.Normal)
6128
if (WindowState ==
WindowState
.Normal)
6165
if (WindowState ==
WindowState
.Normal)
6370
if (w.WindowState !=
WindowState
.Normal)
6403
if (WindowState ==
WindowState
.Normal)
6445
if (w.WindowState !=
WindowState
.Normal)
6498
if (WindowState ==
WindowState
.Normal)
7316
if (!_inTrustedSubWindow && WindowState ==
WindowState
.Maximized && !ShowActivated)
7343
private static bool IsValidWindowState(
WindowState
value)
7345
return value ==
WindowState
.Maximized
7346
|| value ==
WindowState
.Minimized
7347
|| value ==
WindowState
.Normal;
7699
private
WindowState
_previousWindowState =
WindowState
.Normal;