Version

GetOriginalTool Method

Returns the original tool from which the specified tool instance was cloned.
Syntax
'Declaration
 
Public Shared Function GetOriginalTool( _
   ByVal tool As FrameworkElement _
) As FrameworkElement
public static FrameworkElement GetOriginalTool( 
   FrameworkElement tool
)

Parameters

tool
An instance of a tool to be evaluated

Return Value

If the tool was cloned from an instance of another tool then that original tool will be returned. If the tool was not cloned from another tool then the tool will be returned.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe tool is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also