45 writes to Source
PresentationCore (28)
Core\CSharp\System\Windows\EventRoute.cs (4)
184args.Source=source; 186args.Source=newSource; 257args.Source=source; 259args.Source=newSource;
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (1)
183canExecuteArgs.Source = e.OriginalSource;
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (2)
87input.Source = GetSourceFromDevice(rawAppCommandInputReport.Device); 127args.Source = commandTarget;
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (2)
616canExecuteArgs.Source = sender; 623executedArgs.Source = sender;
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (6)
358previewLostFocus.Source= _focus; 376previewGotFocus.Source= newFocus; 400acquireFocus.Source= newFocus; 411acquireFocus.Source= newFocus; 546lostFocus.Source= oldFocus; 554gotFocus.Source= _focus;
Core\CSharp\System\Windows\Input\MouseDevice.cs (2)
1241lostCapture.Source= oldMouseCapture; 1249gotCapture.Source= _mouseCapture;
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (6)
413textargs.Source= composition.Source; 446textargs.Source= composition.Source; 479textargs.Source= composition.Source; 675text.Source= textArgs.TextComposition.Source; 688text.Source= textArgs.TextComposition.Source; 701text.Source= textArgs.TextComposition.Source;
Core\CSharp\System\Windows\Input\TouchDevice.cs (3)
664e.Source = oldCapture; 678e.Source = captured; 1015touchEventArgs.Source = element;
Core\CSharp\System\Windows\UIElement.cs (2)
2350args.Source = sender; 2357args.Source = args.OriginalSource;
PresentationFramework (17)
src\Framework\System\Windows\Controls\ContextMenuService.cs (1)
514Source = source;
src\Framework\System\Windows\Controls\Control.cs (2)
577doubleClick.Source = e.OriginalSource; // Set OriginalSource because initially is null 584doubleClick.Source = e.OriginalSource; // Set OriginalSource because initially is null
src\Framework\System\Windows\Controls\Expander.cs (1)
278args.Source = this;
src\Framework\System\Windows\Controls\Frame.cs (1)
729e.Source=this;
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
487newEvent.Source=this;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1801selectionChanged.Source=this;
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2454args.Source = this;
src\Framework\System\Windows\Controls\UserControl.cs (1)
49e.Source=this;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
9300e.Source = this;
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
615navigateArgs.Source = sourceElement;
src\Framework\System\Windows\FrameworkContentElement.cs (3)
1281args.Source=this; 1350args.Source = (route.PeekBranchSource()); 1382args.Source = (visualParent);
src\Framework\System\Windows\FrameworkElement.cs (3)
2854args.Source=this; 2918args.Source=route.PeekBranchSource(); 2969args.Source=visualParent;
71 references to Source
PresentationCore (13)
Core\CSharp\System\Windows\EventRoute.cs (2)
115/// <see cref="RoutedEventArgs.Source"/> 144if (args.Source == null)
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (1)
184canExecuteArgs.OverrideSource(e.Source);
Core\CSharp\System\Windows\Input\InputManager.cs (1)
954DependencyObject eventSource = input.Source as DependencyObject;
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (2)
564_altNumpadcomposition = new TextComposition(_inputManager, (IInputElement)keyArgs.Source, "", TextCompositionAutoComplete.Off, keyArgs.Device); 798TextComposition composition = new TextComposition(_inputManager, (IInputElement)e.StagingItem.Input.Source, inputText, TextCompositionAutoComplete.On, InputManager.Current.PrimaryKeyboardDevice);
Core\CSharp\System\Windows\RoutedEventArgs.cs (4)
23/// <see cref="RoutedEventArgs.Source"/> and <para/> 51/// <see cref="Source"/> defaults to null <para/> 241/// RoutedEvent unlike <see cref="RoutedEventArgs.Source"/> 261/// Also see <see cref="RoutedEventArgs.Source"/>
Core\CSharp\System\Windows\UIElement.cs (3)
1676if (args.Source == null) 1819if (e == args.Source) 2280object preservedSource = args.Source;
PresentationFramework (47)
src\Framework\System\Windows\Controls\Control.cs (2)
578doubleClick.OverrideSource(e.Source); 585doubleClick.OverrideSource(e.Source);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
413GridViewColumnHeader header = e.Source as GridViewColumnHeader;
src\Framework\System\Windows\Controls\MenuItem.cs (1)
1634DependencyObject source = e.Source as DependencyObject;
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1083Thumb source = args.Source as Thumb; 1106Thumb source = args.Source as Thumb;
src\Framework\System\Windows\Controls\TabItem.cs (1)
279if (e.Source == this || !IsSelected)
src\Framework\System\Windows\Controls\ToolBar.cs (1)
656UIElement currentFocusElement = e.Source as UIElement;
src\Framework\System\windows\Documents\TextEditorSelection.cs (29)
171if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 206if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 222if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 238if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 254if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 268if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 360if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 450if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 505if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 559if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 680if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 797if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 849if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 901if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 929if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 965if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 981if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 996if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1012if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1026if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1198if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1322if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1363if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1407if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1503if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1601if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1646if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1734if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source)) 1762if (This == null || !This._IsEnabled || !This._IsSourceInScope(args.Source))
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
550if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) 603if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source))
src\Framework\System\Windows\FrameworkContentElement.cs (3)
1278DependencyObject logicalSource = args.Source as DependencyObject; 1354route.AddSource(args.Source); 1378route.PushBranchNode(this, args.Source);
src\Framework\System\Windows\FrameworkElement.cs (3)
2851DependencyObject logicalSource = args.Source as DependencyObject; 2922route.AddSource(args.Source); 2965route.PushBranchNode(this, args.Source);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
3310EnableKeyboardCues(keyEventArgs.Source as DependencyObject, true); 3311keyEventArgs.Handled = OnEnterMenuMode(keyEventArgs.Source);
System.Activities.Core.Presentation (5)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (2)
173if (!object.Equals(e.Source, this)) 1066Connector clickedLine = e.Source as Connector;
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
1382Connector connector = e.Source as Connector;
System\Activities\Core\Presentation\StateDesigner.xaml.cs (2)
195Button button = e.Source as Button; 210Button button = e.Source as Button;
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (4)
554Connector connector = e.Source as Connector; 583if (connectorEditor == null || !e.Source.Equals(connectorEditor.Connector)) 587if (typeof(Connector).IsAssignableFrom(e.Source.GetType())) 589this.connectorEditor = new ConnectorEditor(this, e.Source as Connector);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
268if (null != this.searchBox && e.Source != this.searchBox)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
455ExtensionWindow window = args.Source as ExtensionWindow;