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)
115
public bool? ShowDialog(
Window
owner)
287
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
1652
internal int RunInternal(
Window
window)
1707
Window
win = obj as
Window
;
2241
if (root is not
Window
wnd)
2254
if (!((
Window
)window).IsDisposed)
2256
((
Window
)window).Show();
2430
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)
274
MS.Internal.Commands.CommandHelpers.ExecuteCommand(
Window
.DialogCancelCommand, null, this);
System\Windows\Controls\DocumentViewer.cs (1)
2159
Window
wnd = null;
System\Windows\Controls\Image.cs (1)
403
Image.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(Image));
System\Windows\Controls\MenuItem.cs (1)
2506
&& (
Window
.GetWindow(this)?.IsActive ?? true))
System\Windows\Controls\Page.cs (3)
37
Window
.IWindowServiceProperty.OverrideMetadata(
638
(Parent is
Window
) ||
690
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)
711
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)
3759
Window
window = null;
3766
if (host != null && (window =
Window
.GetWindow(host)) != null)
3768
dobj.SetValue(
Window
.IWindowServiceProperty, window);
3791
dobj.ClearValue(
Window
.IWindowServiceProperty);
3920
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
1400
DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(
Window
),
1441
if (!((
Window
)d).IsSourceWindowNull)
1444
((
Window
)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value);
1456
DependencyProperty.Register("WindowState", typeof(WindowState), typeof(
Window
),
1498
DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(
Window
),
1541
typeof(
Window
),
1575
typeof(
Window
),
1633
add { AddHandler(
Window
.DpiChangedEvent, value); }
1634
remove { RemoveHandler(
Window
.DpiChangedEvent, value); }
1716
/// this <see cref="
Window
"/> object is modified
1754
RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi,
Window
.DpiChangedEvent, this));
3119
/// Gets or sets a value determining preferred backdrop type for current <see cref="
Window
"/>.
3133
typeof(
Window
),
3140
if (d is not
Window
window)
3338
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3540
Window
thisRef = (
Window
)arg;
3563
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3578
Window
w = target as
Window
;
5067
Window
w = (
Window
)d;
5093
Window
w = (
Window
)d;
5111
Window
w = (
Window
)d;
5171
Window
w = (
Window
)d;
5298
Window
w = (
Window
)d;
5318
Window
w = (
Window
)d;
5344
Window
w = (
Window
)d;
5368
Window
w = (
Window
)d;
5638
Window
w = d as
Window
;
5649
Window
w = d as
Window
;
5710
Window
w = d as
Window
;
5733
Window
w = d as
Window
;
5772
Window
w = d as
Window
;
5810
Window
w = d as
Window
;
5831
Window
w = d as
Window
;
5872
Window
w = d as
Window
;
6065
Window
w = d as
Window
;
6102
Window
w = d as
Window
;
6141
Window
w = d as
Window
;
6177
Window
w = d as
Window
;
6256
Window
w = d as
Window
;
6281
((
Window
)d).VerifyApiSupported();
6288
Window
w = d as
Window
;
7051
Window
window = sender as
Window
;
7059
Window
window = sender as
Window
;
7229
private
Window
_ownerWindow; // owner window
7347
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
7671
static internal HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
7684
private HwndStyleManager(
Window
w, int Style, int StyleEx )
7736
private
Window
_window;
7747
/// 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)
1070
_currentWindow =
Window
.GetWindow(scope);
1735
private
Window
_currentWindow = null;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
640
private
Window
_window = null;
1174
e.NewSource.RootVisual is
Window
)
1176
rib._window = (
Window
)e.NewSource.RootVisual;
1181
private void UnhookWindowListeners(
Window
win)
1195
private void HookWindowListeners(
Window
win)
1425
Window
window = ((Ribbon)d)._window;
1560
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)
545
public static void EnableModelessKeyboardInterop(SW.
Window
window)
System\Windows\Integration\WindowsFormsHost.cs (2)
990
Window
presentationSourceWindow = presentationSource.RootVisual as
Window
;