The library ships with two predefined skins - "Vista" and "MacOS". These are contained as an embedded resources within the Nevron.UI.WinForm.Skins.dll assembly. The following code demonstrates how to load a predefined NSkin instance:
C# |
Copy Code
|
---|---|
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; } |
Visual Basic |
Copy Code
|
---|---|
Dim resource As NSkinResource = New NSkinResource() resource.ResourceType = SkinResourceType.GlobalAssembly resource.AssemblyName = "Nevron.UI.WinForm.Skins" resource.SkinName = "Vista" Dim skin As NSkin = New NSkin() If skin.Load(resource) Than NSkinManager.Instance.Skin = skin End If |