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

The custom layer control.
Inheritance: System.Windows.FrameworkElement
显示文件 Open project: Core2D/Core2D Class Usage Examples

Public Properties

Property Type Description
DataProperty System.Windows.DependencyProperty
RendererProperty System.Windows.DependencyProperty

Public Methods

Method 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.

Protected Methods

Method Description
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

Private Methods

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

Method Details

GetData() public static method

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

GetRenderer() public static method

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

LayerElement() public method

Initializes a new instance of the LayerElement class.
public LayerElement ( ) : Core2D.Data
return Core2D.Data

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

SetData() public static method

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.
return void

SetRenderer() public static method

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.
return void

Property Details

DataProperty public_oe static_oe property

The attached DependencyProperty for XContext type.
public static DependencyProperty,System.Windows DataProperty
return System.Windows.DependencyProperty

RendererProperty public_oe static_oe property

The attached DependencyProperty for ShapeRenderer type.
public static DependencyProperty,System.Windows RendererProperty
return System.Windows.DependencyProperty