XAML for Windows Embedded Error Messages (Compact 2013)

3/28/2014

XAML for Windows Embedded provides the following error messages:

Error message

Description

XR_E_ABSTRACT_BASE_CLASS

An attempt was made to create an instance of an abstract base class. You must use the interface identifier (IID) of a derived class.

XR_E_COLLECTION_DUPLICATE_NAME

An element with the same name already exists in this collection.

XR_E_COLLECTION_ELEMENT_ALREADY_ASSOCIATED

This element is already associated with another collection. You must first remove it from the other collection.

XR_E_DUPLICATE_REGISTRATION

An attempt was made to register a custom control with a name that already exists.

XR_E_ELEMENT_NOT_CREATED

Before the PFN_CREATE_CONTROL function finished creating a C++ control from the element, IXRFrameworkElement::FindName was called with pName set to the name of a custom control that is a parsed <UserControl> root element.

XR_E_ELEMENT_NOT_FOUND

The method was unable to locate the type requested.

XR_E_INVALID_OBJECT

The input parameter is not a XAML for Windows Embedded object.

XR_E_INVALID_PROPERTY

The method was unable to locate the property requested.

XR_E_INVALID_ROOT_FOR_CREATING_HOST

An invalid root is passed into pElementTree to create a host. An invalid root can be a child element or a root that already belongs to a valid graphical scene.

XR_E_INVALID_STATE

The method was called on an object in an invalid state, such as a host that was already destroyed, or a dialog that was closed without calling EndDialog.

XR_E_INVALID_THREAD_ACCESS

The method was called from a thread other than the thread on which the system was initialized. A visual host can only be accessed from the thread that it was created on. Most XAML for Windows Embedded APIs can only be accessed from a single thread.

XR_E_NOT_AN_ATTACHED_PROPERTY

The specified dependency property cannot be resolved because it is not an attached property.

XR_E_NOT_INITIALIZED

XamlRuntimeInitialize has not yet been successfully called.

XR_E_NOT_SUPPORTED

The action is not supported by XAML for Windows Embedded.

XR_E_PARSER_ATTRIBUTE_OUT_OF_RANGE

The value for this attribute is out of the acceptable range.

XR_E_PARSER_ATTRIBUTE_READONLY

This attribute is read-only and cannot be set in XAML.

XR_E_PARSER_FAILED_RESOURCE_FIND

The static resource defined in a resource dictionary in XAML could not be resolved.

XR_E_PARSER_INVALID_ATTRIBUTE

Both x:Name and Name cannot be specified on an element.

XR_E_PARSER_INVALID_ATTRIBUTE_VALUE

The value for this attribute is invalid.

XR_E_PARSER_INVALID_CONTENT

The content for this element is invalid.

XR_E_PARSER_INVALID_PROPERTY

The property that is being parsed is invalid in this context.

XR_E_PARSER_MISSING_DEFAULT_NAMESPACE

The root element of the source XAML is missing the default namespace declaration.

XR_E_PARSER_MULTIPLE_PROPERTY_ELEMENT_VALUES

There are multiple property element values for the given element. For example, the following XAML code generates this error:

<a>

<a.b>text1</a.b>

<a.b>text2</a.b>

</a>

XR_E_PARSER_RESOURCE_KEY_AND_NAME_SET

Both x:Key and x:Name attributes cannot be set in this element inside a resource dictionary.

XR_E_PARSER_TEXT_CONTENT_UNSUPPORTED

This element cannot contain text.

XR_E_PARSER_UNKNOWN_ATTRIBUTE

The attribute that is being parsed is unknown to XAML for Windows Embedded.

XR_E_PARSER_UNKNOWN_ELEMENT

The element that is being parsed is unknown to XAML for Windows Embedded.

XR_E_PARSER_UNKNOWN_NAMESPACE

The element or attribute that is being parsed belongs to an unknown namespace.

XR_E_STORYBOARD_BEGIN_ANIMATION_COMPOSITION

XAML for Windows Embedded cannot compose this animation while its target property is currently being animated. End the current animation first; for example, by calling IXRTimeline::SetDuration.

XR_E_STORYBOARD_BEGIN_INCOMPATIBLE_TYPE

XAML for Windows Embedded cannot begin this storyboard. There is no conversion available between the target properties and object.

XR_E_STORYBOARD_BEGIN_INVALID_KEYTIME

Invalid key time specified for the beginning of this storyboard.

XR_E_STORYBOARD_BEGIN_INVALID_PROPERTY

XAML for Windows Embedded cannot begin this storyboard. The property to be animated is invalid.

XR_E_STORYBOARD_BEGIN_INVALID_TARGET

XAML for Windows Embedded cannot begin this storyboard. The specified target is invalid.

XR_E_STORYBOARD_BEGIN_NO_TARGET

XAML for Windows Embedded cannot begin this storyboard. There is no target to animate.

XR_E_STORYBOARD_MODIFY_ACTIVE_ANIMATION

XAML for Windows Embedded cannot modify this active animation.

XR_E_STORYBOARD_MUST_BE_ROOT 

Storyboard must be the root element of this timeline collection.

XR_E_STORYBOARD_SKIPTOFILL_NO_DURATION

The duration specified for this skip-to-fill operation is invalid.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Reference