C# Class RedBadger.Xpf.Controls.RootElement

RootElement is the main host for all IElements, it manages the renderer, user input and is the target for Update/Draw calls.
Inheritance: ContentControl, IRootElement
Exibir arquivo Open project: redbadger/XPF Class Usage Examples

Public Properties

Property Type Description
ViewportProperty ReactiveProperty

Public Methods

Method Description
CaptureMouse ( IElement element ) : bool
Draw ( ) : void

Draws a frame of XPF content.

ReleaseMouseCapture ( IElement element ) : void
RootElement ( Rect viewport, IRenderer renderer ) : System

Initializes a new instance of the RootElement class.

RootElement ( Rect viewport, IRenderer renderer, IInputManager inputManager ) : System

Initializes a new instance of the RootElement class.

Update ( ) : void

Updates XPF layout logic.

Protected Methods

Method Description
OnNextGesture ( Gesture gesture ) : void

Private Methods

Method Description
OnNextGestureFindChild ( IElement element, Gesture gesture ) : bool
OnNextGestureFindElement ( IElement element, Gesture gesture ) : bool

Method Details

CaptureMouse() public method

public CaptureMouse ( IElement element ) : bool
element IElement
return bool

Draw() public method

Draws a frame of XPF content.
public Draw ( ) : void
return void

OnNextGesture() protected method

protected OnNextGesture ( Gesture gesture ) : void
gesture RedBadger.Xpf.Input.Gesture
return void

ReleaseMouseCapture() public method

public ReleaseMouseCapture ( IElement element ) : void
element IElement
return void

RootElement() public method

Initializes a new instance of the RootElement class.
public RootElement ( Rect viewport, IRenderer renderer ) : System
viewport Rect The viewport used to layout the RootElement's content.
renderer IRenderer An implementation of IRenderer that can be used to render content.
return System

RootElement() public method

Initializes a new instance of the RootElement class.
public RootElement ( Rect viewport, IRenderer renderer, IInputManager inputManager ) : System
viewport Rect The viewport used to layout the RootElement's content.
renderer IRenderer An implementation of IRenderer that can be used to render content.
inputManager IInputManager An implementation of IInputManager that can be used to respond to user input.
return System

Update() public method

Updates XPF layout logic.
public Update ( ) : void
return void

Property Details

ViewportProperty public_oe static_oe property

Viewport Reactive Property.
public static ReactiveProperty ViewportProperty
return ReactiveProperty