AnimatedIcon.GetState(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.