Share via


RenderTreeFrame.ComponentReferenceCaptureParentFrameIndex Field

Definition

If the FrameType property equals ComponentReferenceCapture, gets the index of the parent frame representing the component being captured. Otherwise, the value is undefined. WARNING: This index can only be used in the context of the frame's original render tree. If the frame is copied elsewhere, such as to the ReferenceFrames buffer of a RenderTreeDiff, then the index will not relate to entries in that other buffer. Currently there's no scenario where this matters, but if there was, we could change all of the subtree initialization logic in RenderTreeDiffBuilder to walk the frames hierarchically, then it would know the parent index at the point where it wants to initialize the ComponentReferenceCapture frame.

public: initonly int ComponentReferenceCaptureParentFrameIndex;
public readonly int ComponentReferenceCaptureParentFrameIndex;
val mutable ComponentReferenceCaptureParentFrameIndex : int
Public ReadOnly ComponentReferenceCaptureParentFrameIndex As Integer 

Field Value

Applies to