Applies to: Nevron User Interface for .NET
How to load and apply a predefined Nevron skin?
The following code will load a predefined skin:
[C#]
NSkinResource resource =
new
NSkinResource();
resource.ResourceType = SkinResourceType.GlobalAssembly;
resource.AssemblyName =
"Nevron.UI.WinForm.Skins"
;
resource.SkinName =
"Vista"
;
NSkin skin =
new
NSkin();
if
(skin.Load(resource))
{
NSkinManager.Instance.Skin = skin;
}
[VB.NET]
Dim
resource
As
New
NSkinResource()
resource.ResourceType = SkinResourceType.GlobalAssembly
resource.AssemblyName =
"Nevron.UI.WinForm.Skins"
resource.SkinName =
"Vista"
Dim
skin
As
New
NSkin()
If
skin.Load(resource)
Then
NSkinManager.Instance.Skin = skin
End
If
REMARKS: You should add a reference to Nevron.UI.WinForm.Skins.dll assembly to your project and to ensure that this assembly
RESIDES in the executing folder of the application!
Article ID: 90, Created On: 10/13/2010, Modified: 11/16/2010