VisualElement structure (xamlom.h)

Represents a XAML element in the Live Visual Tree in Microsoft Visual Studio.

Syntax

typedef struct VisualElement {
  InstanceHandle Handle;
  SourceInfo     SrcInfo;
  BSTR           Type;
  BSTR           Name;
  unsigned int   NumChildren;
} VisualElement;

Members

Handle

A handle to the object.

SrcInfo

Information about the XAML source document.

Type

The type of the object.

Name

The name of the XAML element, if it has an x:Name defined in markup.

NumChildren

The number of children the XAML element has.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Header xamlom.h