Class ScrollViewer
Represents a scrollable area that can contain other visible elements.
[ControlCategory("Containers")]
public class ScrollViewer : ContainerControl, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
- Inheritance
-
ScrollViewer
- Implements
- Derived
Constructors
- ScrollViewer()
Initializes a new instance of the ScrollViewer class.
- ScrollViewer(Control)
Initializes a new instance of the ScrollViewer class.
Fields
- DefaultMouseWheelScrollFactor
Gets or sets default mouse wheel scroll factor. This value is multiplied with line height and used as an offset when control is scrolled using mouse wheel.
- DefaultScrollBarTotalSizeMultiplier
Gets or sets default multiplier used in calculation of total size of the scroll area in the ScrollViewer. This value is assigned to the scrollbar's total size.
Properties
- ControlKind
Returns control identifier.
- IsScrolledWithMouseWheel
Gets or sets a value indicating whether the scroll viewer is scrolled with the mouse wheel.
Methods
- CreateWithChild(AbstractControl?)
Creates ScrollViewer with the specified child control.
- GetDefaultLayout()
Gets default layout in case when Layout property is null.
- GetDefaultScrollWheelDelta(Graphics, Font, bool)
Gets default value used to offset scrollbar position when scroll wheel event is handled.
- IgnoreChildMouseWheel(AbstractControl?)
Determines whether the mouse wheel event should be ignored for the specified child control.
- OnBeforeChildMouseWheel(object?, MouseEventArgs)
Called before the MouseWheel event of the child control is raised.