2 types derived from Window
PresentationFramework (1)
System\Windows\Navigation\NavigationWindow.cs (1)
39public class NavigationWindow : Window, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
24public class RibbonWindow : Window
4 instantiations of Window
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
168_wpfApp.MainWindow = new Window();
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12531DefaultConstructor = delegate () { return new System.Windows.Window(); },
System\Windows\Markup\KnownTypes.cs (1)
1652case KnownElements.Window: o = new System.Windows.Window(); break;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55var window = new Window
249 references to Window
PresentationFramework (225)
Microsoft\Win32\CommonDialog.cs (2)
135public Nullable<bool> ShowDialog(Window owner) 315Window.CalculateCenterScreenPosition(hMonitor,
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
172System.Windows.Window parent,
System\Windows\Appearance\WindowBackdropManager.cs (1)
25internal static bool SetBackdrop(Window window, WindowBackdropType backdropType)
System\Windows\Application.cs (9)
203public int Run(Window window) 784public Window MainWindow 1661internal int RunInternal(Window window) 1716Window win = obj as Window; 2250if (root is not Window wnd) 2263if (!((Window)window).IsDisposed) 2265((Window)window).Show(); 2439private Window _mainWindow;
System\Windows\Automation\Peers\WindowAutomationPeer.cs (7)
16public WindowAutomationPeer(Window owner): base(owner) 32Window window = (Window)Owner; 65Window window = (Window)Owner; 85Window window = (Window)Owner;
System\Windows\Controls\Button.cs (1)
275MS.Internal.Commands.CommandHelpers.ExecuteCommand(Window.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2216Window wnd = null;
System\Windows\Controls\Image.cs (1)
403Image.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2513&& (Window.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
37Window.IWindowServiceProperty.OverrideMetadata( 641(Parent is Window) || 693if ((parent is Window) || (parent is Frame))
System\Windows\Controls\Primitives\Popup.cs (1)
796Window.AllowsTransparencyProperty.AddOwner(typeof(Popup),
System\Windows\Controls\Primitives\ResizeGrip.cs (5)
38Window.IWindowServiceProperty.OverrideMetadata( 67rg.OnWindowServiceChanged(e.OldValue as Window, e.NewValue as Window); 76private void OnWindowServiceChanged(Window oldWindow, Window newWindow)
System\windows\Documents\TextEditorDragDrop.cs (2)
630Window window = Window.GetWindow(_textEditor.TextView.RenderScope);
System\Windows\FrameworkElement.cs (1)
714if(this is Window window)
System\Windows\Interop\HwndHost.cs (1)
28HwndHost.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(HwndHost));
System\Windows\Interop\WindowInteropHelper.cs (2)
33public WindowInteropHelper(Window window) 114private Window _window;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
833case 739: t = () => typeof(Window); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6685Type type = typeof(System.Windows.Window); 6686DependencyProperty dp = System.Windows.Window.ContentProperty; 6688this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7619Type type = typeof(System.Windows.Window); 7620DependencyProperty dp = System.Windows.Window.ResizeModeProperty; 7622this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7638Type type = typeof(System.Windows.Window); 7639DependencyProperty dp = System.Windows.Window.WindowStateProperty; 7641this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7657Type type = typeof(System.Windows.Window); 7658DependencyProperty dp = System.Windows.Window.TitleProperty; 7660this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 8831Type type = typeof(System.Windows.Window); 8832DependencyProperty dp = System.Windows.Window.AllowsTransparencyProperty; 8834this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12528typeof(System.Windows.Window),
System\Windows\Markup\KnownTypes.cs (1)
6287case KnownElements.Window: t = typeof(System.Windows.Window); break;
System\Windows\MessageBox.cs (6)
240Window owner, 256Window owner, 272Window owner, 287Window owner, 300public static MessageBoxResult Show(Window owner, string messageBoxText, string caption) 310public static MessageBoxResult Show(Window owner, string messageBoxText)
System\Windows\Navigation\NavigationService.cs (5)
3801Window window = null; 3808if (host != null && (window = Window.GetWindow(host)) != null) 3810dobj.SetValue(Window.IWindowServiceProperty, window); 3833dobj.ClearValue(Window.IWindowServiceProperty); 3962bp is Window)
System\Windows\Shell\WindowChrome.cs (4)
70var window = (Window)d; 91public static WindowChrome GetWindowChrome(Window window) 99public static void SetWindowChrome(Window window, WindowChrome chrome)
System\Windows\Shell\WindowChromeWorker.cs (10)
34private Window _window; 113var w = (Window)d; 124private void _SetWindow(Window window) 141Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 142Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 183Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 184Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 202public static WindowChromeWorker GetWindowChromeWorker(Window window) 209public static void SetWindowChromeWorker(Window window, WindowChromeWorker chrome)
System\Windows\SystemCommands.cs (7)
29private static void _PostSystemCommand(Window window, SC command) 40public static void CloseWindow(Window window) 46public static void MaximizeWindow(Window window) 52public static void MinimizeWindow(Window window) 58public static void RestoreWindow(Window window) 66public static void ShowSystemMenu(Window window, Point screenLocation) 73internal static void ShowSystemMenuPhysicalCoordinates(Window window, Point physicalScreenLocation)
System\Windows\ThemeManager.cs (12)
29foreach (Window window in Application.Current.Windows) 51foreach (Window window in FluentEnabledWindows) 87foreach (Window window in Application.Current.Windows) 104internal static void OnWindowThemeChanged(Window window, ThemeMode oldThemeMode, ThemeMode newThemeMode) 131internal static void SyncWindowThemeMode(Window window) 141internal static void ApplyStyleOnWindow(Window window) 220foreach (Window window in Application.Current.Windows) 229private static void RemoveFluentFromWindow(Window window) 245private static void ApplyFluentOnWindow(Window window) 260private static void RemoveStyleFromWindow(Window window) 280private static void ApplyStyleOnWindow(Window window, bool useLightColors) 288window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\ThemeMode.cs (5)
24/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="Window.ThemeMode"/> 28/// even if <see cref="Window.ThemeMode"/> is set to <see cref="None">, the Fluent theme will be applied on the window. 36/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>, 45/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>, 54/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>,
System\Windows\TreeWalkHelper.cs (1)
458if(fe is Window currentWindow)
System\Windows\Window.cs (112)
46HeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged))); 47MinHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged))); 48MaxHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged))); 49WidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged))); 50MinWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged))); 51MaxWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged))); 59VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 61IsTabStopProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 62KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 63KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 64KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 65FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 67DefaultStyleKeyProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(typeof(Window))); 68_dType = DependencyObjectType.FromSystemTypeInternal(typeof(Window)); 70FlowDirectionProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged))); 73RenderTransformProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform))); 74ClipToBoundsProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds))); 81EventManager.RegisterClassHandler(typeof(Window), 85EventManager.RegisterClassHandler(typeof(Window), 90Window.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble, 91typeof (System.Windows.DpiChangedEventHandler), typeof (Window)); 523public static Window GetWindow(DependencyObject dependencyObject) 531return dependencyObject.GetValue(Window.IWindowServiceProperty) as Window; 618typeof(Window), 621(d, e) => ((Window)d).OnTaskbarItemInfoChanged(e), 776typeof(Window), 799if (!((Window) d).IsSourceWindowNull) 813DependencyProperty.Register("Title", typeof(String), typeof(Window), 849typeof(Window), 904typeof(Window), 952Canvas.TopProperty.AddOwner(typeof(Window), 1003Canvas.LeftProperty.AddOwner(typeof(Window), 1141typeof(Window), 1178= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(Window), 1217public Window Owner 1406DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(Window), 1447if (!((Window)d).IsSourceWindowNull) 1450((Window)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value); 1462DependencyProperty.Register("WindowState", typeof(WindowState), typeof(Window), 1504DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(Window), 1547typeof(Window), 1581typeof(Window), 1639add { AddHandler(Window.DpiChangedEvent, value); } 1640remove { RemoveHandler(Window.DpiChangedEvent, value); } 1722/// this <see cref="Window"/> object is modified 1760RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi, Window.DpiChangedEvent, this)); 3126/// Gets or sets a value determining preferred backdrop type for current <see cref="Window"/>. 3140typeof(Window), 3147if (d is not Window window) 3345internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window)); 3550Window thisRef = (Window)arg; 3573CommandManager.RegisterClassCommandBinding(typeof(Window), binding); 3588Window w = target as Window; 5083Window w = (Window)d; 5109Window w = (Window)d; 5127Window w = (Window)d; 5187Window w = (Window)d; 5314Window w = (Window)d; 5334Window w = (Window)d; 5360Window w = (Window)d; 5384Window w = (Window)d; 5654Window w = d as Window; 5665Window w = d as Window; 5726Window w = d as Window; 5749Window w = d as Window; 5788Window w = d as Window; 5826Window w = d as Window; 5847Window w = d as Window; 5888Window w = d as Window; 6081Window w = d as Window; 6118Window w = d as Window; 6157Window w = d as Window; 6193Window w = d as Window; 6272Window w = d as Window; 6297((Window)d).VerifyApiSupported(); 6304Window w = d as Window; 7070Window window = sender as Window; 7081Window window = sender as Window; 7257private Window _ownerWindow; // owner window 7375= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(Window), 7702static internal HwndStyleManager StartManaging(Window w, int Style, int StyleEx ) 7715private HwndStyleManager(Window w, int Style, int StyleEx ) 7767private Window _window; 7778/// Initially, an HWND created in <see cref="Window"/> in a Per-Monitor Aware process may not
System\Windows\WindowCollection.cs (6)
54public Window this[int index] 58return _list[index] as Window; 100public void CopyTo(Window[] array, int index) 159internal void Remove(Window win) 175internal int Add (Window win) 183internal bool HasItem(Window win)
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55var window = new Window
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\KeyTipService.cs (2)
1073_currentWindow = Window.GetWindow(scope); 1753private Window _currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
640private Window _window = null; 1183e.NewSource.RootVisual is Window) 1185rib._window = (Window)e.NewSource.RootVisual; 1190private void UnhookWindowListeners(Window win) 1204private void HookWindowListeners(Window win) 1440Window window = ((Ribbon)d)._window; 1581private static bool CheckIfWindowIsRibbonWindow(Window win)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
328RibbonWindow ribbonWindow = Window.GetWindow(this) as RibbonWindow; 380RibbonWindow ribbonWindow = Window.GetWindow(this) as RibbonWindow;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
53Window.TitleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnTitleChangedCallback)));
WindowsFormsIntegration (11)
System\Windows\Integration\ApplicationInterop.cs (8)
44public static void EnableModelessKeyboardInterop(SW.Window window) 200static ModelessWindowFilter FindFilter(SW.Window window) 229ModelessWindowFilter windowFilter = WindowFilterList.FindFilter(sender as SW.Window); 244private System.Windows.Window _window; 245public SW.Window Window 253public ModelessWindowFilter(System.Windows.Window window) 402SW.Window rootWindow = null; 405rootWindow = FindRootVisual(wfh) as SW.Window;
System\Windows\Integration\ElementHost.cs (1)
548public static void EnableModelessKeyboardInterop(SW.Window window)
System\Windows\Integration\WindowsFormsHost.cs (2)
1008Window presentationSourceWindow = presentationSource.RootVisual as Window;