Example #1
0
 private void barManager1_HighlightedLinkChanged(object sender, DevExpress.XtraBars.HighlightedLinkChangedEventArgs e)
 {
     if (e.Link == null)
     {
         this.barStaticItem1.Caption = "";
     }
     else
     {
         this.barStaticItem1.Caption = e.Link.Item.Hint == "" ? e.Link.Item.Caption : e.Link.Item.Hint;
     }
 }
Example #2
0
 private void OnHighlightedLinkChanged(object sender, DevExpress.XtraBars.HighlightedLinkChangedEventArgs e)
 {
     if (e.Link != null && e.Link.IsLinkInMenu)
     {
         TooltipItem = e.Link;
     }
     else
     {
         TooltipItem = null;
     }
 }