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)
78Assert.IsNotNull(_window); 119Assert.IsNull(cw._window); 126Assert.IsNull(_window); 137_hwnd = new WindowInteropHelper(_window).Handle; 141Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 142Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 144_window.Closed += _UnsetWindow; 153_window.ApplyTemplate(); 162_window.SourceInitialized += _WindowSourceInitialized; 168_hwnd = new WindowInteropHelper(_window).Handle; 181if (_window != null) 183Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 184Utility.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"/> 265if (sender == _window) 269_window.VisualChildrenChanged -= RetryFixupTemplateIssuesOnVisualChildrenAdded; 276_window.Dispatcher.BeginInvoke(DispatcherPriority.Render, (_Action)_FixupTemplateIssues); 283Assert.IsNotNull(_window); 285if (_window.Template == null) 292if (VisualTreeHelper.GetChildrenCount(_window) == 0) 296_window.VisualChildrenChanged += RetryFixupTemplateIssuesOnVisualChildrenAdded; 302FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 408DpiScale dpi = _window.GetDpi(); 454bool compliment = _window.FlowDirection == FlowDirection.RightToLeft; 480DpiScale dpi = _window.GetDpi(); 493IInputElement inputElement = _window.InputHitTest(mousePosWindow); 541SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam))); 799else if (null != wp && (_lastRoundingState == _window.WindowState)) 808_lastRoundingState = _window.WindowState; 813DpiScale dpi = _window.GetDpi(); 935Assert.IsNotNull(_window); 957DpiScale dpi = _window.GetDpi(); 1073if (_window == null || _chromeInfo == null) 1076DpiScale dpi = _window.GetDpi(); 1113_window.InvalidateMeasure(); 1120Assert.IsNotNull(_window); 1131FrameworkElement rootElement = (FrameworkElement)VisualTreeHelper.GetChild(_window, 0); 1140Assert.IsNotNull(_window);