2 types derived from Window
PresentationFramework (1)
System\Windows\Navigation\NavigationWindow.cs (1)
39
public class NavigationWindow :
Window
, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
24
public 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)
12531
DefaultConstructor = delegate () { return new System.Windows.
Window
(); },
System\Windows\Markup\KnownTypes.cs (1)
1652
case KnownElements.Window: o = new System.Windows.
Window
(); break;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55
var window = new
Window
249 references to Window
PresentationFramework (225)
Microsoft\Win32\CommonDialog.cs (2)
135
public Nullable<bool> ShowDialog(
Window
owner)
315
Window
.CalculateCenterScreenPosition(hMonitor,
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
172
System.Windows.
Window
parent,
System\Windows\Appearance\WindowBackdropManager.cs (1)
25
internal static bool SetBackdrop(
Window
window, WindowBackdropType backdropType)
System\Windows\Application.cs (9)
203
public int Run(
Window
window)
784
public
Window
MainWindow
1661
internal int RunInternal(
Window
window)
1716
Window
win = obj as
Window
;
2250
if (root is not
Window
wnd)
2263
if (!((
Window
)window).IsDisposed)
2265
((
Window
)window).Show();
2439
private
Window
_mainWindow;
System\Windows\Automation\Peers\WindowAutomationPeer.cs (7)
16
public WindowAutomationPeer(
Window
owner): base(owner)
32
Window
window = (
Window
)Owner;
65
Window
window = (
Window
)Owner;
85
Window
window = (
Window
)Owner;
System\Windows\Controls\Button.cs (1)
275
MS.Internal.Commands.CommandHelpers.ExecuteCommand(
Window
.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2216
Window
wnd = null;
System\Windows\Controls\Image.cs (1)
403
Image.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2513
&& (
Window
.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
37
Window
.IWindowServiceProperty.OverrideMetadata(
641
(Parent is
Window
) ||
693
if ((parent is
Window
) || (parent is Frame))
System\Windows\Controls\Primitives\Popup.cs (1)
796
Window
.AllowsTransparencyProperty.AddOwner(typeof(Popup),
System\Windows\Controls\Primitives\ResizeGrip.cs (5)
38
Window
.IWindowServiceProperty.OverrideMetadata(
67
rg.OnWindowServiceChanged(e.OldValue as
Window
, e.NewValue as
Window
);
76
private void OnWindowServiceChanged(
Window
oldWindow,
Window
newWindow)
System\windows\Documents\TextEditorDragDrop.cs (2)
630
Window
window =
Window
.GetWindow(_textEditor.TextView.RenderScope);
System\Windows\FrameworkElement.cs (1)
714
if(this is
Window
window)
System\Windows\Interop\HwndHost.cs (1)
28
HwndHost.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(HwndHost));
System\Windows\Interop\WindowInteropHelper.cs (2)
33
public WindowInteropHelper(
Window
window)
114
private
Window
_window;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
833
case 739: t = () => typeof(
Window
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6685
Type type = typeof(System.Windows.
Window
);
6686
DependencyProperty dp = System.Windows.
Window
.ContentProperty;
6688
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7619
Type type = typeof(System.Windows.
Window
);
7620
DependencyProperty dp = System.Windows.
Window
.ResizeModeProperty;
7622
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7638
Type type = typeof(System.Windows.
Window
);
7639
DependencyProperty dp = System.Windows.
Window
.WindowStateProperty;
7641
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7657
Type type = typeof(System.Windows.
Window
);
7658
DependencyProperty dp = System.Windows.
Window
.TitleProperty;
7660
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
8831
Type type = typeof(System.Windows.
Window
);
8832
DependencyProperty dp = System.Windows.
Window
.AllowsTransparencyProperty;
8834
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12528
typeof(System.Windows.
Window
),
System\Windows\Markup\KnownTypes.cs (1)
6287
case KnownElements.Window: t = typeof(System.Windows.
Window
); break;
System\Windows\MessageBox.cs (6)
240
Window
owner,
256
Window
owner,
272
Window
owner,
287
Window
owner,
300
public static MessageBoxResult Show(
Window
owner, string messageBoxText, string caption)
310
public static MessageBoxResult Show(
Window
owner, string messageBoxText)
System\Windows\Navigation\NavigationService.cs (5)
3801
Window
window = null;
3808
if (host != null && (window =
Window
.GetWindow(host)) != null)
3810
dobj.SetValue(
Window
.IWindowServiceProperty, window);
3833
dobj.ClearValue(
Window
.IWindowServiceProperty);
3962
bp is
Window
)
System\Windows\Shell\WindowChrome.cs (4)
70
var
window = (
Window
)d;
91
public static WindowChrome GetWindowChrome(
Window
window)
99
public static void SetWindowChrome(
Window
window, WindowChrome chrome)
System\Windows\Shell\WindowChromeWorker.cs (10)
34
private
Window
_window;
113
var
w = (
Window
)d;
124
private void _SetWindow(
Window
window)
141
Utility.AddDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
142
Utility.AddDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
183
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
184
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
202
public static WindowChromeWorker GetWindowChromeWorker(
Window
window)
209
public static void SetWindowChromeWorker(
Window
window, WindowChromeWorker chrome)
System\Windows\SystemCommands.cs (7)
29
private static void _PostSystemCommand(
Window
window, SC command)
40
public static void CloseWindow(
Window
window)
46
public static void MaximizeWindow(
Window
window)
52
public static void MinimizeWindow(
Window
window)
58
public static void RestoreWindow(
Window
window)
66
public static void ShowSystemMenu(
Window
window, Point screenLocation)
73
internal static void ShowSystemMenuPhysicalCoordinates(
Window
window, Point physicalScreenLocation)
System\Windows\ThemeManager.cs (12)
29
foreach (
Window
window in Application.Current.Windows)
51
foreach (
Window
window in FluentEnabledWindows)
87
foreach (
Window
window in Application.Current.Windows)
104
internal static void OnWindowThemeChanged(
Window
window, ThemeMode oldThemeMode, ThemeMode newThemeMode)
131
internal static void SyncWindowThemeMode(
Window
window)
141
internal static void ApplyStyleOnWindow(
Window
window)
220
foreach (
Window
window in Application.Current.Windows)
229
private static void RemoveFluentFromWindow(
Window
window)
245
private static void ApplyFluentOnWindow(
Window
window)
260
private static void RemoveStyleFromWindow(
Window
window)
280
private static void ApplyStyleOnWindow(
Window
window, bool useLightColors)
288
window.SetResourceReference(FrameworkElement.StyleProperty, typeof(
Window
));
System\Windows\ThemeMode.cs (5)
24
/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="
Window
.ThemeMode"/>
28
/// even if <see cref="
Window
.ThemeMode"/> is set to <see cref="None">, the Fluent theme will be applied on the window.
36
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
45
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
54
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
System\Windows\TreeWalkHelper.cs (1)
458
if(fe is
Window
currentWindow)
System\Windows\Window.cs (112)
46
HeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged)));
47
MinHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged)));
48
MaxHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged)));
49
WidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged)));
50
MinWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged)));
51
MaxWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged)));
59
VisibilityProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
61
IsTabStopProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
62
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
63
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
64
KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
65
FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
67
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(typeof(
Window
)));
68
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
Window
));
70
FlowDirectionProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged)));
73
RenderTransformProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform)));
74
ClipToBoundsProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds)));
81
EventManager.RegisterClassHandler(typeof(
Window
),
85
EventManager.RegisterClassHandler(typeof(
Window
),
90
Window
.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble,
91
typeof (System.Windows.DpiChangedEventHandler), typeof (
Window
));
523
public static
Window
GetWindow(DependencyObject dependencyObject)
531
return dependencyObject.GetValue(
Window
.IWindowServiceProperty) as
Window
;
618
typeof(
Window
),
621
(d, e) => ((
Window
)d).OnTaskbarItemInfoChanged(e),
776
typeof(
Window
),
799
if (!((
Window
) d).IsSourceWindowNull)
813
DependencyProperty.Register("Title", typeof(String), typeof(
Window
),
849
typeof(
Window
),
904
typeof(
Window
),
952
Canvas.TopProperty.AddOwner(typeof(
Window
),
1003
Canvas.LeftProperty.AddOwner(typeof(
Window
),
1141
typeof(
Window
),
1178
= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(
Window
),
1217
public
Window
Owner
1406
DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(
Window
),
1447
if (!((
Window
)d).IsSourceWindowNull)
1450
((
Window
)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value);
1462
DependencyProperty.Register("WindowState", typeof(WindowState), typeof(
Window
),
1504
DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(
Window
),
1547
typeof(
Window
),
1581
typeof(
Window
),
1639
add { AddHandler(
Window
.DpiChangedEvent, value); }
1640
remove { RemoveHandler(
Window
.DpiChangedEvent, value); }
1722
/// this <see cref="
Window
"/> object is modified
1760
RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi,
Window
.DpiChangedEvent, this));
3126
/// Gets or sets a value determining preferred backdrop type for current <see cref="
Window
"/>.
3140
typeof(
Window
),
3147
if (d is not
Window
window)
3345
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3550
Window
thisRef = (
Window
)arg;
3573
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3588
Window
w = target as
Window
;
5083
Window
w = (
Window
)d;
5109
Window
w = (
Window
)d;
5127
Window
w = (
Window
)d;
5187
Window
w = (
Window
)d;
5314
Window
w = (
Window
)d;
5334
Window
w = (
Window
)d;
5360
Window
w = (
Window
)d;
5384
Window
w = (
Window
)d;
5654
Window
w = d as
Window
;
5665
Window
w = d as
Window
;
5726
Window
w = d as
Window
;
5749
Window
w = d as
Window
;
5788
Window
w = d as
Window
;
5826
Window
w = d as
Window
;
5847
Window
w = d as
Window
;
5888
Window
w = d as
Window
;
6081
Window
w = d as
Window
;
6118
Window
w = d as
Window
;
6157
Window
w = d as
Window
;
6193
Window
w = d as
Window
;
6272
Window
w = d as
Window
;
6297
((
Window
)d).VerifyApiSupported();
6304
Window
w = d as
Window
;
7070
Window
window = sender as
Window
;
7081
Window
window = sender as
Window
;
7257
private
Window
_ownerWindow; // owner window
7375
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
7702
static internal HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
7715
private HwndStyleManager(
Window
w, int Style, int StyleEx )
7767
private
Window
_window;
7778
/// Initially, an HWND created in <see cref="
Window
"/> in a Per-Monitor Aware process may not
System\Windows\WindowCollection.cs (6)
54
public
Window
this[int index]
58
return _list[index] as
Window
;
100
public void CopyTo(
Window
[] array, int index)
159
internal void Remove(
Window
win)
175
internal int Add (
Window
win)
183
internal bool HasItem(
Window
win)
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)
1073
_currentWindow =
Window
.GetWindow(scope);
1753
private
Window
_currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
640
private
Window
_window = null;
1183
e.NewSource.RootVisual is
Window
)
1185
rib._window = (
Window
)e.NewSource.RootVisual;
1190
private void UnhookWindowListeners(
Window
win)
1204
private void HookWindowListeners(
Window
win)
1440
Window
window = ((Ribbon)d)._window;
1581
private static bool CheckIfWindowIsRibbonWindow(
Window
win)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
328
RibbonWindow ribbonWindow =
Window
.GetWindow(this) as RibbonWindow;
380
RibbonWindow ribbonWindow =
Window
.GetWindow(this) as RibbonWindow;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
53
Window
.TitleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnTitleChangedCallback)));
WindowsFormsIntegration (11)
System\Windows\Integration\ApplicationInterop.cs (8)
44
public static void EnableModelessKeyboardInterop(SW.
Window
window)
200
static ModelessWindowFilter FindFilter(SW.
Window
window)
229
ModelessWindowFilter windowFilter = WindowFilterList.FindFilter(sender as SW.
Window
);
244
private System.Windows.
Window
_window;
245
public SW.
Window
Window
253
public ModelessWindowFilter(System.Windows.
Window
window)
402
SW.
Window
rootWindow = null;
405
rootWindow = FindRootVisual(wfh) as SW.
Window
;
System\Windows\Integration\ElementHost.cs (1)
548
public static void EnableModelessKeyboardInterop(SW.
Window
window)
System\Windows\Integration\WindowsFormsHost.cs (2)
1008
Window
presentationSourceWindow = presentationSource.RootVisual as
Window
;