Applies to: Nevron User Interface for .NET
How to alter a predefined frame appearance?
If you are creating an empty instance of the NFrameAppearance template it will always use the "Simple" render logic. You may do the following in order to apply specific frame setting (for example office2007blue-like):
[C#]
//get an instance of a predefined template
NFrameAppearance template = NUIManager.GetPredefinedFrame(PredefinedFrame.Office2007Blue);
//adjust metrics using your code
template.LeftBorder = 3;
template.RightBorder = 3;
template.BottomBorder = 3;
template.TopBorder = 3;
//apply the template
this
.FrameAppearance = template;
[VB.NET]
'get an instance of a predefined template
Dim
template
As
NFrameAppearance = NUIManager.GetPredefinedFrame(PredefinedFrame.Office2007Blue)
'adjust metrics using your code
template.LeftBorder = 3
template.RightBorder = 3
template.BottomBorder = 3
template.TopBorder = 3
'apply the template
Me
.FrameAppearance = template
Article ID: 110, Created On: 11/1/2010, Modified: 11/15/2010