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)
2497
&& (
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)
3740
Window
window = null;
3747
if (host != null && (window =
Window
.GetWindow(host)) != null)
3749
dobj.SetValue(
Window
.IWindowServiceProperty, window);
3772
dobj.ClearValue(
Window
.IWindowServiceProperty);
3901
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;
105
var
w = (
Window
)d;
116
private void _SetWindow(
Window
window)
133
Utility.AddDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
134
Utility.AddDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
175
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
176
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
191
public static WindowChromeWorker GetWindowChromeWorker(
Window
window)
198
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),
769
typeof(
Window
),
792
if (!((
Window
) d).IsSourceWindowNull)
806
DependencyProperty.Register("Title", typeof(String), typeof(
Window
),
842
typeof(
Window
),
897
typeof(
Window
),
945
Canvas.TopProperty.AddOwner(typeof(
Window
),
996
Canvas.LeftProperty.AddOwner(typeof(
Window
),
1134
typeof(
Window
),
1171
= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(
Window
),
1210
public
Window
Owner
1393
DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(
Window
),
1434
if (!((
Window
)d).IsSourceWindowNull)
1437
((
Window
)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value);
1449
DependencyProperty.Register("WindowState", typeof(WindowState), typeof(
Window
),
1491
DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(
Window
),
1534
typeof(
Window
),
1568
typeof(
Window
),
1626
add { AddHandler(
Window
.DpiChangedEvent, value); }
1627
remove { RemoveHandler(
Window
.DpiChangedEvent, value); }
1709
/// this <see cref="
Window
"/> object is modified
1747
RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi,
Window
.DpiChangedEvent, this));
3109
/// Gets or sets a value determining preferred backdrop type for current <see cref="
Window
"/>.
3123
typeof(
Window
),
3130
if (d is not
Window
window)
3328
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3530
Window
thisRef = (
Window
)arg;
3553
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3568
Window
w = target as
Window
;
5054
Window
w = (
Window
)d;
5080
Window
w = (
Window
)d;
5098
Window
w = (
Window
)d;
5158
Window
w = (
Window
)d;
5285
Window
w = (
Window
)d;
5305
Window
w = (
Window
)d;
5331
Window
w = (
Window
)d;
5355
Window
w = (
Window
)d;
5625
Window
w = d as
Window
;
5636
Window
w = d as
Window
;
5697
Window
w = d as
Window
;
5720
Window
w = d as
Window
;
5759
Window
w = d as
Window
;
5797
Window
w = d as
Window
;
5818
Window
w = d as
Window
;
5859
Window
w = d as
Window
;
6052
Window
w = d as
Window
;
6089
Window
w = d as
Window
;
6128
Window
w = d as
Window
;
6164
Window
w = d as
Window
;
6243
Window
w = d as
Window
;
6268
((
Window
)d).VerifyApiSupported();
6275
Window
w = d as
Window
;
7035
Window
window = sender as
Window
;
7043
Window
window = sender as
Window
;
7213
private
Window
_ownerWindow; // owner window
7331
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
7646
internal static HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
7659
private HwndStyleManager(
Window
w, int Style, int StyleEx )
7711
private
Window
_window;
7722
/// 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;
1164
e.NewSource.RootVisual is
Window
)
1166
rib._window = (
Window
)e.NewSource.RootVisual;
1171
private void UnhookWindowListeners(
Window
win)
1185
private void HookWindowListeners(
Window
win)
1415
Window
window = ((Ribbon)d)._window;
1547
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)
982
Window
presentationSourceWindow = presentationSource.RootVisual as
Window
;