1 write to Instance
System.Xaml (1)
System\Xaml\Events\XamlObjectEventArgs.cs (1)
12Instance = instance ?? throw new ArgumentNullException(nameof(instance));
17 references to Instance
PresentationFramework (16)
System\Windows\FrameworkTemplate.cs (3)
916HandleAfterBeginInit(args.Instance, ref rootObject, container, feContainer, nameScope, nameEnumerator); 919XamlSourceInfoHelper.SetXamlSourceInfo(args.Instance, args, null); 926HandleBeforeProperties(args.Instance, ref rootObject, container, feContainer, nameScope);
System\Windows\Markup\WpfXamlLoader.cs (9)
94args.Instance == null ? 0 : PerfService.GetPerfElementID(args.Instance), 99UIElement uiElement = args.Instance as UIElement; 102XamlSourceInfoHelper.SetXamlSourceInfo(args.Instance, args, baseUri); 104DependencyObject dObject = args.Instance as DependencyObject; 113stack.CurrentFrame.Instance = args.Instance; 117if (args.Instance is System.Windows.ResourceDictionary rd) 121else if (args.Instance is System.Windows.Controls.Frame frame) 125else if (args.Instance is System.Windows.Navigation.NavigationWindow nw)
System\Windows\Markup\XamlReader.cs (3)
363rootObject = args.Instance; 367UIElement uiElement = args.Instance as UIElement; 370DependencyObject dObject = args.Instance as DependencyObject;
System\Windows\TemplateContent.cs (1)
212Stack.CurrentFrame.Instance = args.Instance;
System.Xaml.Tests (1)
System\Xaml\XamlObjectEventArgsTests.cs (1)
15Assert.Equal(1, e.Instance);