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)
924HandleAfterBeginInit(args.Instance, ref rootObject, container, feContainer, nameScope, nameEnumerator); 927XamlSourceInfoHelper.SetXamlSourceInfo(args.Instance, args, null); 934HandleBeforeProperties(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; 106XamlSourceInfoHelper.SetXamlSourceInfo(args.Instance, args, baseUri); 108DependencyObject dObject = args.Instance as DependencyObject; 117stack.CurrentFrame.Instance = args.Instance; 121if (args.Instance is System.Windows.ResourceDictionary rd) 125else if (args.Instance is System.Windows.Controls.Frame frame) 129else if (args.Instance is System.Windows.Navigation.NavigationWindow nw)
System\Windows\Markup\XamlReader.cs (3)
364rootObject = args.Instance; 368UIElement uiElement = args.Instance as UIElement; 374DependencyObject 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);