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