1 type derived from PresentationSource
PresentationCore (1)
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
39
public class HwndSource :
PresentationSource
, IDisposable, IWin32Window, IKeyboardInputSink
252 references to PresentationSource
PresentationCore (158)
Core\CSharp\MS\Internal\Automation\EventMap.cs (4)
278
foreach (
PresentationSource
source in
PresentationSource
.CriticalCurrentSources)
297
PresentationSource
source = argsArray[0] as
PresentationSource
;
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
196
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(_owner);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (6)
204
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(_owner);
233
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(_owner);
518
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(_owner);
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (2)
163
s_ActiveHwndSource =
PresentationSource
.FromDependencyObject(args.Parent) as System.Windows.Interop.HwndSource;
353
(s_ActiveHwndSource !=
PresentationSource
.FromDependencyObject(d));
Core\CSharp\System\Windows\DragDrop.cs (1)
1318
private Point GetClientPointFromScreenPoint(long dragPoint,
PresentationSource
source)
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (6)
430
(scope is
PresentationSource
) && (Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt)
521
private
PresentationSource
GetSourceForElement(IInputElement element)
523
PresentationSource
source = null;
535
source =
PresentationSource
.CriticalFromVisual(containingVisual);
552
private
PresentationSource
GetActiveSource()
565
private
PresentationSource
CriticalGetActiveSource()
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (1)
58
public override
PresentationSource
ActiveSource
Core\CSharp\System\Windows\Input\FocusManager.cs (2)
162
if (
PresentationSource
.CriticalFromVisual(focusScope) !=
PresentationSource
.CriticalFromVisual(focusedElement))
Core\CSharp\System\Windows\Input\InputDevice.cs (1)
30
public abstract
PresentationSource
ActiveSource { get; }
Core\CSharp\System\Windows\Input\InputElement.cs (2)
313
HwndSource sourceFrom =
PresentationSource
.CriticalFromVisual(rootFrom) as HwndSource;
314
HwndSource sourceTo =
PresentationSource
.CriticalFromVisual(rootTo) as HwndSource;
Core\CSharp\System\Windows\Input\InputManager.cs (2)
485
public void PushMenuMode(
PresentationSource
menuSite)
509
public void PopMenuMode(
PresentationSource
menuSite)
Core\CSharp\System\Windows\Input\InputMethod.cs (2)
1757
PresentationSource
source =
PresentationSource
.CriticalFromVisual(containingVisual);
Core\CSharp\System\Windows\Input\InputReport.cs (4)
44
protected InputReport(
PresentationSource
inputSource, InputType type, InputMode mode, int timestamp)
51
_inputSource= new SecurityCriticalData<
PresentationSource
>(inputSource);
65
public
PresentationSource
InputSource
125
private SecurityCriticalData<
PresentationSource
> _inputSource;
Core\CSharp\System\Windows\Input\Keyboard.cs (2)
438
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(uie);
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (8)
101
public override
PresentationSource
ActiveSource
212
PresentationSource
source =
PresentationSource
.CriticalFromVisual(containingVisual);
679
PresentationSource
presentationSource = null;
683
presentationSource =
PresentationSource
.CriticalFromVisual(visualContainer);
788
_activeSource = new SecurityCriticalDataClass<
PresentationSource
>(keyboardInput.InputSource);
795
_activeSource = new SecurityCriticalDataClass<
PresentationSource
>(keyboardInput.InputSource);
1148
private SecurityCriticalDataClass<
PresentationSource
> _activeSource;
Core\CSharp\System\Windows\Input\KeyEventArgs.cs (4)
34
public KeyEventArgs(KeyboardDevice keyboard,
PresentationSource
inputSource, int timestamp, Key key) : base(keyboard, timestamp)
61
public
PresentationSource
InputSource
211
internal
PresentationSource
UnsafeInputSource
240
private
PresentationSource
_inputSource;
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (3)
42
_activeSource =
PresentationSource
.CriticalFromVisual(element);
75
public override
PresentationSource
ActiveSource
605
private
PresentationSource
_activeSource;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (2)
630
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual((Visual)newContainer);
Core\CSharp\System\Windows\Input\Mouse.cs (2)
482
PresentationSource
inputSource =
PresentationSource
.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
Core\CSharp\System\Windows\Input\MouseDevice.cs (21)
141
PresentationSource
activeSource = CriticalActiveSource;
175
PresentationSource
activeSource = CriticalActiveSource;
196
protected Point GetClientPosition(
PresentationSource
presentationSource)
232
public override
PresentationSource
ActiveSource
252
internal
PresentationSource
CriticalActiveSource
421
PresentationSource
captureSource =
PresentationSource
.CriticalFromVisual(containingVisual);
638
PresentationSource
relativePresentationSource = null;
647
relativePresentationSource =
PresentationSource
.CriticalFromVisual(containingVisual);
886
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(visual);
978
PresentationSource
activeSource = CriticalActiveSource;
1531
_inputSource = new SecurityCriticalDataClass<
PresentationSource
>(rawMouseInputReport.InputSource);
1539
_inputSource = new SecurityCriticalDataClass<
PresentationSource
>(rawMouseInputReport.InputSource);
2161
internal static IInputElement GlobalHitTest(bool clientUnits, Point pt,
PresentationSource
inputSource)
2170
internal static IInputElement GlobalHitTest(Point ptClient,
PresentationSource
inputSource)
2183
private static void GlobalHitTest(bool clientUnits, Point pt,
PresentationSource
inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2230
internal static IInputElement LocalHitTest(bool clientUnits, Point pt,
PresentationSource
inputSource)
2239
internal static IInputElement LocalHitTest(Point ptClient,
PresentationSource
inputSource)
2251
private static void LocalHitTest(bool clientUnits, Point pt,
PresentationSource
inputSource, out IInputElement enabledHit, out IInputElement originalHit)
2378
private SecurityCriticalDataClass<
PresentationSource
> _inputSource;
Core\CSharp\System\Windows\Input\RawAppCommandInputReport.cs (1)
47
PresentationSource
inputSource,
Core\CSharp\System\Windows\Input\RawKeyboardInputReport.cs (1)
58
PresentationSource
inputSource,
Core\CSharp\System\Windows\Input\RawMouseInputReport.cs (1)
58
PresentationSource
inputSource,
Core\CSharp\System\Windows\Input\RawTextInputReport.cs (1)
42
PresentationSource
inputSource,
Core\CSharp\System\Windows\Input\RawUIStateInputReport.cs (1)
40
PresentationSource
inputSource,
Core\CSharp\System\Windows\Input\TouchDevice.cs (7)
147
public sealed override
PresentationSource
ActiveSource
163
protected void SetActiveSource(
PresentationSource
activeSource)
312
private static IInputElement GlobalHitTest(Point pt,
PresentationSource
inputSource)
317
private static IInputElement LocalHitTest(Point pt,
PresentationSource
inputSource)
624
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(visual);
1425
private
PresentationSource
_activeSource;
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (3)
409
HwndSource hwndSource =
PresentationSource
.CriticalFromVisual(focusedDO) as HwndSource;
541
HwndSource hwndSource =
PresentationSource
.CriticalFromVisual(restoreFocusDO) as HwndSource;
564
HwndSource hwndSource =
PresentationSource
.CriticalFromVisual(restoreFocusDO) as HwndSource;
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (2)
273
HwndSource inputSource =
PresentationSource
.FromDependencyObject(containingVisual) as HwndSource;
1190
PresentationSource
source = _source.Value;
Core\CSharp\System\Windows\Interop\HwndSource.cs (4)
789
foreach (
PresentationSource
source in
PresentationSource
.CriticalCurrentSources)
2398
HwndSource mnemonicScope = (focusObject == null ? null :
PresentationSource
.CriticalFromVisual(focusObject) as HwndSource);
2733
PresentationSource
.CriticalFromVisual((DependencyObject)focusElement) != this)
Core\CSharp\System\Windows\Media\Visual.cs (4)
4787
PresentationSource
inputSource =
PresentationSource
.FromVisual(this);
4816
PresentationSource
inputSource =
PresentationSource
.FromVisual(this);
Core\CSharp\System\Windows\PresentationSource.cs (32)
110
public static
PresentationSource
FromVisual(Visual visual)
130
public static
PresentationSource
FromDependencyObject(DependencyObject dependencyObject)
504
PresentationSource
oldSource = null;
521
newRoot.SetValue(RootSourceProperty, new SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>(this));
559
PresentationSource
testSource = CriticalGetPresentationSourceFromElement(element,CachedSourceProperty);
640
internal static
PresentationSource
CriticalFromVisual(DependencyObject v)
655
internal static
PresentationSource
CriticalFromVisual(DependencyObject v, bool enable2DTo3DTransition)
662
PresentationSource
source = FindSource(v, enable2DTo3DTransition);
679
PresentationSource
ps = (
PresentationSource
)arg;
700
PresentationSource
baseSource = CriticalFromVisual(visuals[0]);
705
PresentationSource
currentSource = CriticalFromVisual(visuals[i]);
759
private static
PresentationSource
CriticalGetPresentationSourceFromElement(DependencyObject dObject,DependencyProperty dp)
761
PresentationSource
testSource;
762
SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
> tempCriticalDataWrapper =
763
(SecurityCriticalDataForMultipleGetAndSet <
PresentationSource
> )
785
SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>(
PresentationSource
.FindSource(element)));
809
private static
PresentationSource
FindSource(DependencyObject o)
823
private static
PresentationSource
FindSource(DependencyObject o, bool enable2DTo3DTransition)
825
PresentationSource
source = null;
850
PresentationSource
realSource = FindSource(doTarget);
851
PresentationSource
cachedSource = CriticalGetPresentationSourceFromElement(doTarget, CachedSourceProperty);
854
doTarget.SetValue(CachedSourceProperty, new SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>(realSource));
895
= DependencyProperty.RegisterAttached("RootSource", typeof(SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>), typeof(
PresentationSource
),
896
new PropertyMetadata((SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>)null));
907
= DependencyProperty.RegisterAttached("CachedSource", typeof(SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>), typeof(
PresentationSource
),
908
new PropertyMetadata((SecurityCriticalDataForMultipleGetAndSet<
PresentationSource
>)null));
911
private static readonly DependencyProperty GetsSourceChangedEventProperty = DependencyProperty.RegisterAttached("IsBeingWatched", typeof(bool), typeof(
PresentationSource
), new PropertyMetadata((bool)false));
916
private static readonly RoutedEvent SourceChangedEvent = EventManager.RegisterRoutedEvent("SourceChanged", RoutingStrategy.Direct, typeof(SourceChangedEventHandler), typeof(
PresentationSource
));
Core\CSharp\System\Windows\SourceChangedEventArgs.cs (10)
30
public SourceChangedEventArgs(
PresentationSource
oldSource,
31
PresentationSource
newSource)
58
public SourceChangedEventArgs(
PresentationSource
oldSource,
59
PresentationSource
newSource,
63
_oldSource = new SecurityCriticalData<
PresentationSource
>(oldSource);
64
_newSource = new SecurityCriticalData<
PresentationSource
>(newSource);
80
public
PresentationSource
OldSource
101
public
PresentationSource
NewSource
146
private SecurityCriticalData<
PresentationSource
> _oldSource;
151
private SecurityCriticalData<
PresentationSource
> _newSource;
Core\CSharp\System\Windows\UIElement.cs (3)
1604
PresentationSource
.OnVisualAncestorChanged(uie, e);
3917
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(this);
Core\CSharp\System\Windows\UIElement3D.cs (3)
299
PresentationSource
.OnVisualAncestorChanged(uie3D, e);
1111
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(this);
Shared\MS\Internal\PointUtil.cs (7)
39
public static Point ClientToRoot(Point point,
PresentationSource
presentationSource)
46
public static Point TryClientToRoot(Point point,
PresentationSource
presentationSource, bool throwOnError, out bool success)
77
public static Point RootToClient(Point point,
PresentationSource
presentationSource)
182
public static Point ClientToScreen(Point pointClient,
PresentationSource
presentationSource)
209
internal static Point ScreenToClient(Point pointScreen,
PresentationSource
presentationSource)
249
internal static Rect ElementToRoot(Rect rectElement, Visual element,
PresentationSource
presentationSource)
278
internal static Rect RootToClient(Rect rectRoot,
PresentationSource
presentationSource)
Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
57
isConnected =
PresentationSource
.CriticalFromVisual(visual ) != null;
PresentationFramework (92)
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
182
if (
PresentationSource
.FromVisual(annotatedElement) == null)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
305
HwndSource hwndSource =
PresentationSource
.CriticalFromVisual(findToolBar) as HwndSource;
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
152
HwndSource hwndSource =
PresentationSource
.CriticalFromVisual(uiScope) as HwndSource;
179
HwndSource hwndSource =
PresentationSource
.CriticalFromVisual(uiScope) as HwndSource;
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (4)
72
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(textView.RenderScope);
120
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(textView.RenderScope);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1951
HwndSource source =
PresentationSource
.CriticalFromVisual(itemsHost) as HwndSource;
src\Framework\System\Windows\Controls\Menu.cs (5)
272
System.Windows.Interop.HwndSource source =
PresentationSource
.CriticalFromVisual(this) as System.Windows.Interop.HwndSource;
371
PresentationSource
source = sender as
PresentationSource
;
372
PresentationSource
mySource = null;
374
mySource =
PresentationSource
.CriticalFromVisual(this);
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
85
PresentationSource
source =
PresentationSource
.CriticalFromVisual((DependencyObject)directlyOver);
950
return
PresentationSource
.CriticalFromVisual(uie) == null;
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
112
if (!
PresentationSource
.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (3)
916
_pushedMenuMode =
PresentationSource
.CriticalFromVisual(this);
934
PresentationSource
pushedMenuMode = _pushedMenuMode;
968
private
PresentationSource
_pushedMenuMode;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
3594
private static
PresentationSource
GetPresentationSource(Visual visual)
3596
return (visual != null ?
PresentationSource
.CriticalFromVisual(visual) : null);
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1703
if (!
PresentationSource
.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
src\Framework\System\Windows\Controls\TextAdaptor.cs (4)
383
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(visual);
424
PresentationSource
presentationSource =
PresentationSource
.CriticalFromVisual(visual);
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
1032
PresentationSource
pSource =
PresentationSource
.CriticalFromVisual(this);
src\Framework\System\windows\Documents\CaretElement.cs (4)
987
PresentationSource
source =
PresentationSource
.CriticalFromVisual(this);
1096
PresentationSource
source = null;
1097
source =
PresentationSource
.CriticalFromVisual(this);
src\Framework\System\Windows\Documents\ImmComposition.cs (5)
103
HwndSource source =
PresentationSource
.CriticalFromVisual(scope) as HwndSource;
143
PresentationSource
.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged));
172
PresentationSource
.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged));
180
PresentationSource
.AddSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged));
346
PresentationSource
.RemoveSourceChangedHandler(UiScope, new SourceChangedEventHandler(OnSourceChanged));
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
314
PresentationSource
source =
PresentationSource
.CriticalFromVisual(This.UiScope);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
688
PresentationSource
source = null;
690
source =
PresentationSource
.CriticalFromVisual(_textEditor.UiScope);
src\Framework\System\windows\Documents\TextEditorTyping.cs (3)
514
PresentationSource
.AddSourceChangedHandler(element, OnSourceChanged);
524
PresentationSource
.RemoveSourceChangedHandler(element, OnSourceChanged);
1644
IWin32Window win32Window =
PresentationSource
.CriticalFromVisual(This.UiScope) as IWin32Window;
src\Framework\System\Windows\Documents\TextStore.cs (10)
811
PresentationSource
source;
887
PresentationSource
source;
1004
PresentationSource
source;
2477
private void GetVisualInfo(out
PresentationSource
source, out IWin32Window win32Window, out ITextView view)
2479
source =
PresentationSource
.CriticalFromVisual(RenderScope);
2496
private static UnsafeNativeMethods.RECT TransformRootRectToScreenCoordinates(Point milPointTopLeft, Point milPointBottomRight, IWin32Window win32Window,
PresentationSource
source)
2735
PresentationSource
source = null;
2737
source =
PresentationSource
.CriticalFromVisual((Visual)RenderScope);
3228
win32Window =
PresentationSource
.CriticalFromVisual(RenderScope) as IWin32Window;
3232
win32Window =
PresentationSource
.FromVisual(RenderScope) as IWin32Window;
src\Framework\System\Windows\FrameworkContentElement.cs (1)
720
if (dp != null && dp.OwnerType == typeof(
PresentationSource
) && dp.Name == "RootSource")
src\Framework\System\Windows\FrameworkElement.cs (1)
2082
if (dp != null && dp.OwnerType == typeof(
PresentationSource
) && dp.Name == "RootSource")
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (1)
445
PresentationSource
.OnAncestorChanged(this);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (6)
171
PresentationSource
source =
PresentationSource
.CriticalFromVisual(d);
1169
IKeyboardInputSink inputSink =
PresentationSource
.CriticalFromVisual(visual) as IKeyboardInputSink;
3382
PresentationSource
source = null;
3387
source = (eventSourceVisual != null) ?
PresentationSource
.CriticalFromVisual(eventSourceVisual) : null;
3511
PresentationSource
source;
src\Framework\System\Windows\Interop\HwndHost.cs (14)
455
PresentationSource
source = null;
459
source =
PresentationSource
.CriticalFromVisual(this, false /* enable2DTo3DTransition */);
512
private NativeMethods.RECT CalculateAssignedRC(
PresentationSource
source)
634
PresentationSource
.RemoveSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged));
704
PresentationSource
source =
PresentationSource
.CriticalFromVisual(this, false /* enable2DTo3DTransition */);
1001
PresentationSource
.AddSourceChangedHandler(this, new SourceChangedEventHandler(OnSourceChanged));
1055
IKeyboardInputSink source =
PresentationSource
.CriticalFromVisual(this, false /* enable2DTo3DTransition */) as IKeyboardInputSink;
1156
PresentationSource
source =
PresentationSource
.CriticalFromVisual(this, false /* enable2DTo3DTransition */);
1169
PresentationSource
goingThrough3DSource =
PresentationSource
.CriticalFromVisual(this, true /* enable2DTo3DTransition */);
1292
PresentationSource
source =
PresentationSource
.CriticalFromVisual(this, false /* enable2DTo3DTransition */);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
578
case 486: t = () => typeof(
PresentationSource
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7903
typeof(System.Windows.
PresentationSource
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6030
case KnownElements.PresentationSource: t = typeof(System.Windows.
PresentationSource
); break;
src\Framework\System\Windows\SystemResources.cs (4)
1312
PresentationSource
source = (
PresentationSource
)argsArray[0];
1399
foreach (
PresentationSource
source in
PresentationSource
.CriticalCurrentSources)
src\Framework\System\Windows\VisualStateManager.cs (2)
349
controlInTree = (
PresentationSource
.CriticalFromVisual(control) != null);
357
stateGroupsRootInTree = (
PresentationSource
.CriticalFromVisual(stateGroupsRoot) != null);
src\Framework\System\Windows\Window.cs (1)
7380
if (!
PresentationSource
.UnderSamePresentationSource(e.OriginalSource as DependencyObject, this))
src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
134
PresentationSource
source =
PresentationSource
.CriticalFromVisual(relativeTo);
src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
57
isConnected =
PresentationSource
.CriticalFromVisual(visual ) != null;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (2)
247
PresentationSource
source =
PresentationSource
.FromDependencyObject(visual);