Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

The blog is close down

We will no longer keep this blog. For information about WPF, you can find more in Kevin Moore's blog: http://blogs.msdn.com/okoboji/ Thanks, ATC Avalon Team

A Fancy StatusBar

Download and try it! When moving Mouse over an item, the item jumps up until Mouse leaves. The key steps to achieve it are as follows. 1. Subclass StatusBarItem and add new property ImagePath. Therefore, we can pass image to StatusBarItem easily. 2. Subclass
Posted by ATC Avalon Team | (Comments Off)
Filed under:

Attachment(s): StatusBarExtension.zip

How to Create a Custom View

One of the most powerful features of ListView is supporting custom views. If built-in views do not apply your scenarios, you can easily write your own. ListView will handle your views the same way with built-in views. Creating a custom view is pretty
Posted by ATC Avalon Team | 8 Comments

Attachment(s): CustomView.zip

How to display data from database?

It is common for Li stView to display data from database. In this blog, I will briefly introduce how to do this. To achieve this, we need to resolve two problems: Binding data table to Li stView; Binding fields of data table to GridViewColumns. Binding
Posted by ATC Avalon Team | 1 Comments
Filed under:

Fixed-Width Column in ListView: A Column that cannot be resized

A fixed-width column is a column that cannot be resized by mouse dragging or double-clicks. You can find instances in outlook. Currently two methods can be used to achieve the effect. One is to restyle GridViewColumnHeader to remove the gripper inside

Other solutions to implement Alternate Background

We have found three solutions to achieve alternative background scenarios so far. The first one is provided in the previous post. Now we will describe another two. The second solution: D erive from Li stView, override PrepareContainerForItemOverride method
Posted by ATC Avalon Team | 11 Comments
Filed under:

Alternate Background for ListViewItems

This sample shows how to create a ListView control that uses a GridView to display a list of dates that are defined as DateTime objects. Items in this example have alternate background. Key Step 1 . Restyle ListViewItem, and set its Background by converter
Posted by ATC Avalon Team | 2 Comments
Filed under:

Attachment(s): AlternateBackground.zip

ListView with grouping (In GridView mode)

ListView inherits GroupStyle from ItemsControl, so we can easily achieve grouping for GridView. The only thing we should provide is a GroupStyle. Besides, in order to collapse and expande a group, an Expander is added in the GroupStyle. The number on
Posted by ATC Avalon Team | 12 Comments
Filed under:

Attachment(s): GridViewWithGrouping.xaml

Editing In ListView

Li stView does not support editing in V1, but for those who are familiar with File Explorer, editing is quite useful. I will introduce how to make a cell editable in Li stView. Furthermore, you will find it is easy to build a custom control. However,
Posted by ATC Avalon Team | 24 Comments
Filed under:

Attachment(s): editing.zip

ListView Sorting

This sample shows how to create a ListView control that uses a GridView to display a list of dates that are defined as DateTime objects. The sample enables sorting of data in ascending or descending order according to the contents of one column. Key Step
Posted by ATC Avalon Team | 8 Comments
Filed under:

Attachment(s): ListViewSorting.zip

TreeListView: Show Hierarchy Data with Details in Columns

This is the first session of this topic. I’ll introduce the minimum steps needed to build a TreeListView. The TreeListView is able to present hierarchy data with details in columns. See the following diagram: The main Avalon elements we are going to cover
Posted by ATC Avalon Team | 17 Comments
Filed under:

Attachment(s): TreeListView.zip

A Step-by-Step to Create a Song List

How to create a song list above with some fancy effects? Now it is easy with Li stView in Avalon. 1. To simplify, we can use XmlDataProvider to provide data for Li stView, the xaml looks like below: <XmlDataProvider x:Key="MyData" XPath="/Info">
Posted by ATC Avalon Team | 12 Comments
Filed under:

Attachment(s): SongList.zip
 
Page view tracker