Hello Imanol,
In the version you have this feature is not presented yet.
You can either get the latest version or subclass NExpanderRenderer class to implement this functionality.
Here is an example implementation which uses the mentioned Colors defined in the Palette property.
public class MyNExpanderRenderer : NExpanderRenderer
{
protected override void DrawHeaderBackground(Graphics g)
{
if(m_Expander == null)
return;
NRectangle r = m_Expander.ElementBounds;
Color c1 = Palette.ControlLight;
Color c2 = Palette.ControlDark;
LinearGradientBrush br = new LinearGradientBrush(r.ToRectangle(), c1, c2, 0.0f);
GraphicsPath headerPath = GetHeaderPath();
g.FillPath(br, headerPath);
br.Dispose();
if (!m_Expander.DrawBorder)
return;
SmoothingMode mode = g.SmoothingMode;
g.SmoothingMode = SmoothingMode.AntiAlias;
Color border = Palette.ControlBorder;
Pen p = new Pen(border);
g.DrawPath(p, headerPath);
g.SmoothingMode = mode;
p.Dispose();
}
public NExpander Owner
{
get
{
return m_Expander;
}
set
{
m_Expander = value;
}
}
NExpander m_Expander;
}
You will also need to create an instance of this class set Owner property to the expander and set Renderer property of the expander to the instance.
Best Regards,
Nevron Support Team