Compartilhar via


IXRVisualStateGroup::SetStates (Compact 2013)

3/28/2014

This method sets the collection of mutually exclusive IXRVisualState objects for this visual-state group.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetStates(
    __in IXRVisualStateCollection* pStates
) = 0;

Parameters

Return Value

Returns an HRESULT that indicates success or failure.

Returns XR_E_INVALID_OBJECT if pVisualStates is not a XAML for Windows Embedded object.

.NET Framework Equivalent

System.Windows.VisualStateGroups.States

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRVisualStateGroup
IXRVisualStateGroup::GetStates