Show / Hide Table of Contents

Class ScrollViewer

Implements scrollable area with content

Inheritance
System.Object
DependencyObject
UIElement
Control
ContentControl
ScrollViewer
Inherited Members
ContentControl.ContentProperty
ContentControl.Content
ContentControl.HasContent
Control.BackgroundProperty
Control.Background
Control.BorderBrushProperty
Control.BorderBrush
Control.BorderThicknessProperty
Control.BorderThickness
Control.ForegroundProperty
Control.Foreground
Control.FontProperty
Control.Font
Control.FontFamilyProperty
Control.FontFamily
Control.FontSizeProperty
Control.FontSize
Control.FontStyleProperty
Control.FontStyle
Control.PaddingProperty
Control.Padding
Control.TabIndexProperty
Control.TabIndex
Control.IsTabStopProperty
Control.IsTabStop
Control.TemplateProperty
Control.Template
Control.HorizontalContentAlignmentProperty
Control.HorizontalContentAlignment
Control.VerticalContentAlignmentProperty
Control.VerticalContentAlignment
Control.PreviewMouseDoubleClickEvent
Control.PreviewMouseDoubleClick
Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs)
Control.MouseDoubleClickEvent
Control.MouseDoubleClick
Control.OnMouseDoubleClick(MouseButtonEventArgs)
Control.OnDraw(Renderer, Double, Single)
Control.OnPropertyChanged(DependencyProperty)
Control.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.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.OnMouseMove(Object, MouseEventArgs)
UIElement.OnPreviewMouseWheel(Object, MouseWheelEventArgs)
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.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.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 ScrollViewer : ContentControl

Constructors

ScrollViewer()

Initializes a new instance of the ScrollViewer class.

Declaration
public ScrollViewer()

Fields

ActionProperty

The action property

Declaration
public static readonly DependencyProperty ActionProperty
Field Value
Type Description
DependencyProperty

CanContentScrollProperty

The can content scroll property

Declaration
public static readonly DependencyProperty CanContentScrollProperty
Field Value
Type Description
DependencyProperty

ComputedHorizontalScrollBarVisibilityProperty

The computed horizontal scroll bar visibility property

Declaration
public static readonly DependencyProperty ComputedHorizontalScrollBarVisibilityProperty
Field Value
Type Description
DependencyProperty

ComputedVerticalScrollBarVisibilityProperty

The computed vertical scroll bar visibility property

Declaration
public static readonly DependencyProperty ComputedVerticalScrollBarVisibilityProperty
Field Value
Type Description
DependencyProperty

ExtentHeightProperty

The extent height property

Declaration
public static readonly DependencyProperty ExtentHeightProperty
Field Value
Type Description
DependencyProperty

ExtentWidthProperty

The extent width property

Declaration
public static readonly DependencyProperty ExtentWidthProperty
Field Value
Type Description
DependencyProperty

HorizontalOffsetProperty

The horizontal offset property

Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
Type Description
DependencyProperty

HorizontalScrollBarVisibilityProperty

The horizontal scroll bar visibility property

Declaration
public static DependencyProperty HorizontalScrollBarVisibilityProperty
Field Value
Type Description
DependencyProperty

IsMouseWheelEnabledProperty

The is mouse wheel enabled property

Declaration
public static readonly DependencyProperty IsMouseWheelEnabledProperty
Field Value
Type Description
DependencyProperty

PanningDecelerationProperty

The panning deceleration property

Declaration
public static readonly DependencyProperty PanningDecelerationProperty
Field Value
Type Description
DependencyProperty

PanningModeProperty

The panning mode property

Declaration
public static readonly DependencyProperty PanningModeProperty
Field Value
Type Description
DependencyProperty

PanningRatioProperty

The panning ratio property

Declaration
public static readonly DependencyProperty PanningRatioProperty
Field Value
Type Description
DependencyProperty

ScrollableHeightProperty

The scrollable height property

Declaration
public static readonly DependencyProperty ScrollableHeightProperty
Field Value
Type Description
DependencyProperty

ScrollableWidthProperty

The scrollable width property

Declaration
public static readonly DependencyProperty ScrollableWidthProperty
Field Value
Type Description
DependencyProperty

ScrollChangedEvent

The scroll changed event

Declaration
public static readonly RoutedEvent ScrollChangedEvent
Field Value
Type Description
RoutedEvent

ScrollPointProperty

The scroll point property

Declaration
public static readonly DependencyProperty ScrollPointProperty
Field Value
Type Description
DependencyProperty

VerticalOffsetProperty

The vertical offset property

Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
Type Description
DependencyProperty

VerticalScrollBarVisibilityProperty

The vertical scroll bar visibility property

Declaration
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
Field Value
Type Description
DependencyProperty

ViewportHeightProperty

The viewport height property

Declaration
public static readonly DependencyProperty ViewportHeightProperty
Field Value
Type Description
DependencyProperty

ViewportWidthProperty

The viewport width property

Declaration
public static readonly DependencyProperty ViewportWidthProperty
Field Value
Type Description
DependencyProperty

Properties

ComputedHorizontalScrollBarVisibility

Gets the computed horizontal scroll bar visibility.

Declaration
public Visibility ComputedHorizontalScrollBarVisibility { get; }
Property Value
Type Description
Visibility

The computed horizontal scroll bar visibility.

ComputedVerticalScrollBarVisibility

Gets the computed vertical scroll bar visibility.

Declaration
public Visibility ComputedVerticalScrollBarVisibility { get; }
Property Value
Type Description
Visibility

The computed vertical scroll bar visibility.

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.

HorizontalScrollBarVisibility

Gets or sets the horizontal scroll bar visibility.

Declaration
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
Type Description
ScrollBarVisibility

The horizontal scroll bar visibility.

PanningDeceleration

Gets or sets the panning deceleration.

Declaration
public float PanningDeceleration { get; set; }
Property Value
Type Description
System.Single

The panning deceleration.

PanningMode

Gets or sets the panning mode.

Declaration
public PanningMode PanningMode { get; set; }
Property Value
Type Description
PanningMode

The panning mode.

PanningRatio

Gets or sets the panning ratio.

Declaration
public float PanningRatio { get; set; }
Property Value
Type Description
System.Single

The panning ratio.

ScrollableHeight

Gets the scrollable height.

Declaration
public float ScrollableHeight { get; }
Property Value
Type Description
System.Single

The height

ScrollableWidth

Gets the scrollable width.

Declaration
public float ScrollableWidth { get; }
Property Value
Type Description
System.Single

The width

VerticalOffset

Gets the vertical offset.

Declaration
public float VerticalOffset { get; }
Property Value
Type Description
System.Single

The vertical offset.

VerticalScrollBarVisibility

Gets or sets the vertical scroll bar visibility.

Declaration
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
Type Description
ScrollBarVisibility

The vertical scroll bar visibility.

ViewportHeight

Gets the height of the viewport.

Declaration
public float ViewportHeight { get; }
Property Value
Type Description
System.Single

The height of the viewport.

ViewportWidth

Gets the width of the viewport.

Declaration
public float ViewportWidth { get; }
Property Value
Type Description
System.Single

The width of the viewport.

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

GetAction(DependencyObject)

Gets the action.

Declaration
public static ScrollViewerAction GetAction(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The object.

Returns
Type Description
ScrollViewerAction

GetCanContentScroll(DependencyObject)

Gets the can content scroll.

Declaration
public static bool GetCanContentScroll(DependencyObject dependencyObject)
Parameters
Type Name Description
DependencyObject dependencyObject

The dependency object.

Returns
Type Description
System.Boolean
Exceptions
Type Condition
System.ArgumentNullException

dependencyObject

GetHorizontalScrollBarVisibility(DependencyObject)

Gets the horizontal scroll bar visibility.

Declaration
public static ScrollBarVisibility GetHorizontalScrollBarVisibility(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The object.

Returns
Type Description
ScrollBarVisibility

GetIsMouseWheelEnabled(DependencyObject)

Gets the is mouse wheel enabled.

Declaration
public static bool GetIsMouseWheelEnabled(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The object.

Returns
Type Description
System.Boolean

GetPanningDeceleration(DependencyObject)

Gets the panning deceleration.

Declaration
public static float GetPanningDeceleration(DependencyObject element)
Parameters
Type Name Description
DependencyObject element

The element.

Returns
Type Description
System.Single
Exceptions
Type Condition
System.ArgumentNullException

element

GetPanningMode(DependencyObject)

Gets the panning mode.

Declaration
public static PanningMode GetPanningMode(DependencyObject element)
Parameters
Type Name Description
DependencyObject element

The element.

Returns
Type Description
PanningMode
Exceptions
Type Condition
System.ArgumentNullException

element

GetPanningRatio(DependencyObject)

Gets the panning ratio.

Declaration
public static float GetPanningRatio(DependencyObject element)
Parameters
Type Name Description
DependencyObject element

The element.

Returns
Type Description
System.Single
Exceptions
Type Condition
System.ArgumentNullException

element

GetScrollPoint(DependencyObject)

Gets the scroll point.

Declaration
public static PointF GetScrollPoint(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The object.

Returns
Type Description
EmptyKeys.UserInterface.PointF

GetVerticalScrollBarVisibility(DependencyObject)

Gets the vertical scroll bar visibility.

Declaration
public static ScrollBarVisibility GetVerticalScrollBarVisibility(DependencyObject obj)
Parameters
Type Name Description
DependencyObject obj

The object.

Returns
Type Description
ScrollBarVisibility

InvalidateScrollInfo()

Invalidates the scroll information.

Declaration
public void InvalidateScrollInfo()

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

OnApplyTemplate()

Called when [apply template].

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

OnMouseDown(MouseButtonEventArgs)

Raises the MouseDown event.

Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type Name Description
MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

Overrides
UIElement.OnMouseDown(MouseButtonEventArgs)

OnMouseUp(Object, MouseButtonEventArgs)

Called when [mouse up].

Declaration
protected override void OnMouseUp(object sender, MouseButtonEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

Overrides
UIElement.OnMouseUp(Object, MouseButtonEventArgs)

OnMouseWheel(MouseWheelEventArgs)

Called when [mouse wheel].

Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Type Name Description
MouseWheelEventArgs e

The MouseWheelEventArgs instance containing the event data.

Overrides
UIElement.OnMouseWheel(MouseWheelEventArgs)

OnPreviewGamepadMove(Object, GamepadMoveEventArgs)

Called when [preview game pad move].

Declaration
protected override void OnPreviewGamepadMove(object sender, GamepadMoveEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

GamepadMoveEventArgs e

The GamepadMoveEventArgs instance containing the event data.

Overrides
UIElement.OnPreviewGamepadMove(Object, GamepadMoveEventArgs)

OnPreviewMouseMove(Object, MouseEventArgs)

Called when [preview mouse move].

Declaration
protected override void OnPreviewMouseMove(object sender, MouseEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

MouseEventArgs e

The MouseEventArgs instance containing the event data.

Overrides
UIElement.OnPreviewMouseMove(Object, MouseEventArgs)

OnScrollChanged(ScrollChangedEventArgs)

Raises the ScrollChanged event.

Declaration
protected virtual void OnScrollChanged(ScrollChangedEventArgs e)
Parameters
Type Name Description
ScrollChangedEventArgs e

The ScrollChangedEventArgs instance containing the event data.

OnTouchGesture(TouchGestureEventArgs)

Raises the TouchGesture event.

Declaration
protected override void OnTouchGesture(TouchGestureEventArgs e)
Parameters
Type Name Description
TouchGestureEventArgs e

The TouchGestureEventArgs instance containing the event data.

Overrides
UIElement.OnTouchGesture(TouchGestureEventArgs)

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()

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()

ScrollToBottom()

Scrolls to bottom.

Declaration
public void ScrollToBottom()

ScrollToEnd()

Scrolls to end.

Declaration
public void ScrollToEnd()

ScrollToHome()

Scrolls to home.

Declaration
public void ScrollToHome()

ScrollToHorizontalOffset(Single)

Scrolls to horizontal offset.

Declaration
public void ScrollToHorizontalOffset(float offset)
Parameters
Type Name Description
System.Single offset

The offset.

ScrollToLeftEnd()

Scrolls to left end.

Declaration
public void ScrollToLeftEnd()

ScrollToRightEnd()

Scrolls to right end.

Declaration
public void ScrollToRightEnd()

ScrollToTop()

Scrolls to top.

Declaration
public void ScrollToTop()

ScrollToVerticalOffset(Single)

Scrolls to vertical offset.

Declaration
public void ScrollToVerticalOffset(float offset)
Parameters
Type Name Description
System.Single offset

The offset.

SetAction(DependencyObject, ScrollViewerAction)

Sets the action.

Declaration
public static void SetAction(DependencyObject obj, ScrollViewerAction value)
Parameters
Type Name Description
DependencyObject obj

The object.

ScrollViewerAction value

The value.

SetCanContentScroll(DependencyObject, Boolean)

Sets the can content scroll.

Declaration
public static void SetCanContentScroll(DependencyObject dependencyObject, bool canContentScroll)
Parameters
Type Name Description
DependencyObject dependencyObject

The dependency object.

System.Boolean canContentScroll

if set to true [can content scroll].

Exceptions
Type Condition
System.ArgumentNullException

dependencyObject

SetHorizontalScrollBarVisibility(DependencyObject, ScrollBarVisibility)

Sets the horizontal scroll bar visibility.

Declaration
public static void SetHorizontalScrollBarVisibility(DependencyObject obj, ScrollBarVisibility value)
Parameters
Type Name Description
DependencyObject obj

The object.

ScrollBarVisibility value

The value.

SetIsMouseWheelEnabled(DependencyObject, Boolean)

Sets the is mouse wheel enabled.

Declaration
public static void SetIsMouseWheelEnabled(DependencyObject obj, bool value)
Parameters
Type Name Description
DependencyObject obj

The object.

System.Boolean value

if set to true [value].

SetPanningDeceleration(DependencyObject, Single)

Sets the panning deceleration.

Declaration
public static void SetPanningDeceleration(DependencyObject element, float value)
Parameters
Type Name Description
DependencyObject element

The element.

System.Single value

The value.

Exceptions
Type Condition
System.ArgumentNullException

element

SetPanningMode(DependencyObject, PanningMode)

Sets the panning mode.

Declaration
public static void SetPanningMode(DependencyObject element, PanningMode panningMode)
Parameters
Type Name Description
DependencyObject element

The element.

PanningMode panningMode

The panning mode.

Exceptions
Type Condition
System.ArgumentNullException

element

SetPanningRatio(DependencyObject, Single)

Sets the panning ratio.

Declaration
public static void SetPanningRatio(DependencyObject element, float value)
Parameters
Type Name Description
DependencyObject element

The element.

System.Single value

The value.

Exceptions
Type Condition
System.ArgumentNullException

element

SetScrollPoint(DependencyObject, PointF)

Sets the scroll point.

Declaration
public static void SetScrollPoint(DependencyObject obj, PointF value)
Parameters
Type Name Description
DependencyObject obj

The object.

EmptyKeys.UserInterface.PointF value

The value.

SetVerticalScrollBarVisibility(DependencyObject, ScrollBarVisibility)

Sets the vertical scroll bar visibility.

Declaration
public static void SetVerticalScrollBarVisibility(DependencyObject obj, ScrollBarVisibility value)
Parameters
Type Name Description
DependencyObject obj

The object.

ScrollBarVisibility value

The value.

Events

ScrollChanged

Occurs when [scroll changed].

Declaration
public event ScrollChangedEventHandler ScrollChanged
Event Type
Type Description
ScrollChangedEventHandler
Back to top Generated by DocFX