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 6009829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:01:40+00:00 2026-05-23T02:01:40+00:00

All is fine and dandy on my Win 7 x64 based system running an

  • 0

All is fine and dandy on my Win 7 x64 based system running an app built in .NET4.0. However, not so good on the XP SP3 box. Rendering seems to be an issue. Borders are appearing where I dont want them to and dynamically populated items in ItemsControl are switching between values in a combobox!
Following is what I have tried so far.

Ive been going through this question and tried to debug further.

  1. Turn off hardware acceleration off on the desktop properties. (didnt seem to make any difference)
  2. Add registry entry to turn off hardware acceleration (didnt seem to make any difference)
  3. Add the following code on MainWindow.Xaml.Cs:

    protected override void OnSourceInitialized(EventArgs e)
    {
    var hwndSource = PresentationSource.FromVisual(this) as HwndSource;
    if (hwndSource != null)
    {
    hwndSource.CompositionTarget.RenderMode = RenderMode.SoftwareOnly;
    _log.Debug(“successfully set render mode to software”);

            _log.Debug("WPF Tier = {0}", RenderCapability.Tier / 0x10000);
        }
        base.OnSourceInitialized(e);
    }
    

Log shows that the Tier is 0. This XP SP3 box seems to have DirectX 9.0c.
4. Added the following code to App.xaml.cs:

protected override void OnStartup(StartupEventArgs e)
    {
        RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
    }

Im not sure what else to try. Any assistance is welcome!

Thanks,

  • 1 1 Answer
  • 0 Views
  • 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-23T02:01:41+00:00Added an answer on May 23, 2026 at 2:01 am

    I believe Ive got the answer (at least a solution : )). Two things were bugging me about the whole thing.

    1. Borders around ComboBox items when they didnt need to be there
    2. Values in dynamically bound ComboBox items flickering. Ie “ASDFASDF” would flick between “ASDF” and “ASDFASDF”.

    To fix item 1, I took out the Border style definition in App.xaml file. Individually define Border properties on each tag. I’ll have to look further into this issue.

    As for item 2, I was using the UniformWrapPanel code from this article. This seems to be calling protected override Size MeasureOverride(Size availableSize) constantly and not only does it slow things down but also not sure about how to best render the contents within a ComboBox. In the end I defined the widest Width property I could think of but will most likely end up binding to a property in View-Model. I have to figure out how to determine a Width based on font size and the length of characters to fit in.

    I hope this would help some one : )

    Cheers,

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

Sidebar

Related Questions

The code below works all fine and dandy. However, I would like to put
My DAL is created using Linq and all is fine. However, on one page,
I’ve just created a WCF service/client and it all works fine when running on
I'm running Django 1.2.1 for my personal website with a blog. It's all fine
Hi all i have the following script which is all fine and dandy and
I'm building an interface in Visual Studio. All fine and dandy. Then yesterday I
Working on a tracking application using GPS. It is all fine, but sometimes because
They were all working fine on my XAMMP sandbox but now nothing. Something im
My CSS for the website all looks fine in Firefox but in both Chrome
I have website, usually all looks fine but sometimes one div is on the

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.