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)
921
HandleAfterBeginInit(args.
Instance
, ref rootObject, container, feContainer, nameScope, nameEnumerator);
924
XamlSourceInfoHelper.SetXamlSourceInfo(args.
Instance
, args, null);
931
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;
103
XamlSourceInfoHelper.SetXamlSourceInfo(args.
Instance
, args, baseUri);
105
DependencyObject dObject = args.
Instance
as DependencyObject;
114
stack.CurrentFrame.Instance = args.
Instance
;
118
if (args.
Instance
is System.Windows.ResourceDictionary rd)
122
else if (args.
Instance
is System.Windows.Controls.Frame frame)
126
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;
371
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
);