In This Article

ScrollViewerItemsPresenter Class

Represents an ItemsPresenter control that works around a bug in the .NET 3.0 framework where directional keys will not function if encompassed by a ScrollViewer.

public class ScrollViewerItemsPresenter : ItemsPresenter
Inheritance:
object Visual UIElement FrameworkElement ItemsPresenter object

Constructors

ScrollViewerItemsPresenter()

Initializes an instance of the class.

public ScrollViewerItemsPresenter()

Methods

OnKeyDown(KeyEventArgs)

Invoked when an unhandled KeyDownEvent attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected override void OnKeyDown(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

The KeyEventArgs that contains the event data.

Remarks

This code handles the .NET 3.0 bug mentioned in this post where directional keys will not function if encompassed by a ScrollViewer: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2089109&SiteID=1