public NativeComponentAdapter(NativeComponentRenderer renderer, IElementHandler closestPhysicalParent, IElementHandler knownTargetElement = null)
        {
            Renderer = renderer ?? throw new ArgumentNullException(nameof(renderer));
            _closestPhysicalParent = closestPhysicalParent;
            _targetElement         = knownTargetElement;

            // Assign unique counter value. This *should* all be done on one thread, but just in case, make it thread-safe.
            _debugInstanceCounterValue = Interlocked.Increment(ref DebugInstanceCounter);
        }
예제 #2
0
 public ElementHandlerFactoryContext(NativeComponentRenderer renderer, IElementHandler parentHandler, IComponent component)
 {
     Renderer      = renderer ?? throw new ArgumentNullException(nameof(renderer));
     ParentHandler = parentHandler;
     Component     = component;
 }