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