49 writes to Source
PresentationCore (32)
System\Windows\EventRoute.cs (4)
166args.Source=source; 168args.Source=newSource; 235args.Source=source; 237args.Source=newSource;
System\Windows\Input\Command\CommandBinding.cs (1)
158Source = e.OriginalSource
System\Windows\Input\Command\CommandDevice.cs (2)
62input.Source = GetSourceFromDevice(rawAppCommandInputReport.Device); 98Source = commandTarget
System\Windows\Input\Command\CommandManager.cs (2)
511Source = sender 520Source = sender
System\Windows\Input\KeyboardDevice.cs (6)
277Source = _focus 296Source = newFocus 321Source = newFocus 333Source = newFocus 470Source = oldFocus 480Source = _focus
System\Windows\Input\MouseDevice.cs (2)
1127Source = oldMouseCapture 1137Source = _mouseCapture
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (2)
1051Source = oldStylusCapture 1060Source = _stylusCapture
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
629Source = oldStylusCapture 638Source = _stylusCapture
System\Windows\Input\TextCompositionManager.cs (6)
326Source = composition.Source 353Source = composition.Source 381Source = composition.Source 541Source = textArgs.TextComposition.Source 556Source = textArgs.TextComposition.Source 571Source = textArgs.TextComposition.Source
System\Windows\Input\TouchDevice.cs (3)
604e.Source = oldCapture; 613e.Source = captured; 932touchEventArgs.Source = element;
System\Windows\UIElement.cs (2)
2308args.Source = sender; 2315args.Source = args.OriginalSource;
PresentationFramework (17)
System\Windows\Controls\ContextMenuService.cs (1)
454Source = source;
System\Windows\Controls\Control.cs (2)
566doubleClick.Source = e.OriginalSource; // Set OriginalSource because initially is null 573doubleClick.Source = e.OriginalSource; // Set OriginalSource because initially is null
System\Windows\Controls\Expander.cs (1)
270Source = this
System\Windows\Controls\Frame.cs (1)
691e.Source=this;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
466Source = this
System\Windows\Controls\Primitives\Selector.cs (1)
1768Source = this
System\Windows\Controls\ScrollViewer.cs (1)
2406Source = this
System\Windows\Controls\UserControl.cs (1)
40e.Source=this;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
9428Source = this
System\Windows\Documents\Hyperlink.cs (1)
588Source = sourceElement
System\Windows\FrameworkContentElement.cs (3)
1251args.Source=this; 1319args.Source = (route.PeekBranchSource()); 1351args.Source = (visualParent);
System\Windows\FrameworkElement.cs (3)
2836args.Source=this; 2900args.Source=route.PeekBranchSource(); 2951args.Source=visualParent;
60 references to Source
PresentationCore (13)
System\Windows\EventRoute.cs (2)
103/// <see cref="RoutedEventArgs.Source"/> 126if (args.Source == null)
System\Windows\Input\Command\CommandBinding.cs (1)
161canExecuteArgs.OverrideSource(e.Source);
System\Windows\Input\InputManager.cs (1)
742DependencyObject eventSource = input.Source as DependencyObject;
System\Windows\Input\TextCompositionManager.cs (2)
441_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device); 669TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
System\Windows\RoutedEventArgs.cs (4)
18/// <see cref="RoutedEventArgs.Source"/> and <para/> 46/// <see cref="Source"/> defaults to null <para/> 228/// RoutedEvent unlike <see cref="RoutedEventArgs.Source"/> 248/// Also see <see cref="RoutedEventArgs.Source"/>
System\Windows\UIElement.cs (3)
1642if (args.Source == null) 1785if (e == args.Source) 2238object preservedSource = args.Source;
PresentationFramework (47)
System\Windows\Controls\Control.cs (2)
567doubleClick.OverrideSource(e.Source); 574doubleClick.OverrideSource(e.Source);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
407GridViewColumnHeader header = e.Source as GridViewColumnHeader;
System\Windows\Controls\MenuItem.cs (1)
1583DependencyObject source = e.Source as DependencyObject;
System\Windows\Controls\StickyNote.cs (2)
1034Thumb source = args.Source as Thumb; 1057Thumb source = args.Source as Thumb;
System\Windows\Controls\TabItem.cs (1)
270if (e.Source == this || !IsSelected)
System\Windows\Controls\ToolBar.cs (1)
630UIElement currentFocusElement = e.Source as UIElement;
System\windows\Documents\TextEditorSelection.cs (29)
147if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 182if (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)) 244if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 336if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 426if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 481if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 535if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 655if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 772if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 824if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 876if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 904if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 940if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 956if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 971if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 987if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1001if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1173if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1297if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1338if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1382if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1478if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1576if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1621if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1709if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1737if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source))
System\windows\Documents\TextEditorTyping.cs (2)
515if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) 568if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source))
System\Windows\FrameworkContentElement.cs (3)
1248DependencyObject logicalSource = args.Source as DependencyObject; 1323route.AddSource(args.Source); 1347route.PushBranchNode(this, args.Source);
System\Windows\FrameworkElement.cs (3)
2833DependencyObject logicalSource = args.Source as DependencyObject; 2904route.AddSource(args.Source); 2947route.PushBranchNode(this, args.Source);
System\Windows\Input\KeyboardNavigation.cs (2)
3201EnableKeyboardCues(keyEventArgs.Source as DependencyObject, true); 3202keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.Source);