CVB.Net 15.0
Loading...
Searching...
No Matches

Mouse over info adorner. More...

Inherits TextAdorner.

Public Member Functions

 MouseOverInfoAdorner (Display adornedDisplay)
 Creates the adorner.
 

Static Public Attributes

static readonly DependencyProperty AdornerVisibilityProperty
 Backing store of the AdornerVisibility property.
 
static readonly DependencyProperty ImageLocationProperty
 Backing store for the ImageLocation property.
 
- Static Public Attributes inherited from TextAdorner
static readonly DependencyProperty FontBackgroundColorProperty
 Backing store for FontBackgroundColor property.
 
static readonly DependencyProperty FontFamilyProperty
 Backing store for the FontFamily property.
 
static readonly DependencyProperty FontShadowThicknessProperty
 Backing store for the FontShadowThickness property.
 
static readonly DependencyProperty FontSizeProperty
 Backing store for the FontSize property.
 
static readonly DependencyProperty FontStretchProperty
 Backing store of the FontStretch property.
 
static readonly DependencyProperty FontStyleProperty
 Backing store of the FontStyle property.
 
static readonly DependencyProperty FontWeightProperty
 Backing store for the FontWeight property.
 
static readonly DependencyProperty ForegroundProperty
 Backing store for Foreground property.
 

Protected Member Functions

override void OnRender (DrawingContext drawingContext)
 Renders the adorner.
 
- Protected Member Functions inherited from TextAdorner
 TextAdorner (UIElement adornedElement)
 Ctor.
 
FormattedText NewDefaultText (string text)
 Creates a new FormattedText based on the current culture and control font settings.
 
void DrawString (DrawingContext drawingContext, FormattedText text, Point location)
 Draws the given text with a drop shadow to ensure its visibility.
 

Properties

Visibility AdornerVisibility [get, set]
 Gets/sets the general show state of this adorner as configured by the display.
 
Point2D ImageLocation [get]
 Gets/sets the point in the image the adorner shows the info about.
 
- Properties inherited from TextAdorner
Color FontBackgroundColor [get, set]
 Gets/sets the background color for the font's background.
 
FontFamily FontFamily [get, set]
 Gets/sets the font family of the text.
 
double FontShadowThickness [get, set]
 Gets/sets the thickness of the border of the text.
 
double FontSize [get, set]
 Gets/sets the font size of the text.
 
FontStretch FontStretch [get, set]
 Gets/sets the font stretch of the text.
 
FontStyle FontStyle [get, set]
 Gets/sets the font style of the text.
 
FontWeight FontWeight [get, set]
 Gets/sets the font weight of the text.
 
Brush Foreground [get, set]
 Gets/sets the foreground brush to draw the text with.
 

Detailed Description

Mouse over info adorner.

Presents information about the pixel the mouse currently hovers over.

Constructor & Destructor Documentation

◆ MouseOverInfoAdorner()

MouseOverInfoAdorner ( Display adornedDisplay)

Creates the adorner.

Parameters
adornedDisplayThe display to adorn.

Member Function Documentation

◆ OnRender()

override void OnRender ( DrawingContext drawingContext)
protected

Renders the adorner.

Parameters
drawingContextDrawing context to draw on the display.

Property Documentation

◆ ImageLocation

Point2D ImageLocation
get

Gets/sets the point in the image the adorner shows the info about.

The point is in image coordinates.