49 writes to Source
PresentationCore (32)
System\Windows\EventRoute.cs (4)
173
args.
Source
=source;
175
args.
Source
=newSource;
247
args.
Source
=source;
249
args.
Source
=newSource;
System\Windows\Input\Command\CommandBinding.cs (1)
167
Source
= e.OriginalSource
System\Windows\Input\Command\CommandDevice.cs (2)
70
input.
Source
= GetSourceFromDevice(rawAppCommandInputReport.Device);
105
args.
Source
= commandTarget;
System\Windows\Input\Command\CommandManager.cs (2)
522
canExecuteArgs.
Source
= sender;
529
executedArgs.
Source
= sender;
System\Windows\Input\KeyboardDevice.cs (6)
289
previewLostFocus.
Source
= _focus;
306
previewGotFocus.
Source
= newFocus;
329
acquireFocus.
Source
= newFocus;
339
acquireFocus.
Source
= newFocus;
474
lostFocus.
Source
= oldFocus;
482
gotFocus.
Source
= _focus;
System\Windows\Input\MouseDevice.cs (2)
1137
lostCapture.
Source
= oldMouseCapture;
1145
gotCapture.
Source
= _mouseCapture;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1057
lostCapture.
Source
= oldStylusCapture;
1064
gotCapture.
Source
= _stylusCapture;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
633
lostCapture.
Source
= oldStylusCapture;
640
gotCapture.
Source
= _stylusCapture;
System\Windows\Input\TextCompositionManager.cs (6)
331
textargs.
Source
= composition.Source;
356
textargs.
Source
= composition.Source;
382
textargs.
Source
= composition.Source;
541
text.
Source
= textArgs.TextComposition.Source;
554
text.
Source
= textArgs.TextComposition.Source;
567
text.
Source
= textArgs.TextComposition.Source;
System\Windows\Input\TouchDevice.cs (3)
617
e.
Source
= oldCapture;
626
e.
Source
= captured;
945
touchEventArgs.
Source
= element;
System\Windows\UIElement.cs (2)
2322
args.
Source
= sender;
2329
args.
Source
= args.OriginalSource;
PresentationFramework (17)
System\Windows\Controls\ContextMenuService.cs (1)
459
Source
= source;
System\Windows\Controls\Control.cs (2)
576
doubleClick.
Source
= e.OriginalSource; // Set OriginalSource because initially is null
583
doubleClick.
Source
= e.OriginalSource; // Set OriginalSource because initially is null
System\Windows\Controls\Expander.cs (1)
277
args.
Source
= this;
System\Windows\Controls\Frame.cs (1)
708
e.
Source
=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
482
newEvent.
Source
=this;
System\Windows\Controls\Primitives\Selector.cs (1)
1781
selectionChanged.
Source
=this;
System\Windows\Controls\ScrollViewer.cs (1)
2415
args.
Source
= this;
System\Windows\Controls\UserControl.cs (1)
47
e.
Source
=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9454
e.
Source
= this;
System\Windows\Documents\Hyperlink.cs (1)
594
navigateArgs.
Source
= sourceElement;
System\Windows\FrameworkContentElement.cs (3)
1272
args.
Source
=this;
1340
args.
Source
= (route.PeekBranchSource());
1372
args.
Source
= (visualParent);
System\Windows\FrameworkElement.cs (3)
2856
args.
Source
=this;
2920
args.
Source
=route.PeekBranchSource();
2971
args.
Source
=visualParent;
60 references to Source
PresentationCore (13)
System\Windows\EventRoute.cs (2)
110
/// <see cref="RoutedEventArgs.
Source
"/>
133
if (args.
Source
== null)
System\Windows\Input\Command\CommandBinding.cs (1)
170
canExecuteArgs.OverrideSource(e.
Source
);
System\Windows\Input\InputManager.cs (1)
751
DependencyObject eventSource = input.
Source
as DependencyObject;
System\Windows\Input\TextCompositionManager.cs (2)
439
_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.
Source
, "", TextCompositionAutoComplete.Off, keyArgs.Device);
664
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.
Source
, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\RoutedEventArgs.cs (4)
25
/// <see cref="RoutedEventArgs.
Source
"/> and <para/>
53
/// <see cref="
Source
"/> defaults to null <para/>
235
/// RoutedEvent unlike <see cref="RoutedEventArgs.
Source
"/>
255
/// Also see <see cref="RoutedEventArgs.
Source
"/>
System\Windows\UIElement.cs (3)
1656
if (args.
Source
== null)
1799
if (e == args.
Source
)
2252
object preservedSource = args.
Source
;
PresentationFramework (47)
System\Windows\Controls\Control.cs (2)
577
doubleClick.OverrideSource(e.
Source
);
584
doubleClick.OverrideSource(e.
Source
);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
411
GridViewColumnHeader header = e.
Source
as GridViewColumnHeader;
System\Windows\Controls\MenuItem.cs (1)
1598
DependencyObject source = e.
Source
as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1073
Thumb source = args.
Source
as Thumb;
1096
Thumb source = args.
Source
as Thumb;
System\Windows\Controls\TabItem.cs (1)
278
if (e.
Source
== this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
646
UIElement currentFocusElement = e.
Source
as UIElement;
System\windows\Documents\TextEditorSelection.cs (29)
163
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
198
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
214
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
230
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
246
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
260
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
352
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
442
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
497
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
551
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
671
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
788
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
840
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
892
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
920
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
956
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
972
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
987
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1003
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1017
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1189
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1313
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1354
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1398
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1494
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1592
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1637
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1725
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1753
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
System\windows\Documents\TextEditorTyping.cs (2)
534
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
587
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
System\Windows\FrameworkContentElement.cs (3)
1269
DependencyObject logicalSource = args.
Source
as DependencyObject;
1344
route.AddSource(args.
Source
);
1368
route.PushBranchNode(this, args.
Source
);
System\Windows\FrameworkElement.cs (3)
2853
DependencyObject logicalSource = args.
Source
as DependencyObject;
2924
route.AddSource(args.
Source
);
2967
route.PushBranchNode(this, args.
Source
);
System\Windows\Input\KeyboardNavigation.cs (2)
3217
EnableKeyboardCues(keyEventArgs.
Source
as DependencyObject, true);
3218
keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.
Source
);