2 types derived from Window
PresentationFramework (1)
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
62public class NavigationWindow : Window, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
14internal class DialogWindow : Window
2 instantiations of Window
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11276bamlType.DefaultConstructor = delegate() { return new System.Windows.Window(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1659case KnownElements.Window: o = new System.Windows.Window(); break;
220 references to Window
PresentationFramework (201)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
167public Nullable<bool> ShowDialog(Window owner) 359Window.CalculateCenterScreenPosition( hMonitor,
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
1080private static string GetPrintJobDescription(Window window)
src\Framework\MS\Internal\AppModel\SecurityMgrSite.cs (1)
45Window curWindow = Application.Current.MainWindow;
src\Framework\System\Windows\Application.cs (10)
251public int Run(Window window) 924public Window MainWindow 1775internal int RunInternal(Window window) 1831Window win = obj as Window; 2534Window w = root as Window; 2549if (!((Window)window).IsDisposed) 2551((Window)window).Show(); 2791private Window _mainWindow;
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (5)
25public WindowAutomationPeer(Window owner): base(owner) 46Window window = (Window)Owner; 79Window window = (Window)Owner;
src\Framework\System\Windows\Controls\Button.cs (1)
281MS.Internal.Commands.CommandHelpers.ExecuteCommand(Window.DialogCancelCommand, null, this);
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2275Window wnd = null;
src\Framework\System\Windows\Controls\Image.cs (1)
416Image.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(Image));
src\Framework\System\Windows\Controls\Page.cs (3)
56Window.IWindowServiceProperty.OverrideMetadata( 669(Parent is Window) || 722if ((parent is Window) || (parent is Frame))
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
805Window.AllowsTransparencyProperty.AddOwner(typeof(Popup),
src\Framework\System\Windows\Controls\Primitives\ResizeGrip.cs (5)
52Window.IWindowServiceProperty.OverrideMetadata( 81rg.OnWindowServiceChanged(e.OldValue as Window, e.NewValue as Window); 90private void OnWindowServiceChanged(Window oldWindow, Window newWindow)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
659Window window = Window.GetWindow(_textEditor.TextView.RenderScope);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
40HwndHost.DpiChangedEvent = Window.DpiChangedEvent.AddOwner(typeof(HwndHost));
src\Framework\System\Windows\Interop\WindowInteropHelper.cs (2)
44public WindowInteropHelper(Window window) 161private Window _window;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
831case 739: t = () => typeof(Window); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6193Type type = typeof(System.Windows.Window); 6194DependencyProperty dp = System.Windows.Window.ContentProperty; 6196this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7035Type type = typeof(System.Windows.Window); 7036DependencyProperty dp = System.Windows.Window.ResizeModeProperty; 7038this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7052Type type = typeof(System.Windows.Window); 7053DependencyProperty dp = System.Windows.Window.WindowStateProperty; 7055this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 7069Type type = typeof(System.Windows.Window); 7070DependencyProperty dp = System.Windows.Window.TitleProperty; 7072this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType 8123Type type = typeof(System.Windows.Window); 8124DependencyProperty dp = System.Windows.Window.AllowsTransparencyProperty; 8126this.GetXamlType(typeof(System.Windows.Window)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11274typeof(System.Windows.Window),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6283case KnownElements.Window: t = typeof(System.Windows.Window); break;
src\Framework\System\Windows\MessageBox.cs (6)
323Window owner, 344Window owner, 365Window owner, 385Window owner, 403public static MessageBoxResult Show(Window owner, string messageBoxText, string caption) 418public static MessageBoxResult Show(Window owner, string messageBoxText)
src\Framework\System\Windows\Navigation\NavigationService.cs (5)
4103Window window = null; 4110if (host != null && (window = Window.GetWindow(host)) != null) 4112dobj.SetValue(Window.IWindowServiceProperty, window); 4135dobj.ClearValue(Window.IWindowServiceProperty); 4264bp is Window)
src\Framework\System\Windows\Shell\WindowChrome.cs (4)
71var window = (Window)d; 92public static WindowChrome GetWindowChrome(Window window) 100public static void SetWindowChrome(Window window, WindowChrome chrome)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (10)
38private Window _window; 170var w = (Window)d; 185private void _SetWindow(Window window) 202Utility.AddDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 203Utility.AddDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 254Utility.RemoveDependencyPropertyChangeListener(_window, Window.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 255Utility.RemoveDependencyPropertyChangeListener(_window, Window.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup); 280public static WindowChromeWorker GetWindowChromeWorker(Window window) 287public static void SetWindowChromeWorker(Window window, WindowChromeWorker chrome)
src\Framework\System\Windows\Standard\Utilities.cs (1)
30private static readonly Version _presentationFrameworkVersion = Assembly.GetAssembly(typeof(Window)).GetName().Version;
src\Framework\System\Windows\SystemCommands.cs (7)
32private static void _PostSystemCommand(Window window, SC command) 49public static void CloseWindow(Window window) 61public static void MaximizeWindow(Window window) 73public static void MinimizeWindow(Window window) 85public static void RestoreWindow(Window window) 99public static void ShowSystemMenu(Window window, Point screenLocation) 110internal static void ShowSystemMenuPhysicalCoordinates(Window window, Point physicalScreenLocation)
src\Framework\System\Windows\Window.cs (107)
74HeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged))); 75MinHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged))); 76MaxHeightProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged))); 77WidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged))); 78MinWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged))); 79MaxWidthProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged))); 87VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 89IsTabStopProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); 90KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 91KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 92KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 93FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 95DefaultStyleKeyProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(typeof(Window))); 96_dType = DependencyObjectType.FromSystemTypeInternal(typeof(Window)); 98FlowDirectionProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged))); 101RenderTransformProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform))); 102ClipToBoundsProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds))); 109EventManager.RegisterClassHandler(typeof(Window), 113EventManager.RegisterClassHandler(typeof(Window), 118Window.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble, 119typeof (System.Windows.DpiChangedEventHandler), typeof (Window)); 604public static Window GetWindow(DependencyObject dependencyObject) 615return dependencyObject.GetValue(Window.IWindowServiceProperty) as Window; 634typeof(Window), 637(d, e) => ((Window)d).OnTaskbarItemInfoChanged(e), 808typeof(Window), 831if (!((Window) d).IsSourceWindowNull) 845DependencyProperty.Register("Title", typeof(String), typeof(Window), 881typeof(Window), 943typeof(Window), 991Canvas.TopProperty.AddOwner(typeof(Window), 1042Canvas.LeftProperty.AddOwner(typeof(Window), 1191typeof(Window), 1228= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(Window), 1271public Window Owner 1463DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(Window), 1504if (!((Window)d).IsSourceWindowNull) 1507((Window)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value); 1519DependencyProperty.Register("WindowState", typeof(WindowState), typeof(Window), 1561DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(Window), 1604typeof(Window), 1638typeof(Window), 1696add { AddHandler(Window.DpiChangedEvent, value); } 1697remove { RemoveHandler(Window.DpiChangedEvent, value); } 1779/// this <see cref="Window"/> object is modified 1817RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi, Window.DpiChangedEvent, this)); 3417internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(Window)); 3642CommandManager.RegisterClassCommandBinding(typeof(Window), binding); 3657Window w = target as Window; 5257Window w = (Window)d; 5283Window w = (Window)d; 5301Window w = (Window)d; 5372Window w = (Window)d; 5509Window w = (Window)d; 5540Window w = (Window)d; 5574Window w = (Window)d; 5598Window w = (Window)d; 5905Window w = d as Window; 5916Window w = d as Window; 5977Window w = d as Window; 6004Window w = d as Window; 6043Window w = d as Window; 6081Window w = d as Window; 6102Window w = d as Window; 6143Window w = d as Window; 6348Window w = d as Window; 6385Window w = d as Window; 6424Window w = d as Window; 6460Window w = d as Window; 6545Window w = d as Window; 6570((Window)d).VerifyApiSupported(); 6577Window w = d as Window; 7409Window window = sender as Window; 7420Window window = sender as Window; 7608private Window _ownerWindow; // owner window 7768= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(Window), 8237static internal HwndStyleManager StartManaging(Window w, int Style, int StyleEx ) 8250private HwndStyleManager(Window w, int Style, int StyleEx ) 8302private Window _window; 8313/// Initially, an HWND created in <see cref="Window"/> in a Per-Monitor Aware process may not
src\Framework\System\Windows\WindowCollection.cs (6)
60public Window this[int index] 64return _list[index] as Window; 106public void CopyTo(Window[] array, int index) 165internal void Remove(Window win) 181internal int Add (Window win) 189internal bool HasItem(Window win)
src\Shared\MS\Internal\SecurityHelper.cs (1)
1176System.Windows.Window parent,
System.Activities.Presentation (19)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
62EventManager.RegisterClassHandler(typeof(Window), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandleGotKeyboardFocusEvent), true); 65EventManager.RegisterClassHandler(typeof(Window), Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandlePreviewGotKeyboardFocus), true);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
214if (selectedVisual != null && !typeof(Window).IsAssignableFrom(_displayedSelection.PrimarySelection.View.GetType()))
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (3)
155var parentWindow = VisualTreeUtils.FindVisualAncestor<Window>(this); 171((Window)s).DialogResult = false;
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (4)
40public bool TrySetWindowOwner(DependencyObject source, Window target) 49Window owner = Window.GetWindow(source); 140internal static void TrySetWindowOwner(DependencyObject owner, EditingContext editingContext, Window wnd)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
738void SetWindowOwner(Window wnd)
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (5)
14public static void ShowContextHelpButton(this Window window) 29public static void HideMinMaxButton(this Window window) 50public static void AddWindowsHook(this Window window, HwndSourceHook wmHandler) 57public static void RemoveWindowsHook(this Window window, HwndSourceHook wmHandler) 64public static void HideIcon(this Window window)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (2)
200Window ownerWindow = Window.GetWindow(this.view);
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
144wnd.Closed += (s, e) => { this.OnWorkflowElementDialogClosed(((Window)s).DialogResult); };