49 writes to Source
PresentationCore (32)
System\Windows\EventRoute.cs (4)
167args.Source=source; 169args.Source=newSource; 241args.Source=source; 243args.Source=newSource;
System\Windows\Input\Command\CommandBinding.cs (1)
159Source = e.OriginalSource
System\Windows\Input\Command\CommandDevice.cs (2)
63input.Source = GetSourceFromDevice(rawAppCommandInputReport.Device); 98args.Source = commandTarget;
System\Windows\Input\Command\CommandManager.cs (2)
511canExecuteArgs.Source = sender; 518executedArgs.Source = sender;
System\Windows\Input\KeyboardDevice.cs (6)
280previewLostFocus.Source= _focus; 297previewGotFocus.Source= newFocus; 320acquireFocus.Source= newFocus; 330acquireFocus.Source= newFocus; 465lostFocus.Source= oldFocus; 473gotFocus.Source= _focus;
System\Windows\Input\MouseDevice.cs (2)
1128lostCapture.Source= oldMouseCapture; 1136gotCapture.Source= _mouseCapture;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1049lostCapture.Source = oldStylusCapture; 1056gotCapture.Source = _stylusCapture;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
630lostCapture.Source = oldStylusCapture; 637gotCapture.Source = _stylusCapture;
System\Windows\Input\TextCompositionManager.cs (6)
315textargs.Source= composition.Source; 340textargs.Source= composition.Source; 366textargs.Source= composition.Source; 525text.Source= textArgs.TextComposition.Source; 538text.Source= textArgs.TextComposition.Source; 551text.Source= textArgs.TextComposition.Source;
System\Windows\Input\TouchDevice.cs (3)
605e.Source = oldCapture; 614e.Source = captured; 933touchEventArgs.Source = element;
System\Windows\UIElement.cs (2)
2317args.Source = sender; 2324args.Source = args.OriginalSource;
PresentationFramework (17)
System\Windows\Controls\ContextMenuService.cs (1)
455Source = source;
System\Windows\Controls\Control.cs (2)
567doubleClick.Source = e.OriginalSource; // Set OriginalSource because initially is null 574doubleClick.Source = e.OriginalSource; // Set OriginalSource because initially is null
System\Windows\Controls\Expander.cs (1)
273args.Source = this;
System\Windows\Controls\Frame.cs (1)
696e.Source=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
466newEvent.Source=this;
System\Windows\Controls\Primitives\Selector.cs (1)
1772selectionChanged.Source=this;
System\Windows\Controls\ScrollViewer.cs (1)
2407args.Source = this;
System\Windows\Controls\UserControl.cs (1)
41e.Source=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9449e.Source = this;
System\Windows\Documents\Hyperlink.cs (1)
588navigateArgs.Source = sourceElement;
System\Windows\FrameworkContentElement.cs (3)
1260args.Source=this; 1328args.Source = (route.PeekBranchSource()); 1360args.Source = (visualParent);
System\Windows\FrameworkElement.cs (3)
2845args.Source=this; 2909args.Source=route.PeekBranchSource(); 2960args.Source=visualParent;
60 references to Source
PresentationCore (13)
System\Windows\EventRoute.cs (2)
104/// <see cref="RoutedEventArgs.Source"/> 127if (args.Source == null)
System\Windows\Input\Command\CommandBinding.cs (1)
162canExecuteArgs.OverrideSource(e.Source);
System\Windows\Input\InputManager.cs (1)
743DependencyObject eventSource = input.Source as DependencyObject;
System\Windows\Input\TextCompositionManager.cs (2)
423_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device); 648TextComposition 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)
1651if (args.Source == null) 1794if (e == args.Source) 2247object preservedSource = args.Source;
PresentationFramework (47)
System\Windows\Controls\Control.cs (2)
568doubleClick.OverrideSource(e.Source); 575doubleClick.OverrideSource(e.Source);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
408GridViewColumnHeader header = e.Source as GridViewColumnHeader;
System\Windows\Controls\MenuItem.cs (1)
1588DependencyObject source = e.Source as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1057Thumb source = args.Source as Thumb; 1080Thumb source = args.Source as Thumb;
System\Windows\Controls\TabItem.cs (1)
272if (e.Source == this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
637UIElement currentFocusElement = e.Source as UIElement;
System\windows\Documents\TextEditorSelection.cs (29)
148if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 183if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 199if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 215if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 231if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 245if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 337if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 427if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 482if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 536if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 656if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 773if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 825if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 877if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 905if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 941if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 957if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 972if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 988if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1002if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1174if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1298if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1339if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1383if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1479if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1577if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1622if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1710if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1738if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source))
System\windows\Documents\TextEditorTyping.cs (2)
525if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) 578if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source))
System\Windows\FrameworkContentElement.cs (3)
1257DependencyObject logicalSource = args.Source as DependencyObject; 1332route.AddSource(args.Source); 1356route.PushBranchNode(this, args.Source);
System\Windows\FrameworkElement.cs (3)
2842DependencyObject logicalSource = args.Source as DependencyObject; 2913route.AddSource(args.Source); 2956route.PushBranchNode(this, args.Source);
System\Windows\Input\KeyboardNavigation.cs (2)
3207EnableKeyboardCues(keyEventArgs.Source as DependencyObject, true); 3208keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.Source);