Appearance of a WPF ListView under Windows Vista and Windows XP is not the same

Posted by rem on Stack Overflow See other posts from Stack Overflow or by rem
Published on 2010-03-12T08:33:59Z Indexed on 2010/03/12 8:37 UTC
Read the original article Hit count: 391

Filed under:
|
|
|
|

In a WPF application I have a ListView:

<ListView Name="ItemSelList" ItemsSource="{Binding ItemColl}" SelectionChanged="ItemSelList_SelectionChanged">
   <ListView.View>
     <GridView>
      <GridViewColumn Header="Date" Width="90" DisplayMemberBinding="{Binding Date}"/>
      <GridViewColumn Header="Time" Width="90" DisplayMemberBinding="{Binding Time}"/>
      <GridViewColumn Header="Description" Width="250" DisplayMemberBinding="{Binding Description}"/>
     </GridView>
  </ListView.View>
</ListView>

When running application under Windows Vista, everything is OK. When running under Windows XP - the default font size of ListView's rows is too small and rows of the ListView don't change color when user hovers with a mouse over them.

How to do so that ListView appearance under Windows XP is the same as under Vista?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listview