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