49 writes to Source
PresentationCore (32)
System\Windows\EventRoute.cs (4)
167
args.
Source
=source;
169
args.
Source
=newSource;
241
args.
Source
=source;
243
args.
Source
=newSource;
System\Windows\Input\Command\CommandBinding.cs (1)
159
Source
= e.OriginalSource
System\Windows\Input\Command\CommandDevice.cs (2)
63
input.
Source
= GetSourceFromDevice(rawAppCommandInputReport.Device);
99
Source
= commandTarget
System\Windows\Input\Command\CommandManager.cs (2)
512
Source
= sender
521
Source
= sender
System\Windows\Input\KeyboardDevice.cs (6)
278
Source
= _focus
297
Source
= newFocus
322
Source
= newFocus
334
Source
= newFocus
471
Source
= oldFocus
481
Source
= _focus
System\Windows\Input\MouseDevice.cs (2)
1128
Source
= oldMouseCapture
1138
Source
= _mouseCapture
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1052
Source
= oldStylusCapture
1061
Source
= _stylusCapture
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
630
Source
= oldStylusCapture
639
Source
= _stylusCapture
System\Windows\Input\TextCompositionManager.cs (6)
316
Source
= composition.Source
343
Source
= composition.Source
371
Source
= composition.Source
532
Source
= textArgs.TextComposition.Source
547
Source
= textArgs.TextComposition.Source
562
Source
= textArgs.TextComposition.Source
System\Windows\Input\TouchDevice.cs (3)
605
e.
Source
= oldCapture;
614
e.
Source
= captured;
933
touchEventArgs.
Source
= element;
System\Windows\UIElement.cs (2)
2309
args.
Source
= sender;
2316
args.
Source
= args.OriginalSource;
PresentationFramework (17)
System\Windows\Controls\ContextMenuService.cs (1)
455
Source
= source;
System\Windows\Controls\Control.cs (2)
567
doubleClick.
Source
= e.OriginalSource; // Set OriginalSource because initially is null
574
doubleClick.
Source
= e.OriginalSource; // Set OriginalSource because initially is null
System\Windows\Controls\Expander.cs (1)
271
Source
= this
System\Windows\Controls\Frame.cs (1)
692
e.
Source
=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
467
Source
= this
System\Windows\Controls\Primitives\Selector.cs (1)
1769
Source
= this
System\Windows\Controls\ScrollViewer.cs (1)
2407
Source
= this
System\Windows\Controls\UserControl.cs (1)
41
e.
Source
=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9429
Source
= this
System\Windows\Documents\Hyperlink.cs (1)
589
Source
= sourceElement
System\Windows\FrameworkContentElement.cs (3)
1252
args.
Source
=this;
1320
args.
Source
= (route.PeekBranchSource());
1352
args.
Source
= (visualParent);
System\Windows\FrameworkElement.cs (3)
2837
args.
Source
=this;
2901
args.
Source
=route.PeekBranchSource();
2952
args.
Source
=visualParent;
60 references to Source
PresentationCore (13)
System\Windows\EventRoute.cs (2)
104
/// <see cref="RoutedEventArgs.
Source
"/>
127
if (args.
Source
== null)
System\Windows\Input\Command\CommandBinding.cs (1)
162
canExecuteArgs.OverrideSource(e.
Source
);
System\Windows\Input\InputManager.cs (1)
743
DependencyObject eventSource = input.
Source
as DependencyObject;
System\Windows\Input\TextCompositionManager.cs (2)
429
_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.
Source
, "", TextCompositionAutoComplete.Off, keyArgs.Device);
660
TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.
Source
, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\RoutedEventArgs.cs (4)
19
/// <see cref="RoutedEventArgs.
Source
"/> and <para/>
47
/// <see cref="
Source
"/> defaults to null <para/>
229
/// RoutedEvent unlike <see cref="RoutedEventArgs.
Source
"/>
249
/// Also see <see cref="RoutedEventArgs.
Source
"/>
System\Windows\UIElement.cs (3)
1643
if (args.
Source
== null)
1786
if (e == args.
Source
)
2239
object preservedSource = args.
Source
;
PresentationFramework (47)
System\Windows\Controls\Control.cs (2)
568
doubleClick.OverrideSource(e.
Source
);
575
doubleClick.OverrideSource(e.
Source
);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
408
GridViewColumnHeader header = e.
Source
as GridViewColumnHeader;
System\Windows\Controls\MenuItem.cs (1)
1584
DependencyObject source = e.
Source
as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1035
Thumb source = args.
Source
as Thumb;
1058
Thumb source = args.
Source
as Thumb;
System\Windows\Controls\TabItem.cs (1)
271
if (e.
Source
== this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
631
UIElement currentFocusElement = e.
Source
as UIElement;
System\windows\Documents\TextEditorSelection.cs (29)
148
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
183
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
199
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
215
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
231
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
245
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
337
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
427
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
482
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
536
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
656
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
773
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
825
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
877
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
905
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
941
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
957
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
972
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
988
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1002
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1174
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1298
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1339
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1383
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1479
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1577
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1622
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1710
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
1738
if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.
Source
))
System\windows\Documents\TextEditorTyping.cs (2)
516
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
569
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
System\Windows\FrameworkContentElement.cs (3)
1249
DependencyObject logicalSource = args.
Source
as DependencyObject;
1324
route.AddSource(args.
Source
);
1348
route.PushBranchNode(this, args.
Source
);
System\Windows\FrameworkElement.cs (3)
2834
DependencyObject logicalSource = args.
Source
as DependencyObject;
2905
route.AddSource(args.
Source
);
2948
route.PushBranchNode(this, args.
Source
);
System\Windows\Input\KeyboardNavigation.cs (2)
3203
EnableKeyboardCues(keyEventArgs.
Source
as DependencyObject, true);
3204
keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.
Source
);