[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Collapse]Navigation Controls
   [Collapse]Navigation Bar
     Save and Restore Layout
       How to: Apply Alpha Blending to the Control's Background
       How to: Assign Images to Group Captions and Contained Links
       How to: Change the Navbar Control's View
       How to: Change the Navbar Control's View Type
       How to: Create and Modify the Control's Large Image List
       How to: Create and Modify the Control's Small Image List
       How to: Custom Paint Group Captions
       How to: Custom Paint Hints
       How to: Custom Paint Links
       How to: Custom Paint the Control's Background
       How to: Custom Paint the Group's Client Background
       How to: Custom Paint the Group's Client Foreground
       How to: Customize Display Information via Custom Draw Events
       How to: Iterate Through Available Paint Styles
      Responding to User Clicks at Runtime
    [Expand]Member Tables
     NavBarControl to AccondionControl Converter
   [Expand]Accordion Control
    Navigation Frame and Tab Pane
    Navigation Pane
    Tile Bar
   [Expand]TileNav Pane
    WindowsUI Button Panel
   [Expand]Office Navigation Bar
   [Expand]Tile Control
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Custom Paint Links

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E4128.

The following sample code handles the NavBarControl.CustomDrawLink event to custom paint links. Links are painted differently in the hot tracked and pressed states.

The image below shows a custom painted hot tracked link:

Is this topic helpful?​​​​​​​