AnimatedIcon.SetState(DependencyObject, String) Method

Definition

Specifies the value of the AnimatedIcon.State attached property for the specified DependencyObject.

public:
 static void SetState(DependencyObject ^ object, Platform::String ^ value);
 static void SetState(DependencyObject const& object, winrt::hstring const& value);
public static void SetState(DependencyObject object, string value);
function setState(object, value)
Public Shared Sub SetState (object As DependencyObject, value As String)

Parameters

object
DependencyObject

The object for which the property value is specified.

value
String

Platform::String

winrt::hstring

The value of the AnimatedIcon.State attached property on the specified dependency object.

Remarks

You will typically not need to use GetState and SetState, you will just set the AnimatedIcon.State attached property.

Applies to

See also