c# - DevExpress NavBar: Appearance has no effect -


This question is quite DevExpress-specific.

I use an NavBar control with the standard "SkinExplorerBarView", and a want to change the format of a selected navigation link .

The background color of the "ItemPressed" and "ItemActive" appearances of the control have changed, as well as the presence of "pressing" each single item, but None of them have any effect on them when I click on them .

I also tried to set the wrong look of the LookAndFeel.UseDefaultLookAndFeel property, but that neither helped.

As proposed by Rusty, I tried to implement the CustomDrawLink event but still did not get success. (Funny, because after selecting a link, the state "selected" but "pressed" instead, so I guess not used):

  private void NbcNavigation_CustomDrawLink ( object sender, DevExpress. XtraNavBar.ViewInfo.CustomDrawNavBarElementEventArgs e) {if (e.ObjectInfo.State == DevExpress.Utils.Drawing.ObjectState.Pressed) {e.Appearance.BackColor = Color.FromArgb (192, 192, 255); }} Got on  

I used custom Dralink, but it's drawing all the hands, which is too much pain and Atircna I draw DevExpress "engine" link Just want to use another by using BackColor.

NavBar is a real pain to optimize ... mostly because it's all navigation items (style cops , Not my idea) is designed to give a normal look. You should choose one of the skin styles that work best with your gui (knowing skin / look endless system is worth the time).

Then the skin for any use CustomDrawXXX events NavBar control for custom painting needs :)

If you use the Devics skin designer and only Nevibr Can create.


Comments