Intersoft ClientUI Documentation
GetVisualState Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > Utility Class : GetVisualState Method






source
An element of dependency object type.
stateGroup
The state group of the visual state to be retrieved.
stateName
The visual state/transition name to be retrieved.
Gets the visual state of the specified source, group and state name.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetVisualState( _
   ByVal source As DependencyObject, _
   ByVal stateGroup As String, _
   ByVal stateName As String _
) As VisualState
Visual Basic (Usage)Copy Code
Dim source As DependencyObject
Dim stateGroup As String
Dim stateName As String
Dim value As VisualState
 
value = Utility.GetVisualState(source, stateGroup, stateName)
C# 
public static VisualState GetVisualState( 
   DependencyObject source,
   string stateGroup,
   string stateName
)
Delphi 
public function GetVisualState( 
    source: DependencyObject;
    stateGroup: String;
    stateName: String
): VisualState; static; 
JScript 
public static function GetVisualState( 
   source : DependencyObject,
   stateGroup : String,
   stateName : String
) : VisualState;
Managed Extensions for C++ 
public: static VisualState* GetVisualState( 
   DependencyObject* source,
   string* stateGroup,
   string* stateName
) 
C++/CLI 
public:
static VisualState^ GetVisualState( 
   DependencyObject^ source,
   String^ stateGroup,
   String^ stateName
) 

Parameters

source
An element of dependency object type.
stateGroup
The state group of the visual state to be retrieved.
stateName
The visual state/transition name to be retrieved.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.