1 write to _window
PresentationFramework (1)
System\Windows\Shell\WindowChromeWorker.cs (1)
131
_window
= window;
41 references to _window
PresentationFramework (41)
System\Windows\Shell\WindowChromeWorker.cs (41)
78
Assert.IsNotNull(
_window
);
119
Assert.IsNull(cw.
_window
);
126
Assert.IsNull(
_window
);
137
_hwnd = new WindowInteropHelper(
_window
).Handle;
141
Utility.AddDependencyPropertyChangeListener(
_window
, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
142
Utility.AddDependencyPropertyChangeListener(
_window
, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
144
_window
.Closed += _UnsetWindow;
153
_window
.ApplyTemplate();
162
_window
.SourceInitialized += _WindowSourceInitialized;
168
_hwnd = new WindowInteropHelper(
_window
).Handle;
181
if (
_window
!= null)
183
Utility.RemoveDependencyPropertyChangeListener(
_window
, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
184
Utility.RemoveDependencyPropertyChangeListener(
_window
, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
185
_window
.SourceInitialized -= _WindowSourceInitialized;
227
_window
.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, (_Action)_FixupTemplateIssues);
254
_UpdateSystemMenu(
_window
.WindowState);
261
/// If visual children have been added to <see cref="
_window
"/>, then repost <see cref="_FixupTemplateIssues"/>
265
if (sender ==
_window
)
269
_window
.VisualChildrenChanged -= RetryFixupTemplateIssuesOnVisualChildrenAdded;
276
_window
.Dispatcher.BeginInvoke(DispatcherPriority.Render, (_Action)_FixupTemplateIssues);
283
Assert.IsNotNull(
_window
);
285
if (
_window
.Template == null)
292
if (VisualTreeHelper.GetChildrenCount(
_window
) == 0)
296
_window
.VisualChildrenChanged += RetryFixupTemplateIssuesOnVisualChildrenAdded;
302
FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(
_window
, 0);
408
DpiScale dpi =
_window
.GetDpi();
454
bool compliment =
_window
.FlowDirection == FlowDirection.RightToLeft;
480
DpiScale dpi =
_window
.GetDpi();
493
IInputElement inputElement =
_window
.InputHitTest(mousePosWindow);
541
SystemCommands.ShowSystemMenuPhysicalCoordinates(
_window
, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)));
799
else if (null != wp && (_lastRoundingState ==
_window
.WindowState))
808
_lastRoundingState =
_window
.WindowState;
813
DpiScale dpi =
_window
.GetDpi();
935
Assert.IsNotNull(
_window
);
957
DpiScale dpi =
_window
.GetDpi();
1073
if (
_window
== null || _chromeInfo == null)
1076
DpiScale dpi =
_window
.GetDpi();
1113
_window
.InvalidateMeasure();
1120
Assert.IsNotNull(
_window
);
1131
FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(
_window
, 0);
1140
Assert.IsNotNull(
_window
);