2 types derived from Window
PresentationFramework (1)
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
62
public class NavigationWindow :
Window
, INavigator, INavigatorImpl, IDownloader, IJournalNavigationScopeHost, IUriContext
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
14
internal class DialogWindow :
Window
2 instantiations of Window
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11276
bamlType.DefaultConstructor = delegate() { return new System.Windows.
Window
(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1659
case KnownElements.Window: o = new System.Windows.
Window
(); break;
220 references to Window
PresentationFramework (201)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
167
public Nullable<bool> ShowDialog(
Window
owner)
359
Window
.CalculateCenterScreenPosition( hMonitor,
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
1080
private static string GetPrintJobDescription(
Window
window)
src\Framework\MS\Internal\AppModel\SecurityMgrSite.cs (1)
45
Window
curWindow = Application.Current.MainWindow;
src\Framework\System\Windows\Application.cs (10)
251
public int Run(
Window
window)
924
public
Window
MainWindow
1775
internal int RunInternal(
Window
window)
1831
Window
win = obj as
Window
;
2534
Window
w = root as
Window
;
2549
if (!((
Window
)window).IsDisposed)
2551
((
Window
)window).Show();
2791
private
Window
_mainWindow;
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (5)
25
public WindowAutomationPeer(
Window
owner): base(owner)
46
Window
window = (
Window
)Owner;
79
Window
window = (
Window
)Owner;
src\Framework\System\Windows\Controls\Button.cs (1)
281
MS.Internal.Commands.CommandHelpers.ExecuteCommand(
Window
.DialogCancelCommand, null, this);
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2275
Window
wnd = null;
src\Framework\System\Windows\Controls\Image.cs (1)
416
Image.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(Image));
src\Framework\System\Windows\Controls\Page.cs (3)
56
Window
.IWindowServiceProperty.OverrideMetadata(
669
(Parent is
Window
) ||
722
if ((parent is
Window
) || (parent is Frame))
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
805
Window
.AllowsTransparencyProperty.AddOwner(typeof(Popup),
src\Framework\System\Windows\Controls\Primitives\ResizeGrip.cs (5)
52
Window
.IWindowServiceProperty.OverrideMetadata(
81
rg.OnWindowServiceChanged(e.OldValue as
Window
, e.NewValue as
Window
);
90
private void OnWindowServiceChanged(
Window
oldWindow,
Window
newWindow)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
659
Window
window =
Window
.GetWindow(_textEditor.TextView.RenderScope);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
40
HwndHost.DpiChangedEvent =
Window
.DpiChangedEvent.AddOwner(typeof(HwndHost));
src\Framework\System\Windows\Interop\WindowInteropHelper.cs (2)
44
public WindowInteropHelper(
Window
window)
161
private
Window
_window;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
831
case 739: t = () => typeof(
Window
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
6193
Type type = typeof(System.Windows.
Window
);
6194
DependencyProperty dp = System.Windows.
Window
.ContentProperty;
6196
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7035
Type type = typeof(System.Windows.
Window
);
7036
DependencyProperty dp = System.Windows.
Window
.ResizeModeProperty;
7038
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7052
Type type = typeof(System.Windows.
Window
);
7053
DependencyProperty dp = System.Windows.
Window
.WindowStateProperty;
7055
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
7069
Type type = typeof(System.Windows.
Window
);
7070
DependencyProperty dp = System.Windows.
Window
.TitleProperty;
7072
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
8123
Type type = typeof(System.Windows.
Window
);
8124
DependencyProperty dp = System.Windows.
Window
.AllowsTransparencyProperty;
8126
this.GetXamlType(typeof(System.Windows.
Window
)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11274
typeof(System.Windows.
Window
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6283
case KnownElements.Window: t = typeof(System.Windows.
Window
); break;
src\Framework\System\Windows\MessageBox.cs (6)
323
Window
owner,
344
Window
owner,
365
Window
owner,
385
Window
owner,
403
public static MessageBoxResult Show(
Window
owner, string messageBoxText, string caption)
418
public static MessageBoxResult Show(
Window
owner, string messageBoxText)
src\Framework\System\Windows\Navigation\NavigationService.cs (5)
4103
Window
window = null;
4110
if (host != null && (window =
Window
.GetWindow(host)) != null)
4112
dobj.SetValue(
Window
.IWindowServiceProperty, window);
4135
dobj.ClearValue(
Window
.IWindowServiceProperty);
4264
bp is
Window
)
src\Framework\System\Windows\Shell\WindowChrome.cs (4)
71
var
window = (
Window
)d;
92
public static WindowChrome GetWindowChrome(
Window
window)
100
public static void SetWindowChrome(
Window
window, WindowChrome chrome)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (10)
38
private
Window
_window;
170
var
w = (
Window
)d;
185
private void _SetWindow(
Window
window)
202
Utility.AddDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
203
Utility.AddDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
254
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.TemplateProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
255
Utility.RemoveDependencyPropertyChangeListener(_window,
Window
.FlowDirectionProperty, _OnWindowPropertyChangedThatRequiresTemplateFixup);
280
public static WindowChromeWorker GetWindowChromeWorker(
Window
window)
287
public static void SetWindowChromeWorker(
Window
window, WindowChromeWorker chrome)
src\Framework\System\Windows\Standard\Utilities.cs (1)
30
private static readonly Version _presentationFrameworkVersion = Assembly.GetAssembly(typeof(
Window
)).GetName().Version;
src\Framework\System\Windows\SystemCommands.cs (7)
32
private static void _PostSystemCommand(
Window
window, SC command)
49
public static void CloseWindow(
Window
window)
61
public static void MaximizeWindow(
Window
window)
73
public static void MinimizeWindow(
Window
window)
85
public static void RestoreWindow(
Window
window)
99
public static void ShowSystemMenu(
Window
window, Point screenLocation)
110
internal static void ShowSystemMenuPhysicalCoordinates(
Window
window, Point physicalScreenLocation)
src\Framework\System\Windows\Window.cs (107)
74
HeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnHeightChanged)));
75
MinHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinHeightChanged)));
76
MaxHeightProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxHeightChanged)));
77
WidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnWidthChanged)));
78
MinWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMinWidthChanged)));
79
MaxWidthProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnMaxWidthChanged)));
87
VisibilityProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
89
IsTabStopProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
90
KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
91
KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
92
KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
93
FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
95
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(typeof(
Window
)));
96
_dType = DependencyObjectType.FromSystemTypeInternal(typeof(
Window
));
98
FlowDirectionProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(new PropertyChangedCallback(_OnFlowDirectionChanged)));
101
RenderTransformProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform)));
102
ClipToBoundsProperty.OverrideMetadata(typeof(
Window
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds)));
109
EventManager.RegisterClassHandler(typeof(
Window
),
113
EventManager.RegisterClassHandler(typeof(
Window
),
118
Window
.DpiChangedEvent = EventManager.RegisterRoutedEvent("DpiChanged", RoutingStrategy.Bubble,
119
typeof (System.Windows.DpiChangedEventHandler), typeof (
Window
));
604
public static
Window
GetWindow(DependencyObject dependencyObject)
615
return dependencyObject.GetValue(
Window
.IWindowServiceProperty) as
Window
;
634
typeof(
Window
),
637
(d, e) => ((
Window
)d).OnTaskbarItemInfoChanged(e),
808
typeof(
Window
),
831
if (!((
Window
) d).IsSourceWindowNull)
845
DependencyProperty.Register("Title", typeof(String), typeof(
Window
),
881
typeof(
Window
),
943
typeof(
Window
),
991
Canvas.TopProperty.AddOwner(typeof(
Window
),
1042
Canvas.LeftProperty.AddOwner(typeof(
Window
),
1191
typeof(
Window
),
1228
= DependencyProperty.RegisterReadOnly("IsActive", typeof(bool), typeof(
Window
),
1271
public
Window
Owner
1463
DependencyProperty.Register("WindowStyle", typeof(WindowStyle), typeof(
Window
),
1504
if (!((
Window
)d).IsSourceWindowNull)
1507
((
Window
)d).VerifyConsistencyWithAllowsTransparency((WindowStyle)value);
1519
DependencyProperty.Register("WindowState", typeof(WindowState), typeof(
Window
),
1561
DependencyProperty.Register("ResizeMode", typeof(ResizeMode), typeof(
Window
),
1604
typeof(
Window
),
1638
typeof(
Window
),
1696
add { AddHandler(
Window
.DpiChangedEvent, value); }
1697
remove { RemoveHandler(
Window
.DpiChangedEvent, value); }
1779
/// this <see cref="
Window
"/> object is modified
1817
RaiseEvent(new DpiChangedEventArgs(oldDpi, newDpi,
Window
.DpiChangedEvent, this));
3417
internal static readonly RoutedCommand DialogCancelCommand = new RoutedCommand("DialogCancel", typeof(
Window
));
3642
CommandManager.RegisterClassCommandBinding(typeof(
Window
), binding);
3657
Window
w = target as
Window
;
5257
Window
w = (
Window
)d;
5283
Window
w = (
Window
)d;
5301
Window
w = (
Window
)d;
5372
Window
w = (
Window
)d;
5509
Window
w = (
Window
)d;
5540
Window
w = (
Window
)d;
5574
Window
w = (
Window
)d;
5598
Window
w = (
Window
)d;
5905
Window
w = d as
Window
;
5916
Window
w = d as
Window
;
5977
Window
w = d as
Window
;
6004
Window
w = d as
Window
;
6043
Window
w = d as
Window
;
6081
Window
w = d as
Window
;
6102
Window
w = d as
Window
;
6143
Window
w = d as
Window
;
6348
Window
w = d as
Window
;
6385
Window
w = d as
Window
;
6424
Window
w = d as
Window
;
6460
Window
w = d as
Window
;
6545
Window
w = d as
Window
;
6570
((
Window
)d).VerifyApiSupported();
6577
Window
w = d as
Window
;
7409
Window
window = sender as
Window
;
7420
Window
window = sender as
Window
;
7608
private
Window
_ownerWindow; // owner window
7768
= DependencyProperty.RegisterAttached("IWindowService", typeof(IWindowService), typeof(
Window
),
8237
static internal HwndStyleManager StartManaging(
Window
w, int Style, int StyleEx )
8250
private HwndStyleManager(
Window
w, int Style, int StyleEx )
8302
private
Window
_window;
8313
/// Initially, an HWND created in <see cref="
Window
"/> in a Per-Monitor Aware process may not
src\Framework\System\Windows\WindowCollection.cs (6)
60
public
Window
this[int index]
64
return _list[index] as
Window
;
106
public void CopyTo(
Window
[] array, int index)
165
internal void Remove(
Window
win)
181
internal int Add (
Window
win)
189
internal bool HasItem(
Window
win)
src\Shared\MS\Internal\SecurityHelper.cs (1)
1176
System.Windows.
Window
parent,
System.Activities.Presentation (19)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
62
EventManager.RegisterClassHandler(typeof(
Window
), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandleGotKeyboardFocusEvent), true);
65
EventManager.RegisterClassHandler(typeof(
Window
), Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandlePreviewGotKeyboardFocus), true);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
214
if (selectedVisual != null && !typeof(
Window
).IsAssignableFrom(_displayedSelection.PrimarySelection.View.GetType()))
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (3)
155
var
parentWindow = VisualTreeUtils.FindVisualAncestor<
Window
>(this);
171
((
Window
)s).DialogResult = false;
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (4)
40
public bool TrySetWindowOwner(DependencyObject source,
Window
target)
49
Window
owner =
Window
.GetWindow(source);
140
internal static void TrySetWindowOwner(DependencyObject owner, EditingContext editingContext,
Window
wnd)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
738
void SetWindowOwner(
Window
wnd)
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (5)
14
public static void ShowContextHelpButton(this
Window
window)
29
public static void HideMinMaxButton(this
Window
window)
50
public static void AddWindowsHook(this
Window
window, HwndSourceHook wmHandler)
57
public static void RemoveWindowsHook(this
Window
window, HwndSourceHook wmHandler)
64
public static void HideIcon(this
Window
window)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (2)
200
Window
ownerWindow =
Window
.GetWindow(this.view);
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
144
wnd.Closed += (s, e) => { this.OnWorkflowElementDialogClosed(((
Window
)s).DialogResult); };