2 types derived from Window
PresentationFramework (1)
System\Windows\Navigation\NavigationWindow.cs (1)
55
public class NavigationWindow :
Window
, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
29
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)
11280
bamlType.DefaultConstructor = delegate() { return new System.Windows.
Window
(); };
System\Windows\Markup\KnownTypes.cs (1)
1658
case KnownElements.Window: o = new System.Windows.
Window
(); break;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
55
var window = new
Window
251 references to Window
PresentationFramework (227)
Microsoft\Win32\CommonDialog.cs (2)
138
public Nullable<bool> ShowDialog(
Window
owner)
318
Window
.CalculateCenterScreenPosition(hMonitor,
MS\Internal\AppModel\SecurityMgrSite.cs (1)
32
Window
curWindow = Application.Current.MainWindow;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
177
System.Windows.
Window
parent,
System\Windows\Appearance\WindowBackdropManager.cs (1)
26
internal static bool SetBackdrop(
Window
window, WindowBackdropType backdropType)
System\Windows\Application.cs (10)
220
public int Run(
Window
window)
820
public
Window
MainWindow
1694
internal int RunInternal(
Window
window)
1749
Window
win = obj as
Window
;
2328
Window
w = root as
Window
;
2343
if (!((
Window
)window).IsDisposed)
2345
((
Window
)window).Show();
2519
private
Window
_mainWindow;
System\Windows\Automation\Peers\WindowAutomationPeer.cs (7)
27
public WindowAutomationPeer(
Window
owner): base(owner)
43
Window
window = (
Window
)Owner;
76
Window
window = (
Window
)Owner;
100
Window
window = (
Window
)Owner;
System\Windows\Controls\Button.cs (1)
284
MS.Internal.Commands.CommandHelpers.ExecuteCommand(
Window
.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2220
Window
wnd = null;
System\Windows\Controls\Image.cs (1)
411
Image.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2521
&& (
Window
.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
49
Window
.IWindowServiceProperty.OverrideMetadata(
661
(Parent is
Window
) ||
713
if ((parent is
Window
) || (parent is Frame))
System\Windows\Controls\Primitives\Popup.cs (1)
807
Window
.AllowsTransparencyProperty.AddOwner(typeof(Popup),
System\Windows\Controls\Primitives\ResizeGrip.cs (5)
45
Window
.IWindowServiceProperty.OverrideMetadata(
74
rg.OnWindowServiceChanged(e.OldValue as
Window
, e.NewValue as
Window
);
83
private void OnWindowServiceChanged(
Window
oldWindow,
Window
newWindow)
System\windows\Documents\TextEditorDragDrop.cs (2)
647
Window
window =
Window
.GetWindow(_textEditor.TextView.RenderScope);
System\Windows\FrameworkElement.cs (1)
732
if(this is
Window
window)
System\Windows\Interop\HwndHost.cs (1)
37
HwndHost.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(HwndHost));
System\Windows\Interop\WindowInteropHelper.cs (2)
39
public WindowInteropHelper(
Window
window)
131
private
Window
_window;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
835
case 739: t = () => typeof(
Window
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6235
Type type = typeof(System.Windows.
Window
);
6236
DependencyProperty dp = System.Windows.
Window
.ContentProperty;
6238
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7077
Type type = typeof(System.Windows.
Window
);
7078
DependencyProperty dp = System.Windows.
Window
.ResizeModeProperty;
7080
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7094
Type type = typeof(System.Windows.
Window
);
7095
DependencyProperty dp = System.Windows.
Window
.WindowStateProperty;
7097
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7111
Type type = typeof(System.Windows.
Window
);
7112
DependencyProperty dp = System.Windows.
Window
.TitleProperty;
7114
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
8165
Type type = typeof(System.Windows.
Window
);
8166
DependencyProperty dp = System.Windows.
Window
.AllowsTransparencyProperty;
8168
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11278
typeof(System.Windows.
Window
),
System\Windows\Markup\KnownTypes.cs (1)
6293
case KnownElements.Window: t = typeof(System.Windows.
Window
); break;
System\Windows\MessageBox.cs (6)
247
Window
owner,
263
Window
owner,
279
Window
owner,
294
Window
owner,
307
public static MessageBoxResult Show(
Window
owner, string messageBoxText, string caption)
317
public static MessageBoxResult Show(
Window
owner, string messageBoxText)
System\Windows\Navigation\NavigationService.cs (5)
3829
Window
window = null;
3836
if (host != null && (window =
Window
.GetWindow(host)) != null)
3838
dobj.SetValue(
Window
.IWindowServiceProperty, window);
3861
dobj.ClearValue(
Window
.IWindowServiceProperty);
3990
bp is
Window
)
System\Windows\Shell\WindowChrome.cs (4)
73
var
window = (
Window
)d;
94
public static WindowChrome GetWindowChrome(
Window
window)
102
public static void SetWindowChrome(
Window
window, WindowChrome chrome)
System\Windows\Shell\WindowChromeWorker.cs (10)
39
private
Window
_window;
118
var
w = (
Window
)d;
129
private void _SetWindow(
Window
window)
146
Utility.AddDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
147
Utility.AddDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
188
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
189
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
207
public static WindowChromeWorker GetWindowChromeWorker(
Window
window)
214
public static void SetWindowChromeWorker(
Window
window, WindowChromeWorker chrome)
System\Windows\SystemCommands.cs (7)
31
private static void _PostSystemCommand(
Window
window, SC command)
42
public static void CloseWindow(
Window
window)
48
public static void MaximizeWindow(
Window
window)
54
public static void MinimizeWindow(
Window
window)
60
public static void RestoreWindow(
Window
window)
68
public static void ShowSystemMenu(
Window
window, Point screenLocation)
75
internal static void ShowSystemMenuPhysicalCoordinates(
Window
window, Point physicalScreenLocation)
System\Windows\ThemeManager.cs (12)
38
foreach (
Window
window in Application.Current.Windows)
60
foreach (
Window
window in FluentEnabledWindows)
96
foreach (
Window
window in Application.Current.Windows)
113
internal static void OnWindowThemeChanged(
Window
window, ThemeMode oldThemeMode, ThemeMode newThemeMode)
140
internal static void SyncWindowThemeMode(
Window
window)
150
internal static void ApplyStyleOnWindow(
Window
window)
229
foreach (
Window
window in Application.Current.Windows)
238
private static void RemoveFluentFromWindow(
Window
window)
254
private static void ApplyFluentOnWindow(
Window
window)
269
private static void RemoveStyleFromWindow(
Window
window)
289
private static void ApplyStyleOnWindow(
Window
window, bool useLightColors)
297
window.SetResourceReference(FrameworkElement.StyleProperty, typeof(
Window
));
System\Windows\ThemeMode.cs (5)
36
/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="
Window
.ThemeMode"/>
40
/// even if <see cref="
Window
.ThemeMode"/> is set to <see cref="None">, the Fluent theme will be applied on the window.
48
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
57
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
66
/// Whenever this mode is set on <see cref="Application"/> or <see cref="
Window
"/>,
System\Windows\TreeWalkHelper.cs (1)
462
if(fe is
Window
currentWindow)
System\Windows\Window.cs (112)
64
HeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged)));
65
MinHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged)));
66
MaxHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged)));
67
WidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged)));
68
MinWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged)));
69
MaxWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged)));
77
VisibilityProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
79
IsTabStopProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
80
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
81
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
82
KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
83
FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
85
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(typeof(
Window
)));
86
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
Window
));
88
FlowDirectionProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged)));
91
RenderTransformProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform)));
92
ClipToBoundsProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds)));
99
EventManager.RegisterClassHandler(typeof(
Window
),
103
EventManager.RegisterClassHandler(typeof(
Window
),
108
Window
.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble,
109
typeof (System.Windows.DpiChangedEventHandler), typeof (
Window
));
544
public static
Window
GetWindow(DependencyObject dependencyObject)
552
return dependencyObject.GetValue(
Window
.IWindowServiceProperty) as
Window
;
639
typeof(
Window
),
642
(d, e) => ((
Window
)d).OnTaskbarItemInfoChanged(e),
797
typeof(
Window
),
820
if (!((
Window
) d).IsSourceWindowNull)
834
DependencyProperty.Register("Title", typeof(String), typeof(
Window
),
870
typeof(
Window
),
925
typeof(
Window
),
973
Canvas.TopProperty.AddOwner(typeof(
Window
),
1024
Canvas.LeftProperty.AddOwner(typeof(
Window
),
1162
typeof(
Window
),
1199
= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(
Window
),
1238
public
Window
Owner
1427
DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(
Window
),
1468
if (!((
Window
)d).IsSourceWindowNull)
1471
((
Window
)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value);
1483
DependencyProperty.Register("WindowState", typeof(WindowState), typeof(
Window
),
1525
DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(
Window
),
1568
typeof(
Window
),
1602
typeof(
Window
),
1660
add { AddHandler(
Window
.DpiChangedEvent, value); }
1661
remove { RemoveHandler(
Window
.DpiChangedEvent, value); }
1743
/// this <see cref="
Window
"/> object is modified
1781
RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi,
Window
.DpiChangedEvent, this));
3146
/// Gets or sets a value determining preferred backdrop type for current <see cref="
Window
"/>.
3160
typeof(
Window
),
3167
if (d is not
Window
window)
3365
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3568
Window
thisRef = (
Window
)arg;
3591
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3606
Window
w = target as
Window
;
5102
Window
w = (
Window
)d;
5128
Window
w = (
Window
)d;
5146
Window
w = (
Window
)d;
5206
Window
w = (
Window
)d;
5333
Window
w = (
Window
)d;
5353
Window
w = (
Window
)d;
5379
Window
w = (
Window
)d;
5403
Window
w = (
Window
)d;
5673
Window
w = d as
Window
;
5684
Window
w = d as
Window
;
5745
Window
w = d as
Window
;
5768
Window
w = d as
Window
;
5807
Window
w = d as
Window
;
5845
Window
w = d as
Window
;
5866
Window
w = d as
Window
;
5907
Window
w = d as
Window
;
6096
Window
w = d as
Window
;
6133
Window
w = d as
Window
;
6172
Window
w = d as
Window
;
6208
Window
w = d as
Window
;
6287
Window
w = d as
Window
;
6312
((
Window
)d).VerifyApiSupported();
6319
Window
w = d as
Window
;
7085
Window
window = sender as
Window
;
7096
Window
window = sender as
Window
;
7272
private
Window
_ownerWindow; // owner window
7390
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
7715
static internal HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
7728
private HwndStyleManager(
Window
w, int Style, int StyleEx )
7780
private
Window
_window;
7791
/// Initially, an HWND created in <see cref="
Window
"/> in a Per-Monitor Aware process may not
System\Windows\WindowCollection.cs (6)
55
public
Window
this[int index]
59
return _list[index] as
Window
;
101
public void CopyTo(
Window
[] array, int index)
160
internal void Remove(
Window
win)
176
internal int Add (
Window
win)
184
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);
1751
private
Window
_currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
643
private
Window
_window = null;
1186
e.NewSource.RootVisual is
Window
)
1188
rib._window = (
Window
)e.NewSource.RootVisual;
1193
private void UnhookWindowListeners(
Window
win)
1207
private void HookWindowListeners(
Window
win)
1443
Window
window = ((Ribbon)d)._window;
1584
private static bool CheckIfWindowIsRibbonWindow(
Window
win)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
330
RibbonWindow ribbonWindow =
Window
.GetWindow(this) as RibbonWindow;
382
RibbonWindow ribbonWindow =
Window
.GetWindow(this) as RibbonWindow;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
58
Window
.TitleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(String.Empty, new PropertyChangedCallback(OnTitleChangedCallback)));
WindowsFormsIntegration (11)
System\Windows\Integration\ApplicationInterop.cs (8)
46
public static void EnableModelessKeyboardInterop(SW.
Window
window)
202
static ModelessWindowFilter FindFilter(SW.
Window
window)
231
ModelessWindowFilter windowFilter = WindowFilterList.FindFilter(sender as SW.
Window
);
246
private System.Windows.
Window
_window;
247
public SW.
Window
Window
255
public ModelessWindowFilter(System.Windows.
Window
window)
404
SW.
Window
rootWindow = null;
407
rootWindow = FindRootVisual(wfh) as SW.
Window
;
System\Windows\Integration\ElementHost.cs (1)
552
public static void EnableModelessKeyboardInterop(SW.
Window
window)
System\Windows\Integration\WindowsFormsHost.cs (2)
1013
Window
presentationSourceWindow = presentationSource.RootVisual as
Window
;