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)
115public bool? ShowDialog(Window owner) 287Window.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 1652internal int RunInternal(Window window) 1707Window win = obj as Window; 2241if (root is not Window wnd) 2254if (!((Window)window).IsDisposed) 2256((Window)window).Show(); 2430private 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)
274MS.Internal.Commands.CommandHelpers.ExecuteCommand(Window.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2159Window wnd = null;
System\Windows\Controls\Image.cs (1)
403Image.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2506&& (Window.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
37Window.IWindowServiceProperty.OverrideMetadata( 638(Parent is Window) || 690if ((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)
711if (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)
3759Window window = null; 3766if (host != null && (window = Window.GetWindow(host)) != null) 3768dobj.SetValue(Window.IWindowServiceProperty, window); 3791dobj.ClearValue(Window.IWindowServiceProperty); 3920bp 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 1400DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(Window), 1441if (!((Window)d).IsSourceWindowNull) 1444((Window)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value); 1456DependencyProperty.Register("WindowState", typeof(WindowState), typeof(Window), 1498DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(Window), 1541typeof(Window), 1575typeof(Window), 1633add { AddHandler(Window.DpiChangedEvent, value); } 1634remove { RemoveHandler(Window.DpiChangedEvent, value); } 1716/// this <see cref="Window"/> object is modified 1754RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi, Window.DpiChangedEvent, this)); 3119/// Gets or sets a value determining preferred backdrop type for current <see cref="Window"/>. 3133typeof(Window), 3140if (d is not Window window) 3338internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window)); 3540Window thisRef = (Window)arg; 3563CommandManager.RegisterClassCommandBinding(typeof(Window), binding); 3578Window w = target as Window; 5067Window w = (Window)d; 5093Window w = (Window)d; 5111Window w = (Window)d; 5171Window w = (Window)d; 5298Window w = (Window)d; 5318Window w = (Window)d; 5344Window w = (Window)d; 5368Window w = (Window)d; 5638Window w = d as Window; 5649Window w = d as Window; 5710Window w = d as Window; 5733Window w = d as Window; 5772Window w = d as Window; 5810Window w = d as Window; 5831Window w = d as Window; 5872Window w = d as Window; 6065Window w = d as Window; 6102Window w = d as Window; 6141Window w = d as Window; 6177Window w = d as Window; 6256Window w = d as Window; 6281((Window)d).VerifyApiSupported(); 6288Window w = d as Window; 7051Window window = sender as Window; 7059Window window = sender as Window; 7229private Window _ownerWindow; // owner window 7347= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(Window), 7671static internal HwndStyleManager StartManaging(Window w, int Style, int StyleEx ) 7684private HwndStyleManager(Window w, int Style, int StyleEx ) 7736private Window _window; 7747/// 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)
1070_currentWindow = Window.GetWindow(scope); 1735private Window _currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
640private Window _window = null; 1174e.NewSource.RootVisual is Window) 1176rib._window = (Window)e.NewSource.RootVisual; 1181private void UnhookWindowListeners(Window win) 1195private void HookWindowListeners(Window win) 1425Window window = ((Ribbon)d)._window; 1560private 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)
545public static void EnableModelessKeyboardInterop(SW.Window window)
System\Windows\Integration\WindowsFormsHost.cs (2)
990Window presentationSourceWindow = presentationSource.RootVisual as Window;