2 types derived from Window
PresentationFramework (1)
System\Windows\Navigation\NavigationWindow.cs (1)
38
public class NavigationWindow :
Window
, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
23
public class RibbonWindow :
Window
9 instantiations of Window
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
167
_wpfApp.MainWindow = new
Window
();
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12530
DefaultConstructor = delegate () { return new System.Windows.
Window
(); },
System\Windows\Markup\KnownTypes.cs (1)
1651
case KnownElements.Window: o = new System.Windows.
Window
(); break;
PresentationFramework.Tests (5)
System\Windows\MessageBox.Tests.cs (5)
31
MessageBox.Show(new
Window
(), "Test Message", "Test Caption", (MessageBoxButton)invalidButton));
59
MessageBox.Show(new
Window
(), "Test Message", "Test Caption", MessageBoxButton.OK, MessageBoxImage.None, (MessageBoxResult)invalidResult));
101
MessageBox.Show(new
Window
(), "Test Message", "Test Caption", MessageBoxButton.OK, (MessageBoxImage)invalidImage, MessageBoxResult.None));
139
MessageBox.Show(new
Window
(), "Test Message", "Test Caption", MessageBoxButton.OK, MessageBoxImage.None, MessageBoxResult.None, (MessageBoxOptions)invalidOptions));
153
Window owner = new
Window
();
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55
var window = new
Window
250 references to Window
PresentationFramework (225)
Microsoft\Win32\CommonDialog.cs (2)
114
public bool? ShowDialog(
Window
owner)
286
Window
.CalculateCenterScreenPosition(hMonitor,
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
171
System.Windows.
Window
parent,
System\Windows\Appearance\WindowBackdropManager.cs (1)
28
internal static bool SetBackdrop(
Window
window, WindowBackdropType backdropType)
System\Windows\Application.cs (9)
202
public int Run(
Window
window)
783
public
Window
MainWindow
1651
internal int RunInternal(
Window
window)
1706
Window
win = obj as
Window
;
2240
if (root is not
Window
wnd)
2253
if (!((
Window
)window).IsDisposed)
2255
((
Window
)window).Show();
2429
private
Window
_mainWindow;
System\Windows\Automation\Peers\WindowAutomationPeer.cs (7)
15
public WindowAutomationPeer(
Window
owner): base(owner)
31
Window
window = (
Window
)Owner;
64
Window
window = (
Window
)Owner;
84
Window
window = (
Window
)Owner;
System\Windows\Controls\Button.cs (1)
273
MS.Internal.Commands.CommandHelpers.ExecuteCommand(
Window
.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2155
Window
wnd = null;
System\Windows\Controls\Image.cs (1)
402
Image.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2505
&& (
Window
.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
36
Window
.IWindowServiceProperty.OverrideMetadata(
637
(Parent is
Window
) ||
689
if ((parent is
Window
) || (parent is Frame))
System\Windows\Controls\Primitives\Popup.cs (1)
795
Window
.AllowsTransparencyProperty.AddOwner(typeof(Popup),
System\Windows\Controls\Primitives\ResizeGrip.cs (5)
37
Window
.IWindowServiceProperty.OverrideMetadata(
66
rg.OnWindowServiceChanged(e.OldValue as
Window
, e.NewValue as
Window
);
75
private void OnWindowServiceChanged(
Window
oldWindow,
Window
newWindow)
System\windows\Documents\TextEditorDragDrop.cs (2)
629
Window
window =
Window
.GetWindow(_textEditor.TextView.RenderScope);
System\Windows\FrameworkElement.cs (1)
710
if (this is
Window
window)
System\Windows\Interop\HwndHost.cs (1)
27
HwndHost.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(HwndHost));
System\Windows\Interop\WindowInteropHelper.cs (2)
32
public WindowInteropHelper(
Window
window)
113
private
Window
_window;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
832
case 739: t = () => typeof(
Window
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6684
Type type = typeof(System.Windows.
Window
);
6685
DependencyProperty dp = System.Windows.
Window
.ContentProperty;
6687
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7622
Type type = typeof(System.Windows.
Window
);
7623
DependencyProperty dp = System.Windows.
Window
.ResizeModeProperty;
7625
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7641
Type type = typeof(System.Windows.
Window
);
7642
DependencyProperty dp = System.Windows.
Window
.WindowStateProperty;
7644
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7660
Type type = typeof(System.Windows.
Window
);
7661
DependencyProperty dp = System.Windows.
Window
.TitleProperty;
7663
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
8834
Type type = typeof(System.Windows.
Window
);
8835
DependencyProperty dp = System.Windows.
Window
.AllowsTransparencyProperty;
8837
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12527
typeof(System.Windows.
Window
),
System\Windows\Markup\KnownTypes.cs (1)
6286
case KnownElements.Window: t = typeof(System.Windows.
Window
); break;
System\Windows\MessageBox.cs (6)
251
Window
owner,
267
Window
owner,
283
Window
owner,
298
Window
owner,
311
public static MessageBoxResult Show(
Window
owner, string messageBoxText, string caption)
321
public static MessageBoxResult Show(
Window
owner, string messageBoxText)
System\Windows\Navigation\NavigationService.cs (5)
3749
Window
window = null;
3756
if (host != null && (window =
Window
.GetWindow(host)) != null)
3758
dobj.SetValue(
Window
.IWindowServiceProperty, window);
3781
dobj.ClearValue(
Window
.IWindowServiceProperty);
3910
bp is
Window
)
System\Windows\Shell\WindowChrome.cs (4)
69
var
window = (
Window
)d;
90
public static WindowChrome GetWindowChrome(
Window
window)
98
public static void SetWindowChrome(
Window
window, WindowChrome chrome)
System\Windows\Shell\WindowChromeWorker.cs (10)
33
private
Window
_window;
112
var
w = (
Window
)d;
123
private void _SetWindow(
Window
window)
140
Utility.AddDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
141
Utility.AddDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
182
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
183
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
201
public static WindowChromeWorker GetWindowChromeWorker(
Window
window)
208
public static void SetWindowChromeWorker(
Window
window, WindowChromeWorker chrome)
System\Windows\SystemCommands.cs (7)
28
private static void _PostSystemCommand(
Window
window, SC command)
39
public static void CloseWindow(
Window
window)
45
public static void MaximizeWindow(
Window
window)
51
public static void MinimizeWindow(
Window
window)
57
public static void RestoreWindow(
Window
window)
65
public static void ShowSystemMenu(
Window
window, Point screenLocation)
72
internal static void ShowSystemMenuPhysicalCoordinates(
Window
window, Point physicalScreenLocation)
System\Windows\ThemeManager.cs (12)
32
foreach (
Window
window in Application.Current.Windows)
54
foreach (
Window
window in FluentEnabledWindows)
90
foreach (
Window
window in Application.Current.Windows)
107
internal static void OnWindowThemeChanged(
Window
window, ThemeMode oldThemeMode, ThemeMode newThemeMode)
134
internal static void SyncWindowThemeMode(
Window
window)
144
internal static void ApplyStyleOnWindow(
Window
window)
223
foreach (
Window
window in Application.Current.Windows)
232
private static void RemoveFluentFromWindow(
Window
window)
248
private static void ApplyFluentOnWindow(
Window
window)
263
private static void RemoveStyleFromWindow(
Window
window)
283
private static void ApplyStyleOnWindow(
Window
window, bool useLightColors)
297
window.SetResourceReference(FrameworkElement.StyleProperty, typeof(
Window
));
System\Windows\ThemeMode.cs (5)
23
/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="
Window
.ThemeMode"/>
27
/// even if <see cref="
Window
.ThemeMode"/> is set to <see cref="None">, the Fluent theme will be applied on the window.
35
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
44
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
53
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
System\Windows\TreeWalkHelper.cs (1)
457
if(fe is
Window
currentWindow)
System\Windows\Window.cs (112)
45
HeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged)));
46
MinHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged)));
47
MaxHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged)));
48
WidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged)));
49
MinWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged)));
50
MaxWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged)));
58
VisibilityProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
60
IsTabStopProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
61
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
62
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
63
KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
64
FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
66
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(typeof(
Window
)));
67
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
Window
));
69
FlowDirectionProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged)));
72
RenderTransformProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform)));
73
ClipToBoundsProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds)));
80
EventManager.RegisterClassHandler(typeof(
Window
),
84
EventManager.RegisterClassHandler(typeof(
Window
),
89
Window
.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble,
90
typeof (System.Windows.DpiChangedEventHandler), typeof (
Window
));
522
public static
Window
GetWindow(DependencyObject dependencyObject)
530
return dependencyObject.GetValue(
Window
.IWindowServiceProperty) as
Window
;
617
typeof(
Window
),
620
(d, e) => ((
Window
)d).OnTaskbarItemInfoChanged(e),
775
typeof(
Window
),
798
if (!((
Window
) d).IsSourceWindowNull)
812
DependencyProperty.Register("Title", typeof(String), typeof(
Window
),
848
typeof(
Window
),
903
typeof(
Window
),
951
Canvas.TopProperty.AddOwner(typeof(
Window
),
1002
Canvas.LeftProperty.AddOwner(typeof(
Window
),
1140
typeof(
Window
),
1177
= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(
Window
),
1216
public
Window
Owner
1399
DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(
Window
),
1440
if (!((
Window
)d).IsSourceWindowNull)
1443
((
Window
)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value);
1455
DependencyProperty.Register("WindowState", typeof(WindowState), typeof(
Window
),
1497
DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(
Window
),
1540
typeof(
Window
),
1574
typeof(
Window
),
1632
add { AddHandler(
Window
.DpiChangedEvent, value); }
1633
remove { RemoveHandler(
Window
.DpiChangedEvent, value); }
1715
/// this <see cref="
Window
"/> object is modified
1753
RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi,
Window
.DpiChangedEvent, this));
3115
/// Gets or sets a value determining preferred backdrop type for current <see cref="
Window
"/>.
3129
typeof(
Window
),
3136
if (d is not
Window
window)
3334
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3536
Window
thisRef = (
Window
)arg;
3559
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3574
Window
w = target as
Window
;
5060
Window
w = (
Window
)d;
5086
Window
w = (
Window
)d;
5104
Window
w = (
Window
)d;
5164
Window
w = (
Window
)d;
5291
Window
w = (
Window
)d;
5311
Window
w = (
Window
)d;
5337
Window
w = (
Window
)d;
5361
Window
w = (
Window
)d;
5631
Window
w = d as
Window
;
5642
Window
w = d as
Window
;
5703
Window
w = d as
Window
;
5726
Window
w = d as
Window
;
5765
Window
w = d as
Window
;
5803
Window
w = d as
Window
;
5824
Window
w = d as
Window
;
5865
Window
w = d as
Window
;
6058
Window
w = d as
Window
;
6095
Window
w = d as
Window
;
6134
Window
w = d as
Window
;
6170
Window
w = d as
Window
;
6249
Window
w = d as
Window
;
6274
((
Window
)d).VerifyApiSupported();
6281
Window
w = d as
Window
;
7044
Window
window = sender as
Window
;
7052
Window
window = sender as
Window
;
7222
private
Window
_ownerWindow; // owner window
7340
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
7661
internal static HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
7674
private HwndStyleManager(
Window
w, int Style, int StyleEx )
7726
private
Window
_window;
7737
/// Initially, an HWND created in <see cref="
Window
"/> in a Per-Monitor Aware process may not
System\Windows\WindowCollection.cs (6)
53
public
Window
this[int index]
57
return _list[index] as
Window
;
99
public void CopyTo(
Window
[] array, int index)
158
internal void Remove(
Window
win)
174
internal int Add (
Window
win)
182
internal bool HasItem(
Window
win)
PresentationFramework.Tests (1)
System\Windows\MessageBox.Tests.cs (1)
153
Window
owner = new Window();
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55
var
window = new Window
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\KeyTipService.cs (2)
1069
_currentWindow =
Window
.GetWindow(scope);
1734
private
Window
_currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
639
private
Window
_window = null;
1170
e.NewSource.RootVisual is
Window
)
1172
rib._window = (
Window
)e.NewSource.RootVisual;
1177
private void UnhookWindowListeners(
Window
win)
1191
private void HookWindowListeners(
Window
win)
1421
Window
window = ((Ribbon)d)._window;
1553
private static bool CheckIfWindowIsRibbonWindow(
Window
win)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
327
RibbonWindow ribbonWindow =
Window
.GetWindow(this) as RibbonWindow;
379
RibbonWindow ribbonWindow =
Window
.GetWindow(this) as RibbonWindow;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
52
Window
.TitleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnTitleChangedCallback)));
WindowsFormsIntegration (11)
System\Windows\Integration\ApplicationInterop.cs (8)
43
public static void EnableModelessKeyboardInterop(SW.
Window
window)
199
private static ModelessWindowFilter FindFilter(SW.
Window
window)
228
ModelessWindowFilter windowFilter = WindowFilterList.FindFilter(sender as SW.
Window
);
243
private System.Windows.
Window
_window;
244
public SW.
Window
Window
252
public ModelessWindowFilter(System.Windows.
Window
window)
401
SW.
Window
rootWindow = null;
404
rootWindow = FindRootVisual(wfh) as SW.
Window
;
System\Windows\Integration\ElementHost.cs (1)
542
public static void EnableModelessKeyboardInterop(SW.
Window
window)
System\Windows\Integration\WindowsFormsHost.cs (2)
989
Window
presentationSourceWindow = presentationSource.RootVisual as
Window
;