Show / Hide Table of Contents

Class FrameworkBehaviors

Implements an attached property used to ignore scroll events if the scroll bar is hidden or at the end.

Inheritance
System.Object
FrameworkBehaviors
Inherited Members
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: 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 Source

SmartScrollProperty

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 Source

GetSmartScroll(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.

View Source

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.

  • View Source
In This Article
Back to top Generated by DocFX