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)
168
_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)
2158
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
7618
Type type = typeof(System.Windows.
Window
);
7619
DependencyProperty dp = System.Windows.
Window
.ResizeModeProperty;
7621
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7637
Type type = typeof(System.Windows.
Window
);
7638
DependencyProperty dp = System.Windows.
Window
.WindowStateProperty;
7640
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7656
Type type = typeof(System.Windows.
Window
);
7657
DependencyProperty dp = System.Windows.
Window
.TitleProperty;
7659
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
8830
Type type = typeof(System.Windows.
Window
);
8831
DependencyProperty dp = System.Windows.
Window
.AllowsTransparencyProperty;
8833
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)
3758
Window
window = null;
3765
if (host != null && (window =
Window
.GetWindow(host)) != null)
3767
dobj.SetValue(
Window
.IWindowServiceProperty, window);
3790
dobj.ClearValue(
Window
.IWindowServiceProperty);
3919
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));
3118
/// Gets or sets a value determining preferred backdrop type for current <see cref="
Window
"/>.
3132
typeof(
Window
),
3139
if (d is not
Window
window)
3337
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3539
Window
thisRef = (
Window
)arg;
3562
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3577
Window
w = target as
Window
;
5066
Window
w = (
Window
)d;
5092
Window
w = (
Window
)d;
5110
Window
w = (
Window
)d;
5170
Window
w = (
Window
)d;
5297
Window
w = (
Window
)d;
5317
Window
w = (
Window
)d;
5343
Window
w = (
Window
)d;
5367
Window
w = (
Window
)d;
5637
Window
w = d as
Window
;
5648
Window
w = d as
Window
;
5709
Window
w = d as
Window
;
5732
Window
w = d as
Window
;
5771
Window
w = d as
Window
;
5809
Window
w = d as
Window
;
5830
Window
w = d as
Window
;
5871
Window
w = d as
Window
;
6064
Window
w = d as
Window
;
6101
Window
w = d as
Window
;
6140
Window
w = d as
Window
;
6176
Window
w = d as
Window
;
6255
Window
w = d as
Window
;
6280
((
Window
)d).VerifyApiSupported();
6287
Window
w = d as
Window
;
7050
Window
window = sender as
Window
;
7058
Window
window = sender as
Window
;
7228
private
Window
_ownerWindow; // owner window
7346
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
7670
internal static HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
7683
private HwndStyleManager(
Window
w, int Style, int StyleEx )
7735
private
Window
_window;
7746
/// 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;
1173
e.NewSource.RootVisual is
Window
)
1175
rib._window = (
Window
)e.NewSource.RootVisual;
1180
private void UnhookWindowListeners(
Window
win)
1194
private void HookWindowListeners(
Window
win)
1424
Window
window = ((Ribbon)d)._window;
1559
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)
544
public static void EnableModelessKeyboardInterop(SW.
Window
window)
System\Windows\Integration\WindowsFormsHost.cs (2)
989
Window
presentationSourceWindow = presentationSource.RootVisual as
Window
;