How To Create An Animated ScrollViewer (or ListBox) in WPF

UPDATED 05/22/09 In the comments, someone mentioned that the project wasn’t working properly for keyed scrolling. I’ve updated the project with: Key scrolling (left, right, up, down, page up, page down) CanKeyboardScroll property on the AnimatedScrollViewer so that keyboard scrolling can be turned off ScrollToSelectedItem property on the AnimatedListBox so that the user can have…

Read More

How to Assign ColumnHeaderContainerStyle and ColumnHeaderTemplate to a ListView Style

This is just a quick note on creating a ListView style with the appropriate GridView style and template assignments. Normally, I’ve been creating listviews that look like this: <ListView x:Name=”MyListView”                ItemContainerStyle=”{DynamicResource MyListViewItemContainerStyle}”>     <ListView.View>          <GridView ColumnHeaderContainerStyle=”{DynamicResource MyListViewHeaderStyle}”                          ColumnHeaderTemplate=”{DynamicResource MyGridColumnHeaderTemplate}”>  I did this because I didn’t know exactly how to assign these styles…

Read More