Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 671209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:20:53+00:00 2026-05-14T00:20:53+00:00

In a WPF application I have a ListView: <ListView Name=ItemSelList ItemsSource={Binding ItemColl} SelectionChanged=ItemSelList_SelectionChanged> <ListView.View>

  • 0

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?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:20:54+00:00Added an answer on May 14, 2026 at 12:20 am

    This is due to WPF picking up different themes for the two operating systems. Themes are default styles based on the operating system level. Vista gets you the Aero theme while Windows XP gets you the Luna set of themes.

    XP may not be capable of all the visual flashiness of the Aero theme and the Luna theme may look understated in Vista and Windows 7, but you can override the theme with a simple style. Simply define a style for your ListView that fully specifies the appearance that you want. I THINK (but am not certain) that Expression Blend has a way to extract the theme information for you.

    It appears you can also override the theme that WPF would pick for you (although I haven’t tried this myself).

    1. Add a reference to the assembly which contains the correct theme. For Vista (Aero), for example, this is PresentationFramework.Aero.
    2. Merge in the theme’s resource dictionary from the assembly in your App.xaml. Change the Source to be the correct assembly and component name. You can generally find the correct component name by searching on the version of windows you want and “wpf theme name” or something similar. Note that this will re-theme all controls in your application!

      <ResourceDictionary>
          <ResourceDictionary.MergedDictionaries>
              <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />
          </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
      

    If the desire is only to retheme the one ListView, I would merge the resource dictionary in the ListView itself or an immediate parent element.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that has a ListView with a GridView in it.
I have a ListView in a WPF Application that use Dynamic Binding . I
In my WPF application I have a View that is given a ViewModel, and
In a WPF/MVVM application I have a custom control on a particular view. This
I have a ListView in my WPF application. my ListViewItem s are just Images.
I have a ListView and ObservableCollection in my wpf application. I want to bind
In my WPF Application I have an GridViewColumn that looks like this: <GridViewColumn Width=170>
I'm writing a WPF desktop application and have a view that needs to look
I have a WPF app with a listview control. The application basically loads a
I am creating a Windows application (WPF) and C#. In my view, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.