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