Show / Hide Table of Contents

Class ScrollContentPresenter

Implements scroll content presenter for drawing content of Scroll Viewer control

Inheritance
System.Object
DependencyObject
UIElement
ContentPresenter
ScrollContentPresenter
Implements
IScrollInfo
Inherited Members
ContentPresenter.ContentProperty
ContentPresenter.Content
ContentPresenter.ContentTemplateProperty
ContentPresenter.ContentTemplate
ContentPresenter.ContentStringFormatProperty
ContentPresenter.ContentStringFormat
ContentPresenter.UpdateVisualTree(Object)
ContentPresenter.InvalidateIsEnabledOnChildren()
UIElement.visualOffset
UIElement.unclippedDesiredSize
UIElement.desiredSize
UIElement.needsClipBounds
UIElement.DesiredSize
UIElement.RenderSize
UIElement.DeviceRenderSize
UIElement.VisualOffset
UIElement.VisualPosition
UIElement.RenderPosition
UIElement.Parent
UIElement.ActualHeight
UIElement.ActualWidth
UIElement.IsLoaded
UIElement.TemplatedParent
UIElement.NameProperty
UIElement.Name
UIElement.HorizontalAlignmentProperty
UIElement.HorizontalAlignment
UIElement.VerticalAlignmentProperty
UIElement.VerticalAlignment
UIElement.VisibilityProperty
UIElement.Visibility
UIElement.MarginProperty
UIElement.Margin
UIElement.HeightProperty
UIElement.Height
UIElement.MaxHeightProperty
UIElement.MaxHeight
UIElement.MinHeightProperty
UIElement.MinHeight
UIElement.WidthProperty
UIElement.Width
UIElement.MaxWidthProperty
UIElement.MaxWidth
UIElement.MinWidthProperty
UIElement.MinWidth
UIElement.TagProperty
UIElement.Tag
UIElement.IsEnabledProperty
UIElement.IsEnabledCoerceValue
UIElement.IsEnabled
UIElement.IsMouseOverProperty
UIElement.IsMouseOver
UIElement.IsMouseCapturedProperty
UIElement.IsMouseCaptured
UIElement.IsTouchCapturedProperty
UIElement.IsTouchCaptured
UIElement.IsKeyboardFocusedProperty
UIElement.IsKeyboardFocused
UIElement.StyleProperty
UIElement.Style
UIElement.DataContextProperty
UIElement.DataContext
UIElement.IsFocusedProperty
UIElement.IsFocused
UIElement.FocusableProperty
UIElement.Focusable
UIElement.IsHitTestVisibleProperty
UIElement.IsHitTestVisible
UIElement.SnapsToDevicePixelsProperty
UIElement.SnapsToDevicePixels
UIElement.UseLayoutRoundingProperty
UIElement.UseLayoutRounding
UIElement.OpacityProperty
UIElement.Opacity
UIElement.IsMeasureValid
UIElement.IsArrangeValid
UIElement.Resources
UIElement.InputBindings
UIElement.ToolTipProperty
UIElement.ToolTip
UIElement.Triggers
UIElement.CursorTypeProperty
UIElement.CursorType
UIElement.EffectProperty
UIElement.Effect
UIElement.DataContextChanged
UIElement.IsEnabledChanged
UIElement.IsMouseCapturedChanged
UIElement.VisibleEvent
UIElement.Visible
UIElement.HiddenEvent
UIElement.Hidden
UIElement.CollapsedEvent
UIElement.Collapsed
UIElement.LoadedEvent
UIElement.Loaded
UIElement.UnloadedEvent
UIElement.Unloaded
UIElement.MouseDownEvent
UIElement.MouseDown
UIElement.PreviewMouseDownEvent
UIElement.PreviewMouseDown
UIElement.MouseUpEvent
UIElement.MouseUp
UIElement.PreviewMouseUpEvent
UIElement.PreviewMouseUp
UIElement.PreviewMouseWheelEvent
UIElement.PreviewMouseWheel
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.PreviewMouseMoveEvent
UIElement.PreviewMouseMove
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.PreviewKeyDownEvent
UIElement.PreviewKeyDown
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.PreviewKeyUpEvent
UIElement.PreviewKeyUp
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.GamepadDownEvent
UIElement.GamepadDown
UIElement.PreviewGamepadDownEvent
UIElement.PreviewGamepadDown
UIElement.GamepadUpEvent
UIElement.GamepadUp
UIElement.PreviewGamepadUpEvent
UIElement.PreviewGamepadUp
UIElement.PreviewGamepadMoveEvent
UIElement.PreviewGamepadMove
UIElement.GamepadMoveEvent
UIElement.GamepadMove
UIElement.PreviewGamepadTriggerEvent
UIElement.PreviewGamepadTrigger
UIElement.GamepadTriggerEvent
UIElement.GamepadTrigger
UIElement.PreviewTouchDownEvent
UIElement.PreviewTouchDown
UIElement.TouchDownEvent
UIElement.TouchDown
UIElement.PreviewTouchUpEvent
UIElement.PreviewTouchUp
UIElement.TouchUpEvent
UIElement.TouchUp
UIElement.PreviewTouchMoveEvent
UIElement.PreviewTouchMove
UIElement.TouchMoveEvent
UIElement.TouchMove
UIElement.PreviewTouchGestureEvent
UIElement.PreviewTouchGesture
UIElement.TouchGestureEvent
UIElement.TouchGesture
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.SizeChangedEvent
UIElement.SizeChanged
UIElement.LayoutUpdated
UIElement.RequestBringIntoViewEvent
UIElement.RequestBringIntoView
UIElement.DpiScaleX
UIElement.DpiScaleY
UIElement.OnLostFocus(Object, RoutedEventArgs)
UIElement.OnGotFocus(Object, RoutedEventArgs)
UIElement.OnPreviewMouseUp(Object, MouseButtonEventArgs)
UIElement.OnPreviewMouseDown(Object, MouseButtonEventArgs)
UIElement.OnGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnPreviewGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnGamepadMove(Object, GamepadMoveEventArgs)
UIElement.OnPreviewGamepadMove(Object, GamepadMoveEventArgs)
UIElement.OnGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnPreviewGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnGamepadDown(GamepadButtonEventArgs)
UIElement.OnPreviewGamepadDown(Object, GamepadButtonEventArgs)
UIElement.OnKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyUp(Object, KeyEventArgs)
UIElement.OnKeyDown(KeyEventArgs)
UIElement.OnPreviewKeyDown(Object, KeyEventArgs)
UIElement.OnPreviewMouseMove(Object, MouseEventArgs)
UIElement.OnMouseMove(Object, MouseEventArgs)
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.OnPreviewMouseWheel(Object, MouseWheelEventArgs)
UIElement.OnMouseUp(Object, MouseButtonEventArgs)
UIElement.OnMouseDown(MouseButtonEventArgs)
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.OnTouchUp(TouchEventArgs)
UIElement.OnPreviewTouchUp(TouchEventArgs)
UIElement.OnTouchDown(TouchEventArgs)
UIElement.OnPreviewTouchDown(TouchEventArgs)
UIElement.OnTouchMove(TouchEventArgs)
UIElement.OnPreviewTouchMove(TouchEventArgs)
UIElement.OnTouchGesture(TouchGestureEventArgs)
UIElement.OnPreviewTouchGesture(TouchGestureEventArgs)
UIElement.ApplyTemplate()
UIElement.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
UIElement.OnOpacityChanged(DependencyPropertyChangedEventArgs)
UIElement.Contains(PointF, Size)
UIElement.Draw(Renderer, Double, Single)
UIElement.Measure(Size)
UIElement.InvalidateMeasure()
UIElement.Arrange(Rect)
UIElement.InvalidateArrange()
UIElement.OnPropertyChanged(DependencyProperty)
UIElement.FindResource(Object)
UIElement.AddHandler(RoutedEvent, Delegate)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.RaiseEvent(RoutedEventArgs)
UIElement.AddToEventRoute(EventRoute, RoutedEventArgs)
UIElement.CaptureMouse()
UIElement.ReleaseMouseCapture()
UIElement.OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)
UIElement.CaptureTouch()
UIElement.ReleaseTouchCapture()
UIElement.Focus()
UIElement.BringIntoView()
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
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

true if this instance can content scroll; otherwise, false.

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

true if this instance can horizontally scroll; otherwise, false.

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

true if this instance can vertically scroll; otherwise, false.

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
ContentPresenter.ArrangeOverride(Size)

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
ContentPresenter.MeasureOverride(Size)

OnApplyTemplate()

Called when [apply template].

Declaration
public override void OnApplyTemplate()
Overrides
UIElement.OnApplyTemplate()

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
ContentPresenter.OnDraw(Renderer, Double, Single)

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.

Implements

IScrollInfo
Back to top Generated by DocFX