49 writes to Source
PresentationCore (32)
System\Windows\EventRoute.cs (4)
166
args.
Source
=source;
168
args.
Source
=newSource;
235
args.
Source
=source;
237
args.
Source
=newSource;
System\Windows\Input\Command\CommandBinding.cs (1)
158
Source
= e.OriginalSource
System\Windows\Input\Command\CommandDevice.cs (2)
62
input.
Source
= GetSourceFromDevice(rawAppCommandInputReport.Device);
98
Source
= commandTarget
System\Windows\Input\Command\CommandManager.cs (2)
511
Source
= sender
520
Source
= sender
System\Windows\Input\KeyboardDevice.cs (6)
277
Source
= _focus
296
Source
= newFocus
321
Source
= newFocus
333
Source
= newFocus
470
Source
= oldFocus
480
Source
= _focus
System\Windows\Input\MouseDevice.cs (2)
1127
Source
= oldMouseCapture
1137
Source
= _mouseCapture
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1051
Source
= oldStylusCapture
1060
Source
= _stylusCapture
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
629
Source
= oldStylusCapture
638
Source
= _stylusCapture
System\Windows\Input\TextCompositionManager.cs (6)
326
Source
= composition.Source
353
Source
= composition.Source
381
Source
= composition.Source
541
Source
= textArgs.TextComposition.Source
556
Source
= textArgs.TextComposition.Source
571
Source
= textArgs.TextComposition.Source
System\Windows\Input\TouchDevice.cs (3)
604
e.
Source
= oldCapture;
613
e.
Source
= captured;
932
touchEventArgs.
Source
= element;
System\Windows\UIElement.cs (2)
2308
args.
Source
= sender;
2315
args.
Source
= args.OriginalSource;
PresentationFramework (17)
System\Windows\Controls\ContextMenuService.cs (1)
454
Source
= source;
System\Windows\Controls\Control.cs (2)
566
doubleClick.
Source
= e.OriginalSource; // Set OriginalSource because initially is null
573
doubleClick.
Source
= e.OriginalSource; // Set OriginalSource because initially is null
System\Windows\Controls\Expander.cs (1)
270
Source
= this
System\Windows\Controls\Frame.cs (1)
691
e.
Source
=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
466
Source
= this
System\Windows\Controls\Primitives\Selector.cs (1)
1768
Source
= this
System\Windows\Controls\ScrollViewer.cs (1)
2406
Source
= this
System\Windows\Controls\UserControl.cs (1)
40
e.
Source
=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9428
Source
= this
System\Windows\Documents\Hyperlink.cs (1)
588
Source
= sourceElement
System\Windows\FrameworkContentElement.cs (3)
1251
args.
Source
=this;
1319
args.
Source
= (route.PeekBranchSource());
1351
args.
Source
= (visualParent);
System\Windows\FrameworkElement.cs (3)
2836
args.
Source
=this;
2900
args.
Source
=route.PeekBranchSource();
2951
args.
Source
=visualParent;
60 references to Source
PresentationCore (13)
System\Windows\EventRoute.cs (2)
103
/// <see cref="RoutedEventArgs.
Source
"/>
126
if (args.
Source
== null)
System\Windows\Input\Command\CommandBinding.cs (1)
161
canExecuteArgs.OverrideSource(e.
Source
);
System\Windows\Input\InputManager.cs (1)
742
DependencyObject eventSource = input.
Source
as DependencyObject;
System\Windows\Input\TextCompositionManager.cs (2)
441
_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.
Source
, "", TextCompositionAutoComplete.Off, keyArgs.Device);
669
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.
Source
, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\RoutedEventArgs.cs (4)
18
/// <see cref="RoutedEventArgs.
Source
"/> and <para/>
46
/// <see cref="
Source
"/> defaults to null <para/>
228
/// RoutedEvent unlike <see cref="RoutedEventArgs.
Source
"/>
248
/// Also see <see cref="RoutedEventArgs.
Source
"/>
System\Windows\UIElement.cs (3)
1642
if (args.
Source
== null)
1785
if (e == args.
Source
)
2238
object preservedSource = args.
Source
;
PresentationFramework (47)
System\Windows\Controls\Control.cs (2)
567
doubleClick.OverrideSource(e.
Source
);
574
doubleClick.OverrideSource(e.
Source
);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
407
GridViewColumnHeader header = e.
Source
as GridViewColumnHeader;
System\Windows\Controls\MenuItem.cs (1)
1583
DependencyObject source = e.
Source
as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1034
Thumb source = args.
Source
as Thumb;
1057
Thumb source = args.
Source
as Thumb;
System\Windows\Controls\TabItem.cs (1)
270
if (e.
Source
== this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
630
UIElement currentFocusElement = e.
Source
as UIElement;
System\windows\Documents\TextEditorSelection.cs (29)
147
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
182
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
))
244
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
336
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
426
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
481
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
535
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
655
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
772
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
824
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
876
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
904
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
940
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
956
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
971
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
987
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1001
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1173
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1297
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1338
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1382
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1478
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1576
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1621
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1709
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1737
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
System\windows\Documents\TextEditorTyping.cs (2)
515
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
568
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
System\Windows\FrameworkContentElement.cs (3)
1248
DependencyObject logicalSource = args.
Source
as DependencyObject;
1323
route.AddSource(args.
Source
);
1347
route.PushBranchNode(this, args.
Source
);
System\Windows\FrameworkElement.cs (3)
2833
DependencyObject logicalSource = args.
Source
as DependencyObject;
2904
route.AddSource(args.
Source
);
2947
route.PushBranchNode(this, args.
Source
);
System\Windows\Input\KeyboardNavigation.cs (2)
3201
EnableKeyboardCues(keyEventArgs.
Source
as DependencyObject, true);
3202
keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.
Source
);