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

  • Home
  • SEARCH
  • 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 6021665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:44:47+00:00 2026-05-23T03:44:47+00:00

My application has a custom window design, which means that every window has the

  • 0

My application has a custom window design, which means that every window has the following parameters set (XAML):
WindowStyle="None"
AllowsTransparency="False"

One of the sub windows needs to display a Flash component, the Flash ActiveX component is hosted thrugh XAML:

<ax:AxShockwaveFlash x:Name="axFlash"/>

With regards to window transparency, there is a known issue with WPF and hosted winforms components, it just doesn’t work out of the box. In order to be able to view the Flash component, AllowsTransparency must be set to "False", otherwise, the flash component will simply not be displayed.

To maintain the window’s transparency (and general L&F), I have modified this piece of code: Link

        IntPtr hwnd = new WindowInteropHelper(window).Handle;

        // Set the background to transparent from both the WPF and Win32 perspectives
        window.Background = Brushes.Transparent;
        HwndSource.FromHwnd(hwnd).CompositionTarget.BackgroundColor = Colors.Transparent;

        MARGINS margins = new MARGINS(margin);
        DwmExtendFrameIntoClientArea(hwnd, ref margins);

So everything is now working great, until I started checking it on XP. Obviously, the above piece of code doesn’t work on XP since the DLL used (dwmapi.dll) is a Vista DLL.

The question is whether the same result can be achieved in XP and if so, how?

I’ve tried altering this piece of code: How to create a semi transparent window in WPF that allows mouse events to pass through or similar other examples, yet, I didn’t manage to achieve any window transparency.

Would appreciate any advice.

  • 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-23T03:44:48+00:00Added an answer on May 23, 2026 at 3:44 am

    I believe that it is not possible to do what i want to do… I ended up creating square windows on XP to avoid any transparency related visual issues.

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

Sidebar

Related Questions

I've inherited a desktop application which has a custom .NET file chooser that is
I have an application that has created a number of custom event log sources
I'm building an application that has its own custom chrome. I have turned the
I wrote a menu application that has no persistent window or standard menu. When
I am collecting logs from several custom made applications. Each application has it's own
I currently work at a company that has a lot of custom applications that
I am currently building an application that consists of several components, each of which
Assume i have a custom Windows application written in C#. This application has only
Application has an auxiliary thread. This thread is not meant to run all the
My application has a need to let the user choose a date from a

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.