Is it possible to add a line separator to the NavigationBar?

Answered
0
0

I am using Wisej.Web.Ext.NavigationBar.NavigationBar for my side bar.  I have a number of items in the bar.  I’d like to add a line separator between some of the items.

I don’t see anything obvious.  Is it possible?

  • You must to post comments
Best Answer
0
0

Hi

Here two ways for achive this

// Line Separators
var lineSeparator1 = new Wisej.Web.Ext.NavigationBar.NavigationBarItem
{
Height = 1,
Enabled = false,
Margin = new Padding(30, 10, 0, 10),
Text = "",
BackColor = Color.Green,
AutoSize = false
};

var lineSeparator2 = new Wisej.Web.Ext.NavigationBar.NavigationBarItem
{
Height = 1,
Enabled = false,
Text = “”,
Margin = new Padding(30, 10, 0, 10),
CssStyle = “border: solid 1px red”,
AutoSize = false
};

this.navigationBar.Items.Insert(2,lineSeparator1);
this.navigationBar.Items.Insert(3, lineSeparator2);

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.