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); 99Source = commandTarget
System\Windows\Input\Command\CommandManager.cs (2)
512Source = sender 521Source = sender
System\Windows\Input\KeyboardDevice.cs (6)
278Source = _focus 297Source = newFocus 322Source = newFocus 334Source = newFocus 471Source = oldFocus 481Source = _focus
System\Windows\Input\MouseDevice.cs (2)
1128Source = oldMouseCapture 1138Source = _mouseCapture
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1052Source = oldStylusCapture 1061Source = _stylusCapture
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
630Source = oldStylusCapture 639Source = _stylusCapture
System\Windows\Input\TextCompositionManager.cs (6)
316Source = composition.Source 343Source = composition.Source 371Source = composition.Source 532Source = textArgs.TextComposition.Source 547Source = textArgs.TextComposition.Source 562Source = textArgs.TextComposition.Source
System\Windows\Input\TouchDevice.cs (3)
605e.Source = oldCapture; 614e.Source = captured; 933touchEventArgs.Source = element;
System\Windows\UIElement.cs (2)
2309args.Source = sender; 2316args.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)
271Source = this
System\Windows\Controls\Frame.cs (1)
692e.Source=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
467Source = this
System\Windows\Controls\Primitives\Selector.cs (1)
1769Source = this
System\Windows\Controls\ScrollViewer.cs (1)
2407Source = this
System\Windows\Controls\UserControl.cs (1)
41e.Source=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9429Source = this
System\Windows\Documents\Hyperlink.cs (1)
589Source = sourceElement
System\Windows\FrameworkContentElement.cs (3)
1252args.Source=this; 1320args.Source = (route.PeekBranchSource()); 1352args.Source = (visualParent);
System\Windows\FrameworkElement.cs (3)
2837args.Source=this; 2901args.Source=route.PeekBranchSource(); 2952args.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)
429_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device); 660TextComposition 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)
1643if (args.Source == null) 1786if (e == args.Source) 2239object 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)
1584DependencyObject source = e.Source as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1035Thumb source = args.Source as Thumb; 1058Thumb source = args.Source as Thumb;
System\Windows\Controls\TabItem.cs (1)
271if (e.Source == this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
631UIElement 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)
516if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) 569if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source))
System\Windows\FrameworkContentElement.cs (3)
1249DependencyObject logicalSource = args.Source as DependencyObject; 1324route.AddSource(args.Source); 1348route.PushBranchNode(this, args.Source);
System\Windows\FrameworkElement.cs (3)
2834DependencyObject logicalSource = args.Source as DependencyObject; 2905route.AddSource(args.Source); 2948route.PushBranchNode(this, args.Source);
System\Windows\Input\KeyboardNavigation.cs (2)
3203EnableKeyboardCues(keyEventArgs.Source as DependencyObject, true); 3204keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.Source);