Desktop
WPF
With this short post I’ll explain how to achieve a functionality similar to the one shown bellow. Unable to display content. Adobe Flash is required. The key to achieving this scenario is to use Behaviors. Start off by adding a reference to the System.Windows.Interactivity.dll which is located in: [WPF] C:\Program Files (x86)\Microsoft SDKs\Expression\Blend 3\Interactivity\Libraries\WPF\ [Silverlight] C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\Silverlight\v4.0\Libraries\ (note: the location of the binary might be different on your machine) Then create a class called AutoScrollBehavior.cs using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Interactivity;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.DragDrop;
#if SILVERLIGHT
using EventManager = Telerik.Windows.EventManager;
#endif namespace TreeView.AutoScroll
{
public class AutoScrollBehavior : Behavior<RadTreeView>
{
protected override void OnAttached()
{
...