Share via


AnimatedIcon.GetState(DependencyObject) Method

Definition

Retrieves 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 Platform::String ^ GetState(DependencyObject ^ object);
 static winrt::hstring GetState(DependencyObject const& object);
public static string GetState(DependencyObject object);
Public Shared Function GetState (object As DependencyObject) As String

Parameters

object
DependencyObject

The object from which the property value is retrieved.

Returns

String

Platform::String

winrt::hstring

The current 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