Class FrameworkBehaviors
Implements an attached property used to ignore scroll events if the scroll bar is hidden or at the end.
Inheritance
Inherited Members
Namespace: Phoenix.Controls
Assembly: Phoenix.Controls.dll
Syntax
public static class FrameworkBehaviors
Remarks
Normally, nesting scroll viewers can break the outer ones because the child will capture mouse events, even if it can't scroll further. This behavior uses the PreviewMouseWheel event to process the scroll viewers from top to bottom, looking for the innermost one that can scroll. This means it does not need to be attached to any inner scrollable controls, such as ComboBox or ListView, even though it will affect their behavior by passing unusable mouse wheel events through to their ancestors.
Fields
View SourceSmartScrollProperty
A property that adds a behavior to a view that it ignores scroll events when the scroll bar is hidden and or at the end.
Declaration
public static readonly DependencyProperty SmartScrollProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Methods
View SourceGetSmartScroll(DependencyObject)
Gets the SmartScroll property value.
Declaration
public static bool GetSmartScroll(DependencyObject dependencyObject)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | dependencyObject | Object that the property is associated with. |
Returns
Type | Description |
---|---|
System.Boolean | The property value. |
SetSmartScroll(DependencyObject, Boolean)
Sets the SmartScroll property value.
Declaration
public static void SetSmartScroll(DependencyObject dependencyObject, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | dependencyObject | Object that the property is associated with. |
System.Boolean | value | Value to assign. |