Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NItemsControl Class / BeforePaint Event


In This Topic
    BeforePaint Event
    In This Topic
    Fired before an actual paint operation and after the paint context is created. This allows you to directly modify the paint context if needed. Note that the EnableBeforePaintEvent flag should be set to true in order to receive the notification.
    Syntax
    'Declaration
     
    
    Public Event BeforePaint As NLightUIBeginPaintHandler
    'Usage
     
    
    Dim instance As NItemsControl
    Dim handler As NLightUIBeginPaintHandler
     
    AddHandler instance.BeforePaint, handler
    public event NLightUIBeginPaintHandler BeforePaint
    Event Data

    The event handler receives an argument of type NLightUIBeginPaintEventArgs containing data related to this event. The following NLightUIBeginPaintEventArgs properties provide information specific to this event.

    PropertyDescription
     
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also