Entries:
Comments:
Discussions:

Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Scrolling your mouse wheel with Silverlight

Tim Heuer found an interesting article by Adam Cooper on Silverlight and adding in support for your mouse's scroll wheel

To do so, it pretty painless with Adam's helper class.

XAML:

<ScrollViewer x:Name="MyScroller" Width="300" Height="100" Background="AliceBlue">
    <TextBlock TextWrapping="Wrap">
        Even if you use my workaround ...
    </TextBlock>
</ScrollViewer>

Page.xaml.cs example:

using Cooper.Silverlight.Controls;

public Page()
{
    InitializeComponent();
    ScrollViewerMouseWheelSupport.Initialize(this);
    MyScroller.AddMouseWheelSupport();
}

Adam has a few working demos, this one is showing off the scrollbar where the mouse is hovering over the needed scroll area.

image

Tag:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
    Unsubscribing
    Subscribing

Remove this comment

Remove this thread

Close

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.