C# Class Core2D.Wpf.Controls.Custom.LayerElement

The custom layer control.
Inheritance: System.Windows.FrameworkElement
Afficher le fichier Open project: Core2D/Core2D Class Usage Examples

Méthodes publiques

Свойство Type Description
DataProperty System.Windows.DependencyProperty
RendererProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
GetData ( DependencyObject obj ) : XContext

Gets the XContext from DependencyProperty object.

GetRenderer ( DependencyObject obj ) : ShapeRenderer

Gets the Core2D.Renderer from DependencyProperty object.

LayerElement ( ) : Core2D.Data

Initializes a new instance of the LayerElement class.

SetData ( DependencyObject obj, XContext value ) : void

Sets the DependencyProperty object value as XContext.

SetRenderer ( DependencyObject obj, ShapeRenderer value ) : void

Sets the DependencyProperty object value as ShapeRenderer.

Méthodes protégées

Méthode Description
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

Private Methods

Méthode Description
DeInitialize ( ) : void
Initialize ( ) : void
Invalidate ( object sender, InvalidateLayerEventArgs e ) : void
Render ( System.Windows.Media.DrawingContext drawingContext ) : void

Method Details

GetData() public static méthode

Gets the XContext from DependencyProperty object.
public static GetData ( DependencyObject obj ) : XContext
obj System.Windows.DependencyObject The object.
Résultat Core2D.Data.XContext

GetRenderer() public static méthode

Gets the Core2D.Renderer from DependencyProperty object.
public static GetRenderer ( DependencyObject obj ) : ShapeRenderer
obj System.Windows.DependencyObject The object.
Résultat Core2D.Renderer.ShapeRenderer

LayerElement() public méthode

Initializes a new instance of the LayerElement class.
public LayerElement ( ) : Core2D.Data
Résultat Core2D.Data

OnRender() protected méthode

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
Résultat void

SetData() public static méthode

Sets the DependencyProperty object value as XContext.
public static SetData ( DependencyObject obj, XContext value ) : void
obj System.Windows.DependencyObject The object.
value Core2D.Data.XContext The value.
Résultat void

SetRenderer() public static méthode

Sets the DependencyProperty object value as ShapeRenderer.
public static SetRenderer ( DependencyObject obj, ShapeRenderer value ) : void
obj System.Windows.DependencyObject The object.
value Core2D.Renderer.ShapeRenderer The value.
Résultat void

Property Details

DataProperty public_oe static_oe property

The attached DependencyProperty for XContext type.
public static DependencyProperty,System.Windows DataProperty
Résultat System.Windows.DependencyProperty

RendererProperty public_oe static_oe property

The attached DependencyProperty for ShapeRenderer type.
public static DependencyProperty,System.Windows RendererProperty
Résultat System.Windows.DependencyProperty