User Tools

Site Tools


api:dk11:net:tatukgis.ndk.wpf.tgis_viewerwnd.beforepaintevent

Table of Contents

TGIS_ViewerWnd.BeforePaintEvent event

DK11 for .NET | TatukGIS.NDK.WPF.TGIS_ViewerWnd.BeforePaintEvent | Constructors | Methods | Properties | Events

BeforePaint event. Will be fired before any Paint operation.

Available also on: Delphi FMX | .NET WinForms | ActiveX.

Syntax

// C#
public event TGIS_PaintRoutedEventHandler BeforePaintEvent
{
  add {}
  remove {}
}
' VisualBasic
Public Custom Event BeforePaintEvent As TGIS_PaintRoutedEventHandler
  AddHandler(ByVal value As TGIS_PaintRoutedEventHandler)
  End AddHandler
  RemoveHandler(ByVal value As TGIS_PaintRoutedEventHandler)
  End RemoveHandler
End Event
// Oxygene
public
  event BeforePaintEvent : TGIS_PaintRoutedEventHandler add remove;

Value

Type
TGIS_PaintRoutedEventHandler

Remarks

This even can be quite costly. To maintain compatibility with the old code we guarantee proper Graphics context even on SharpDX renderer. Try to replace this event with BeforePaintRendererEvent, which is always fast.

2020/05/22 01:18