Show / Hide Table of Contents

Class ScrollContentPresenter

Displays the content of a ScrollViewer control.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
ContentPresenter
ScrollContentPresenter
Implements
IScrollInfo
Inherited Members
ContentPresenter.ContentProperty
ContentPresenter.Content
ContentPresenter.ContentTemplateProperty
ContentPresenter.ContentTemplate
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.CreateDomElement(Object, Object)
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.ManageIsEnabled(Boolean)
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.OnGotFocus(RoutedEventArgs)
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.OnLostFocus(RoutedEventArgs)
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public sealed class ScrollContentPresenter : ContentPresenter, IFrameworkElement, IUIElement, IDependencyObject, IScrollInfo

Constructors

| Improve this Doc View Source

ScrollContentPresenter()

Initializes a new instance of the ScrollContentPresenter class.

Declaration
public ScrollContentPresenter()

Properties

| Improve this Doc View Source

CanHorizontallyScroll

Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.

Declaration
public bool CanHorizontallyScroll { get; set; }
Property Value
Type Description
System.Boolean

true if scrolling is possible; otherwise, false.

| Improve this Doc View Source

CanVerticallyScroll

Gets or sets a value that indicates whether scrolling on the vertical axis is possible.

Declaration
public bool CanVerticallyScroll { get; set; }
Property Value
Type Description
System.Boolean

true if scrolling is possible; otherwise, false.

| Improve this Doc View Source

ExtentHeight

Gets the vertical size of the extent.

Declaration
public double ExtentHeight { get; }
Property Value
Type Description
System.Double

The vertical size of the extent.

| Improve this Doc View Source

ExtentWidth

Gets the horizontal size of the extent.

Declaration
public double ExtentWidth { get; }
Property Value
Type Description
System.Double

The horizontal size of the extent.

| Improve this Doc View Source

HorizontalOffset

Gets or sets the distance the content has been scrolled horizontally.

Declaration
public double HorizontalOffset { get; }
Property Value
Type Description
System.Double

The distance the content has been scrolled horizontally.

| Improve this Doc View Source

ScrollOwner

Gets or sets the ScrollViewer element that controls scrolling behavior.

Declaration
public ScrollViewer ScrollOwner { get; set; }
Property Value
Type Description
ScrollViewer

The ScrollViewer element that controls scrolling behavior.

| Improve this Doc View Source

VerticalOffset

Gets or sets the distance the content has been scrolled vertically.

Declaration
public double VerticalOffset { get; }
Property Value
Type Description
System.Double

The distance the content has been scrolled vertically.

| Improve this Doc View Source

ViewportHeight

Gets the vertical size of the viewport.

Declaration
public double ViewportHeight { get; }
Property Value
Type Description
System.Double

The vertical size of the viewport.

| Improve this Doc View Source

ViewportWidth

Gets the horizontal size of the viewport.

Declaration
public double ViewportWidth { get; }
Property Value
Type Description
System.Double

The horizontal size of the viewport.

Methods

| Improve this Doc View Source

ArrangeOverride(Size)

Declaration
protected override Size ArrangeOverride(Size arrangeSize)
Parameters
Type Name Description
Size arrangeSize
Returns
Type Description
Size
Overrides
ContentPresenter.ArrangeOverride(Size)
| Improve this Doc View Source

LineDown()

Scrolls the ScrollContentPresenter content downward by one line.

Declaration
public void LineDown()
| Improve this Doc View Source

LineLeft()

Scrolls the ScrollContentPresenter content to the left by a predetermined amount.

Declaration
public void LineLeft()
| Improve this Doc View Source

LineRight()

Scrolls the ScrollContentPresenter content to the right by a predetermined amount.

Declaration
public void LineRight()
| Improve this Doc View Source

LineUp()

Scrolls the ScrollContentPresenter content upward by one line.

Declaration
public void LineUp()
| Improve this Doc View Source

MakeVisible(UIElement, Rect)

Forces content to scroll until the coordinate space of a visual object is visible.

Declaration
[NotImplemented]
public Rect MakeVisible(UIElement visual, Rect rectangle)
Parameters
Type Name Description
UIElement visual

A UIElement that becomes visible.

Rect rectangle

The bounding rectangle that identifies the coordinate space to make visible.

Returns
Type Description
Rect

A Rect that represents the visible region.

| Improve this Doc View Source

MeasureOverride(Size)

Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type Name Description
Size constraint
Returns
Type Description
Size
Overrides
ContentPresenter.MeasureOverride(Size)
| Improve this Doc View Source

MouseWheelDown()

Scrolls down within content after a user clicks the wheel button on a mouse.

Declaration
public void MouseWheelDown()
| Improve this Doc View Source

MouseWheelLeft()

Scrolls left within content after a user clicks the wheel button on a mouse.

Declaration
public void MouseWheelLeft()
| Improve this Doc View Source

MouseWheelRight()

Scrolls right within content after a user clicks the wheel button on a mouse.

Declaration
public void MouseWheelRight()
| Improve this Doc View Source

MouseWheelUp()

Scrolls up within content after a user clicks the wheel button on a mouse.

Declaration
public void MouseWheelUp()
| Improve this Doc View Source

OnApplyTemplate()

Builds the visual tree for the ScrollContentPresenter when a new template is applied.

Declaration
public override void OnApplyTemplate()
Overrides
FrameworkElement.OnApplyTemplate()
| Improve this Doc View Source

PageDown()

Scrolls down within the content by one page.

Declaration
public void PageDown()
| Improve this Doc View Source

PageLeft()

Scrolls left within the content by one page.

Declaration
public void PageLeft()
| Improve this Doc View Source

PageRight()

Scrolls right within the content by one page.

Declaration
public void PageRight()
| Improve this Doc View Source

PageUp()

Scrolls up within the content by one page.

Declaration
public void PageUp()
| Improve this Doc View Source

SetHorizontalOffset(Double)

Sets the distance the content has been scrolled horizontally.

Declaration
public void SetHorizontalOffset(double offset)
Parameters
Type Name Description
System.Double offset

The distance the content has been scrolled horizontally.

| Improve this Doc View Source

SetVerticalOffset(Double)

Sets the distance the content has been scrolled vertically.

Declaration
public void SetVerticalOffset(double offset)
Parameters
Type Name Description
System.Double offset

The distance the content has been scrolled vertically.

Implements

IScrollInfo

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source