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
4 instantiations of Window
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
168_wpfApp.MainWindow = new Window();
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11280bamlType.DefaultConstructor = delegate() { return new System.Windows.Window(); };
System\Windows\Markup\KnownTypes.cs (1)
1658case KnownElements.Window: o = new System.Windows.Window(); break;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55var window = new Window
251 references to Window
PresentationFramework (227)
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)
177System.Windows.Window parent,
System\Windows\Appearance\WindowBackdropManager.cs (1)
26internal static bool SetBackdrop(Window window, WindowBackdropType backdropType)
System\Windows\Application.cs (10)
220public int Run(Window window) 820public Window MainWindow 1694internal int RunInternal(Window window) 1749Window win = obj as Window; 2328Window w = root as Window; 2343if (!((Window)window).IsDisposed) 2345((Window)window).Show(); 2519private 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\FrameworkElement.cs (1)
732if(this is Window window)
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)
11278typeof(System.Windows.Window),
System\Windows\Markup\KnownTypes.cs (1)
6293case 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; 118var w = (Window)d; 129private void _SetWindow(Window window) 146Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 147Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 188Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 189Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 207public static WindowChromeWorker GetWindowChromeWorker(Window window) 214public static void SetWindowChromeWorker(Window window, WindowChromeWorker chrome)
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 (12)
38foreach (Window window in Application.Current.Windows) 60foreach (Window window in FluentEnabledWindows) 96foreach (Window window in Application.Current.Windows) 113internal static void OnWindowThemeChanged(Window window, ThemeMode oldThemeMode, ThemeMode newThemeMode) 140internal static void SyncWindowThemeMode(Window window) 150internal static void ApplyStyleOnWindow(Window window) 229foreach (Window window in Application.Current.Windows) 238private static void RemoveFluentFromWindow(Window window) 254private static void ApplyFluentOnWindow(Window window) 269private static void RemoveStyleFromWindow(Window window) 289private static void ApplyStyleOnWindow(Window window, bool useLightColors) 297window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\ThemeMode.cs (5)
36/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="Window.ThemeMode"/> 40/// even if <see cref="Window.ThemeMode"/> is set to <see cref="None">, the Fluent theme will be applied on the window. 48/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>, 57/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>, 66/// Whenever this mode is set on <see cref="Application"/> or <see cref="Window"/>,
System\Windows\TreeWalkHelper.cs (1)
462if(fe is Window currentWindow)
System\Windows\Window.cs (112)
64HeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged))); 65MinHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged))); 66MaxHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged))); 67WidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged))); 68MinWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged))); 69MaxWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged))); 77VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 79IsTabStopProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 80KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 81KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 82KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 83FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 85DefaultStyleKeyProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(typeof(Window))); 86_dType = DependencyObjectType.FromSystemTypeInternal(typeof(Window)); 88FlowDirectionProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged))); 91RenderTransformProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform))); 92ClipToBoundsProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds))); 99EventManager.RegisterClassHandler(typeof(Window), 103EventManager.RegisterClassHandler(typeof(Window), 108Window.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble, 109typeof (System.Windows.DpiChangedEventHandler), typeof (Window)); 544public static Window GetWindow(DependencyObject dependencyObject) 552return dependencyObject.GetValue(Window.IWindowServiceProperty) as Window; 639typeof(Window), 642(d, e) => ((Window)d).OnTaskbarItemInfoChanged(e), 797typeof(Window), 820if (!((Window) d).IsSourceWindowNull) 834DependencyProperty.Register("Title", typeof(String), typeof(Window), 870typeof(Window), 925typeof(Window), 973Canvas.TopProperty.AddOwner(typeof(Window), 1024Canvas.LeftProperty.AddOwner(typeof(Window), 1162typeof(Window), 1199= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(Window), 1238public Window Owner 1427DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(Window), 1468if (!((Window)d).IsSourceWindowNull) 1471((Window)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value); 1483DependencyProperty.Register("WindowState", typeof(WindowState), typeof(Window), 1525DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(Window), 1568typeof(Window), 1602typeof(Window), 1660add { AddHandler(Window.DpiChangedEvent, value); } 1661remove { RemoveHandler(Window.DpiChangedEvent, value); } 1743/// this <see cref="Window"/> object is modified 1781RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi, Window.DpiChangedEvent, this)); 3146/// Gets or sets a value determining preferred backdrop type for current <see cref="Window"/>. 3160typeof(Window), 3167if (d is not Window window) 3365internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window)); 3568Window thisRef = (Window)arg; 3591CommandManager.RegisterClassCommandBinding(typeof(Window), binding); 3606Window w = target as Window; 5102Window w = (Window)d; 5128Window w = (Window)d; 5146Window w = (Window)d; 5206Window w = (Window)d; 5333Window w = (Window)d; 5353Window w = (Window)d; 5379Window w = (Window)d; 5403Window w = (Window)d; 5673Window w = d as Window; 5684Window w = d as Window; 5745Window w = d as Window; 5768Window w = d as Window; 5807Window w = d as Window; 5845Window w = d as Window; 5866Window w = d as Window; 5907Window w = d as Window; 6096Window w = d as Window; 6133Window w = d as Window; 6172Window w = d as Window; 6208Window w = d as Window; 6287Window w = d as Window; 6312((Window)d).VerifyApiSupported(); 6319Window w = d as Window; 7085Window window = sender as Window; 7096Window window = sender as Window; 7272private Window _ownerWindow; // owner window 7390= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(Window), 7715static internal HwndStyleManager StartManaging(Window w, int Style, int StyleEx ) 7728private HwndStyleManager(Window w, int Style, int StyleEx ) 7780private Window _window; 7791/// 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)
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); 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;