Applies to: Nevron User Interface for .NET
How to have shadows on a NDockingPanel without using skins?
You can have shadows on a NDockingPanel without using a skin, however you should paint the panel’s frame manually. The best way to provide such behavior is by using the skin logic and providing the desired appearance. For example you may have an NSkin instance which contains only the “Docking” entries and specify all other skinnable controls that they should not use the skin logic. For example, if you have an NDockManager and NCommandBarsManager dropped on a Form you may specify the following:
[C#]
//apply the skin
NSkin myDockingSkin =
new
Skin();
If(myDockingSkin.Load(
"C:\TestSkin.xml"
))
{
NSkinManager.Instance.Skin = myDockingSkin;
}
//tell the command bars manager to discard the skinning logic:
this
.nCommandBarsManager1.EnableSkinning =
false
;
[VB.NET]
'apply the skin
Dim
myDockingSkin
As
NSkin =
New
Skin()
If
myDockingSkin.Load(C:\TestSkin.xml)
Then
NSkinManager.Instance.Skin = myDockingSkin
EndIf
'tell the command bars manager to discard the skinning logic:
Me
.nCommandBarsManager1.EnableSkinning =
False
Article ID: 188, Created On: 4/13/2011, Modified: 8/2/2011