AnimatedIcon.SetState(DependencyObject, String) Method

Definition

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

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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);
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