Class ScrollContentPresenter
Displays the content of a ScrollViewer control.
Inheritance
Namespace: Telerik.Windows.Controls.GridView
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public sealed class ScrollContentPresenter : ContentPresenter, IScrollInfo
Constructors
ScrollContentPresenter()
Declaration
public ScrollContentPresenter()
Fields
CanContentScrollProperty
Identifies the CanContentScroll dependency property.
Declaration
public static readonly DependencyProperty CanContentScrollProperty
Field Value
System.Windows.DependencyProperty
|
Properties
CanContentScroll
Indicates whether the content, if it supports IScrollInfo, should be allowed to control scrolling. This is a dependency property.
Declaration
public bool CanContentScroll { get; set; }
Property Value
System.Boolean
|
CanHorizontallyScroll
Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
Declaration
public bool CanHorizontallyScroll { get; set; }
Property Value
System.Boolean
|
Implements
CanVerticallyScroll
Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
Declaration
public bool CanVerticallyScroll { get; set; }
Property Value
System.Boolean
|
Implements
ExtentHeight
Gets the vertical size of the extent.
Declaration
public double ExtentHeight { get; }
Property Value
System.Double
|
Implements
ExtentWidth
Gets the horizontal size of the extent.
Declaration
public double ExtentWidth { get; }
Property Value
System.Double
|
Implements
HorizontalOffset
Gets the horizontal offset of the scrolled content.
Declaration
public double HorizontalOffset { get; set; }
Property Value
System.Double
|
Implements
ScrollOwner
Gets or sets a ScrollViewer element that controls scrolling behavior.
Declaration
public GridViewScrollViewer ScrollOwner { get; set; }
Property Value
GridViewScrollViewer
|
Implements
VerticalOffset
Gets the vertical offset of the scrolled content.
Declaration
public double VerticalOffset { get; }
Property Value
System.Double
|
Implements
ViewportHeight
Gets the vertical size of the viewport for this content.
Declaration
public double ViewportHeight { get; }
Property Value
System.Double
|
Implements
ViewportWidth
Gets the horizontal size of the viewport for this content.
Declaration
public double ViewportWidth { get; }
Property Value
System.Double
|
Implements
Methods
ArrangeOverride(Size)
Position the single child element and determines the content of a ContentPresenter object.
Declaration
protected override Size ArrangeOverride(Size arrangeSize)
Parameters
System.Windows.Size
arrangeSize
The size that this ContentPresenter object should use to arrange its child element. |
Returns
System.Windows.Size
The actual size needed by the element. |
LineDown()
Scrolls the ScrollContentPresenter content downward by one line.
Declaration
public void LineDown()
Implements
LineLeft()
Scrolls the ScrollContentPresenter content to the left by a predetermined amount.
Declaration
public void LineLeft()
Implements
LineRight()
Scrolls the ScrollContentPresenter content to the right by a predetermined amount.
Declaration
public void LineRight()
Implements
LineUp()
Scrolls the ScrollContentPresenter content upward by one line.
Declaration
public void LineUp()
Implements
MakeVisible(UIElement, Rect)
Forces content to scroll until the coordinate space of a UIElement object is visible.
Declaration
public Rect MakeVisible(UIElement visual, Rect visibleArea)
Parameters
System.Windows.UIElement
visual
The UIElement that becomes visible. |
System.Windows.Rect
visibleArea
The bounding rectangle that identifies the coordinate space to make visible. |
Returns
System.Windows.Rect
|
Implements
MeasureOverride(Size)
Determines the size of the ContentPresenter object based on the sizing properties, margin, and requested size of the child content.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
System.Windows.Size
constraint
An upper limit value that the return value should not exceed. |
Returns
System.Windows.Size
The size that is required to arrange child content. |
MouseWheelDown()
Scrolls down within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelDown()
Implements
MouseWheelLeft()
Scrolls left within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelLeft()
Implements
MouseWheelRight()
Scrolls right within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelRight()
Implements
MouseWheelUp()
Scrolls up within content after a user clicks the wheel button on a mouse.
Declaration
public void MouseWheelUp()
Implements
OnApplyTemplate()
Invoked when an internal process or application calls ApplyTemplate, which is used to build the visual tree of the current template.
Declaration
public override void OnApplyTemplate()
PageDown()
Scrolls down within content by one page.
Declaration
public void PageDown()
Implements
PageLeft()
Scrolls left within content by one page.
Declaration
public void PageLeft()
Implements
PageRight()
Scrolls right within content by one page.
Declaration
public void PageRight()
Implements
PageUp()
Scrolls up within content by one page.
Declaration
public void PageUp()
Implements
SetHorizontalOffset(Double)
Sets the amount of horizontal offset.
Declaration
public void SetHorizontalOffset(double offset)
Parameters
System.Double
offset
The degree to which content is horizontally offset from the containing viewport. |
Implements
SetVerticalOffset(Double)
Sets the amount of vertical offset.
Declaration
public void SetVerticalOffset(double offset)
Parameters
System.Double
offset
The degree to which content is vertically offset from the containing viewport. |