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);
98
args.
Source
= commandTarget;
System\Windows\Input\Command\CommandManager.cs (2)
511
canExecuteArgs.
Source
= sender;
518
executedArgs.
Source
= sender;
System\Windows\Input\KeyboardDevice.cs (6)
280
previewLostFocus.
Source
= _focus;
297
previewGotFocus.
Source
= newFocus;
320
acquireFocus.
Source
= newFocus;
330
acquireFocus.
Source
= newFocus;
465
lostFocus.
Source
= oldFocus;
473
gotFocus.
Source
= _focus;
System\Windows\Input\MouseDevice.cs (2)
1128
lostCapture.
Source
= oldMouseCapture;
1136
gotCapture.
Source
= _mouseCapture;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1049
lostCapture.
Source
= oldStylusCapture;
1056
gotCapture.
Source
= _stylusCapture;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
630
lostCapture.
Source
= oldStylusCapture;
637
gotCapture.
Source
= _stylusCapture;
System\Windows\Input\TextCompositionManager.cs (6)
315
textargs.
Source
= composition.Source;
340
textargs.
Source
= composition.Source;
366
textargs.
Source
= composition.Source;
525
text.
Source
= textArgs.TextComposition.Source;
538
text.
Source
= textArgs.TextComposition.Source;
551
text.
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)
2317
args.
Source
= sender;
2324
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)
273
args.
Source
= this;
System\Windows\Controls\Frame.cs (1)
696
e.
Source
=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
466
newEvent.
Source
=this;
System\Windows\Controls\Primitives\Selector.cs (1)
1772
selectionChanged.
Source
=this;
System\Windows\Controls\ScrollViewer.cs (1)
2407
args.
Source
= this;
System\Windows\Controls\UserControl.cs (1)
41
e.
Source
=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9449
e.
Source
= this;
System\Windows\Documents\Hyperlink.cs (1)
588
navigateArgs.
Source
= sourceElement;
System\Windows\FrameworkContentElement.cs (3)
1260
args.
Source
=this;
1328
args.
Source
= (route.PeekBranchSource());
1360
args.
Source
= (visualParent);
System\Windows\FrameworkElement.cs (3)
2845
args.
Source
=this;
2909
args.
Source
=route.PeekBranchSource();
2960
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)
423
_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.
Source
, "", TextCompositionAutoComplete.Off, keyArgs.Device);
648
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)
1651
if (args.
Source
== null)
1794
if (e == args.
Source
)
2247
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)
1588
DependencyObject source = e.
Source
as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1057
Thumb source = args.
Source
as Thumb;
1080
Thumb source = args.
Source
as Thumb;
System\Windows\Controls\TabItem.cs (1)
272
if (e.
Source
== this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
637
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)
525
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
578
if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.
Source
))
System\Windows\FrameworkContentElement.cs (3)
1257
DependencyObject logicalSource = args.
Source
as DependencyObject;
1332
route.AddSource(args.
Source
);
1356
route.PushBranchNode(this, args.
Source
);
System\Windows\FrameworkElement.cs (3)
2842
DependencyObject logicalSource = args.
Source
as DependencyObject;
2913
route.AddSource(args.
Source
);
2956
route.PushBranchNode(this, args.
Source
);
System\Windows\Input\KeyboardNavigation.cs (2)
3207
EnableKeyboardCues(keyEventArgs.
Source
as DependencyObject, true);
3208
keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.
Source
);