1 write to _window
PresentationFramework (1)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
192
_window
= window;
61 references to _window
PresentationFramework (61)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (61)
123
Assert.IsNotNull(
_window
);
176
Assert.IsNull(cw.
_window
);
187
Assert.IsNull(
_window
);
198
_hwnd = new WindowInteropHelper(
_window
).Handle;
202
Utility.AddDependencyPropertyChangeListener(
_window
, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
203
Utility.AddDependencyPropertyChangeListener(
_window
, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
205
_window
.Closed += _UnsetWindow;
214
_window
.ApplyTemplate();
223
_window
.SourceInitialized += _WindowSourceInitialized;
235
_hwnd = new WindowInteropHelper(
_window
).Handle;
252
if (
_window
!= null)
254
Utility.RemoveDependencyPropertyChangeListener(
_window
, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
255
Utility.RemoveDependencyPropertyChangeListener(
_window
, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
256
_window
.SourceInitialized -= _WindowSourceInitialized;
257
_window
.StateChanged -= _FixupRestoreBounds;
311
_window
.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, (_Action)_FixupTemplateIssues);
342
_UpdateSystemMenu(
_window
.WindowState);
349
/// If visual children have been added to <see cref="
_window
"/>, then repost <see cref="_FixupTemplateIssues"/>
359
if (sender ==
_window
)
363
_window
.VisualChildrenChanged -= RetryFixupTemplateIssuesOnVisualChildrenAdded;
370
_window
.Dispatcher.BeginInvoke(DispatcherPriority.Render, (_Action)_FixupTemplateIssues);
381
Assert.IsNotNull(
_window
);
383
if (
_window
.Template == null)
390
if (VisualTreeHelper.GetChildrenCount(
_window
) == 0)
394
_window
.VisualChildrenChanged += RetryFixupTemplateIssuesOnVisualChildrenAdded;
401
var rootElement = (FrameworkElement)VisualTreeHelper.GetChild(
_window
, 0);
441
DpiScale dpi =
_window
.GetDpi();
496
if (
_window
.FlowDirection == FlowDirection.RightToLeft)
521
_window
.StateChanged += _FixupRestoreBounds;
537
if (
_window
.WindowState == WindowState.Maximized ||
_window
.WindowState == WindowState.Minimized)
544
DpiScale dpi =
_window
.GetDpi();
556
_window
.Top = adjustedTopLeft.Y;
557
_window
.Left = adjustedTopLeft.X;
594
if (
_window
.WindowState != WindowState.Normal)
599
DpiScale dpi =
_window
.GetDpi();
602
Point windowTopLeft = new Point(
_window
.Left,
_window
.Top);
605
return
_window
.RestoreBounds.Location != windowTopLeft;
690
DpiScale dpi =
_window
.GetDpi();
736
bool compliment =
_window
.FlowDirection == FlowDirection.RightToLeft;
766
DpiScale dpi =
_window
.GetDpi();
779
IInputElement inputElement =
_window
.InputHitTest(mousePosWindow);
831
SystemCommands.ShowSystemMenuPhysicalCoordinates(
_window
, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)));
935
Assert.Implies(
_window
.WindowState == WindowState.Maximized, Utility.IsOSWindows7OrNewer);
936
if (
_window
.WindowState != WindowState.Maximized)
942
_windowPosAtStartOfUserMove = new Point(
_window
.Left,
_window
.Top);
962
if (
_window
.WindowState == WindowState.Maximized)
965
_window
.Top = _windowPosAtStartOfUserMove.Y;
966
_window
.Left = _windowPosAtStartOfUserMove.X;
1210
else if (null != wp && (_lastRoundingState ==
_window
.WindowState))
1219
_lastRoundingState =
_window
.WindowState;
1224
DpiScale dpi =
_window
.GetDpi();
1358
Assert.IsNotNull(
_window
);
1380
DpiScale dpi =
_window
.GetDpi();
1507
_window
.InvalidateMeasure();
1518
Assert.IsNotNull(
_window
);
1533
var rootElement = (FrameworkElement)VisualTreeHelper.GetChild(
_window
, 0);
1543
_window
.StateChanged -= _FixupRestoreBounds;
1555
Assert.IsNotNull(
_window
);