Returns such a theme type, which is actual for the application, by using safe method without exceptions.

Namespace: Elysium
Assembly: Elysium (in Elysium.dll) Version: 2.0.976.4 (2.0.976.4)

Syntax

C#
public static bool TryGetTheme(
	this Application reference,
	out Theme theme
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function TryGetTheme ( 
	reference As Application,
	<OutAttribute> ByRef theme As Theme
) As Boolean

Parameters

reference
Type: System.Windows..::..Application
An instance of the apllication, whose theme type is needed to get.
theme
Type: Elysium..::..Theme%
An actual theme type for the application.

Return Value

Type: Boolean
True, if method succeeded, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Application. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also