2 types derived from Window
PresentationFramework (1)
System\Windows\Navigation\NavigationWindow.cs (1)
55public class NavigationWindow : Window, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
29public class RibbonWindow : Window
2 instantiations of Window
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11281bamlType.DefaultConstructor = delegate() { return new System.Windows.Window(); };
System\Windows\Markup\KnownTypes.cs (1)
1659case KnownElements.Window: o = new System.Windows.Window(); break;
237 references to Window
PresentationFramework (214)
Microsoft\Win32\CommonDialog.cs (2)
138public Nullable<bool> ShowDialog(Window owner) 318Window.CalculateCenterScreenPosition(hMonitor,
MS\Internal\AppModel\SecurityMgrSite.cs (1)
32Window curWindow = Application.Current.MainWindow;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
187System.Windows.Window parent,
System\Windows\Appearance\WindowBackdropManager.cs (1)
26internal static bool SetBackdrop(Window window, WindowBackdropType backdropType)
System\Windows\Application.cs (10)
217public int Run(Window window) 817public Window MainWindow 1613internal int RunInternal(Window window) 1668Window win = obj as Window; 2234Window w = root as Window; 2249if (!((Window)window).IsDisposed) 2251((Window)window).Show(); 2425private Window _mainWindow;
System\Windows\Automation\Peers\WindowAutomationPeer.cs (7)
27public WindowAutomationPeer(Window owner): base(owner) 43Window window = (Window)Owner; 76Window window = (Window)Owner; 100Window window = (Window)Owner;
System\Windows\Controls\Button.cs (1)
284MS.Internal.Commands.CommandHelpers.ExecuteCommand(Window.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2220Window wnd = null;
System\Windows\Controls\Image.cs (1)
411Image.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2521&& (Window.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
49Window.IWindowServiceProperty.OverrideMetadata( 661(Parent is Window) || 713if ((parent is Window) || (parent is Frame))
System\Windows\Controls\Primitives\Popup.cs (1)
807Window.AllowsTransparencyProperty.AddOwner(typeof(Popup),
System\Windows\Controls\Primitives\ResizeGrip.cs (5)
45Window.IWindowServiceProperty.OverrideMetadata( 74rg.OnWindowServiceChanged(e.OldValue as Window, e.NewValue as Window); 83private void OnWindowServiceChanged(Window oldWindow, Window newWindow)
System\windows\Documents\TextEditorDragDrop.cs (2)
647Window window = Window.GetWindow(_textEditor.TextView.RenderScope);
System\Windows\Interop\HwndHost.cs (1)
37HwndHost.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(HwndHost));
System\Windows\Interop\WindowInteropHelper.cs (2)
39public WindowInteropHelper(Window window) 131private Window _window;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
835case 739: t = () => typeof(Window); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6235Type type = typeof(System.Windows.Window); 6236DependencyProperty dp = System.Windows.Window.ContentProperty; 6238this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7077Type type = typeof(System.Windows.Window); 7078DependencyProperty dp = System.Windows.Window.ResizeModeProperty; 7080this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7094Type type = typeof(System.Windows.Window); 7095DependencyProperty dp = System.Windows.Window.WindowStateProperty; 7097this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7111Type type = typeof(System.Windows.Window); 7112DependencyProperty dp = System.Windows.Window.TitleProperty; 7114this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 8165Type type = typeof(System.Windows.Window); 8166DependencyProperty dp = System.Windows.Window.AllowsTransparencyProperty; 8168this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11279typeof(System.Windows.Window),
System\Windows\Markup\KnownTypes.cs (1)
6301case KnownElements.Window: t = typeof(System.Windows.Window); break;
System\Windows\MessageBox.cs (6)
247Window owner, 263Window owner, 279Window owner, 294Window owner, 307public static MessageBoxResult Show(Window owner, string messageBoxText, string caption) 317public static MessageBoxResult Show(Window owner, string messageBoxText)
System\Windows\Navigation\NavigationService.cs (5)
3829Window window = null; 3836if (host != null && (window = Window.GetWindow(host)) != null) 3838dobj.SetValue(Window.IWindowServiceProperty, window); 3861dobj.ClearValue(Window.IWindowServiceProperty); 3990bp is Window)
System\Windows\Shell\WindowChrome.cs (4)
73var window = (Window)d; 94public static WindowChrome GetWindowChrome(Window window) 102public static void SetWindowChrome(Window window, WindowChrome chrome)
System\Windows\Shell\WindowChromeWorker.cs (10)
39private Window _window; 135var w = (Window)d; 146private void _SetWindow(Window window) 163Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 164Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 205Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 206Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 225public static WindowChromeWorker GetWindowChromeWorker(Window window) 232public static void SetWindowChromeWorker(Window window, WindowChromeWorker chrome)
System\Windows\Standard\Utilities.cs (1)
33private static readonly Version _presentationFrameworkVersion = Assembly.GetAssembly(typeof(Window)).GetName().Version;
System\Windows\SystemCommands.cs (7)
31private static void _PostSystemCommand(Window window, SC command) 42public static void CloseWindow(Window window) 48public static void MaximizeWindow(Window window) 54public static void MinimizeWindow(Window window) 60public static void RestoreWindow(Window window) 68public static void ShowSystemMenu(Window window, Point screenLocation) 75internal static void ShowSystemMenuPhysicalCoordinates(Window window, Point physicalScreenLocation)
System\Windows\ThemeManager.cs (4)
55internal static void ApplySystemTheme(Window window, bool forceUpdate = false) 57ApplySystemTheme(new List<Window> { window }, forceUpdate); 111foreach(Window window in windows) 133private static bool SetImmersiveDarkMode(Window window, bool useDarkMode)
System\Windows\Window.cs (113)
60HeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged))); 61MinHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged))); 62MaxHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged))); 63WidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged))); 64MinWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged))); 65MaxWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged))); 73VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 75IsTabStopProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 76KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 77KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 78KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 79FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 81DefaultStyleKeyProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(typeof(Window))); 82_dType = DependencyObjectType.FromSystemTypeInternal(typeof(Window)); 84FlowDirectionProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged))); 87RenderTransformProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform))); 88ClipToBoundsProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds))); 95EventManager.RegisterClassHandler(typeof(Window), 99EventManager.RegisterClassHandler(typeof(Window), 104Window.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble, 105typeof (System.Windows.DpiChangedEventHandler), typeof (Window)); 540public static Window GetWindow(DependencyObject dependencyObject) 548return dependencyObject.GetValue(Window.IWindowServiceProperty) as Window; 567typeof(Window), 570(d, e) => ((Window)d).OnTaskbarItemInfoChanged(e), 725typeof(Window), 748if (!((Window) d).IsSourceWindowNull) 762DependencyProperty.Register("Title", typeof(String), typeof(Window), 798typeof(Window), 853typeof(Window), 901Canvas.TopProperty.AddOwner(typeof(Window), 952Canvas.LeftProperty.AddOwner(typeof(Window), 1090typeof(Window), 1127= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(Window), 1166public Window Owner 1355DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(Window), 1396if (!((Window)d).IsSourceWindowNull) 1399((Window)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value); 1411DependencyProperty.Register("WindowState", typeof(WindowState), typeof(Window), 1453DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(Window), 1496typeof(Window), 1530typeof(Window), 1588add { AddHandler(Window.DpiChangedEvent, value); } 1589remove { RemoveHandler(Window.DpiChangedEvent, value); } 1671/// this <see cref="Window"/> object is modified 1709RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi, Window.DpiChangedEvent, this)); 3028/// Gets or sets a value determining preferred backdrop type for current <see cref="Window"/>. 3042typeof(Window), 3049if (d is not Window window) 3234internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window)); 3437Window thisRef = (Window)arg; 3460CommandManager.RegisterClassCommandBinding(typeof(Window), binding); 3475Window w = target as Window; 3588SetResourceReference(StyleProperty, typeof(Window)); 4984Window w = (Window)d; 5010Window w = (Window)d; 5028Window w = (Window)d; 5088Window w = (Window)d; 5215Window w = (Window)d; 5235Window w = (Window)d; 5261Window w = (Window)d; 5285Window w = (Window)d; 5555Window w = d as Window; 5566Window w = d as Window; 5627Window w = d as Window; 5650Window w = d as Window; 5689Window w = d as Window; 5727Window w = d as Window; 5748Window w = d as Window; 5789Window w = d as Window; 5978Window w = d as Window; 6015Window w = d as Window; 6054Window w = d as Window; 6090Window w = d as Window; 6169Window w = d as Window; 6194((Window)d).VerifyApiSupported(); 6201Window w = d as Window; 6967Window window = sender as Window; 6978Window window = sender as Window; 7154private Window _ownerWindow; // owner window 7265= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(Window), 7590static internal HwndStyleManager StartManaging(Window w, int Style, int StyleEx ) 7603private HwndStyleManager(Window w, int Style, int StyleEx ) 7655private Window _window; 7666/// Initially, an HWND created in <see cref="Window"/> in a Per-Monitor Aware process may not
System\Windows\WindowCollection.cs (6)
55public Window this[int index] 59return _list[index] as Window; 101public void CopyTo(Window[] array, int index) 160internal void Remove(Window win) 176internal int Add (Window win) 184internal bool HasItem(Window win)
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\KeyTipService.cs (2)
1073_currentWindow = Window.GetWindow(scope); 1751private Window _currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
643private Window _window = null; 1186e.NewSource.RootVisual is Window) 1188rib._window = (Window)e.NewSource.RootVisual; 1193private void UnhookWindowListeners(Window win) 1207private void HookWindowListeners(Window win) 1443Window window = ((Ribbon)d)._window; 1584private static bool CheckIfWindowIsRibbonWindow(Window win)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
330RibbonWindow ribbonWindow = Window.GetWindow(this) as RibbonWindow; 382RibbonWindow ribbonWindow = Window.GetWindow(this) as RibbonWindow;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
58Window.TitleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnTitleChangedCallback)));
WindowsFormsIntegration (11)
System\Windows\Integration\ApplicationInterop.cs (8)
46public static void EnableModelessKeyboardInterop(SW.Window window) 202static ModelessWindowFilter FindFilter(SW.Window window) 231ModelessWindowFilter windowFilter = WindowFilterList.FindFilter(sender as SW.Window); 246private System.Windows.Window _window; 247public SW.Window Window 255public ModelessWindowFilter(System.Windows.Window window) 404SW.Window rootWindow = null; 407rootWindow = FindRootVisual(wfh) as SW.Window;
System\Windows\Integration\ElementHost.cs (1)
552public static void EnableModelessKeyboardInterop(SW.Window window)
System\Windows\Integration\WindowsFormsHost.cs (2)
1013Window presentationSourceWindow = presentationSource.RootVisual as Window;