1 write to Instance
System.Xaml (1)
System\Xaml\Events\XamlObjectEventArgs.cs (1)
13
Instance
= instance ?? throw new ArgumentNullException(nameof(instance));
17 references to Instance
PresentationFramework (16)
System\Windows\FrameworkTemplate.cs (3)
924
HandleAfterBeginInit(args.
Instance
, ref rootObject, container, feContainer, nameScope, nameEnumerator);
927
XamlSourceInfoHelper.SetXamlSourceInfo(args.
Instance
, args, null);
934
HandleBeforeProperties(args.
Instance
, ref rootObject, container, feContainer, nameScope);
System\Windows\Markup\WpfXamlLoader.cs (9)
95
args.
Instance
== null ? 0 : PerfService.GetPerfElementID(args.
Instance
),
100
UIElement uiElement = args.
Instance
as UIElement;
106
XamlSourceInfoHelper.SetXamlSourceInfo(args.
Instance
, args, baseUri);
108
DependencyObject dObject = args.
Instance
as DependencyObject;
117
stack.CurrentFrame.Instance = args.
Instance
;
121
if (args.
Instance
is System.Windows.ResourceDictionary rd)
125
else if (args.
Instance
is System.Windows.Controls.Frame frame)
129
else if (args.
Instance
is System.Windows.Navigation.NavigationWindow nw)
System\Windows\Markup\XamlReader.cs (3)
364
rootObject = args.
Instance
;
368
UIElement uiElement = args.
Instance
as UIElement;
374
DependencyObject dObject = args.
Instance
as DependencyObject;
System\Windows\TemplateContent.cs (1)
213
Stack.CurrentFrame.Instance = args.
Instance
;
System.Xaml.Tests (1)
System\Xaml\XamlObjectEventArgsTests.cs (1)
15
Assert.Equal(1, e.
Instance
);