Class ScrollContentPresenter
Implements scroll content presenter for drawing content of Scroll Viewer control
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ScrollContentPresenter : ContentPresenter, IScrollInfo
Constructors
ScrollContentPresenter()
Initializes a new instance of the ScrollContentPresenter class.
Declaration
public ScrollContentPresenter()
Properties
CanContentScroll
Gets or sets a value indicating whether this instance can content scroll.
Declaration
public bool CanContentScroll { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
CanHorizontallyScroll
Gets or sets a value indicating whether this instance can horizontally scroll.
Declaration
public bool CanHorizontallyScroll { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
CanVerticallyScroll
Gets or sets a value indicating whether this instance can vertically scroll.
Declaration
public bool CanVerticallyScroll { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ExtentHeight
Gets the height of the extent.
Declaration
public float ExtentHeight { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The height of the extent. |
ExtentWidth
Gets the width of the extent.
Declaration
public float ExtentWidth { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The width of the extent. |
HorizontalOffset
Gets the horizontal offset.
Declaration
public float HorizontalOffset { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The horizontal offset. |
ScrollOwner
Gets or sets the scroll owner.
Declaration
public ScrollViewer ScrollOwner { get; set; }
Property Value
| Type | Description |
|---|---|
| ScrollViewer | The scroll owner. |
VerticalOffset
Gets the vertical offset.
Declaration
public float VerticalOffset { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The vertical offset. |
ViewportHeight
Gets the height of the view port.
Declaration
public float ViewportHeight { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The height of the view port. |
ViewportWidth
Gets the width of the view port.
Declaration
public float ViewportWidth { get; }
Property Value
| Type | Description |
|---|---|
| System.Single | The width of the view port. |
Methods
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
Overrides
MakeVisible(UIElement, Rect)
Makes area of element visible
Declaration
public void MakeVisible(UIElement element, Rect rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
| UIElement | element | The element. |
| EmptyKeys.UserInterface.Rect | rectangle | The rectangle area |
Exceptions
| Type | Condition |
|---|---|
| System.NotImplementedException |
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
Overrides
OnApplyTemplate()
Called when [apply template].
Declaration
public override void OnApplyTemplate()
Overrides
OnDraw(Renderer, Double, Single)
Called when [draw].
Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
| System.Double | elapsedGameTime | The elapsed game time. |
| System.Single | opacity | The opacity. |
Overrides
ScrollLineDown()
Scrolls the line down.
Declaration
public void ScrollLineDown()
ScrollLineLeft()
Scrolls the line left.
Declaration
public void ScrollLineLeft()
ScrollLineRight()
Scrolls the line right.
Declaration
public void ScrollLineRight()
ScrollLineUp()
Scrolls the line up.
Declaration
public void ScrollLineUp()
ScrollMouseWheelDown()
Scrolls the mouse wheel down.
Declaration
public void ScrollMouseWheelDown()
ScrollMouseWheelLeft()
Scrolls the mouse wheel left.
Declaration
public void ScrollMouseWheelLeft()
ScrollMouseWheelRight()
Scrolls the mouse wheel right.
Declaration
public void ScrollMouseWheelRight()
ScrollMouseWheelUp()
Scrolls the mouse wheel up.
Declaration
public void ScrollMouseWheelUp()
ScrollPageDown()
Scrolls the page down.
Declaration
public void ScrollPageDown()
ScrollPageLeft()
Scrolls the page left.
Declaration
public void ScrollPageLeft()
ScrollPageRight()
Scrolls the page right.
Declaration
public void ScrollPageRight()
ScrollPageUp()
Scrolls the page up.
Declaration
public void ScrollPageUp()
SetHorizontalOffset(Single)
Sets the horizontal offset.
Declaration
public void SetHorizontalOffset(float offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | offset | The offset. |
SetVerticalOffset(Single)
Sets the vertical offset.
Declaration
public void SetVerticalOffset(float offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | offset | The offset. |