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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:26:52+00:00 2026-05-13T09:26:52+00:00

I am needing to make a custom window with WindowStyle.None, AllowsTransparency = true, etc.

  • 0

I am needing to make a custom window with WindowStyle.None, AllowsTransparency = true, etc.

One requirement is a custom ResizeGrip control.

I have this working with ResizeMode.CanResizeWithGrip, taking some code from an open source project found here: Fluid Kit

See the “GlassWindow” class if you’re interested.

To do the work, I’m calling the following code on the MouseLeftButtonDown event of the ResizeGrip:

NativeMethods.SendMessage(_interopHelper.Handle, WM.SYSCOMMAND, (IntPtr)((int)SC.SIZE + (int)sizingAction), IntPtr.Zero);

SizingAction is defined as:

    enum SizingAction
    {
        West = 1,
        East = 2,
        North = 3,
        NorthWest = 4,
        NorthEast = 5,
        South = 6,
        SouthWest = 7,
        SouthEast = 8,
    }

It is all working, but I notice some strangeness when you resize via a SouthWest (or any left or top) side. You are able to see the WPF window redraw for both a size and position change (which always occurs when resizing from the top or left).

If you try this on any window with the default window style and resize mode, it works just fine. With the exception of XP, you have to have the classic theme on.

Does anyone know an alternative to using this? Or a way to fix it?

I also posted some information on MSDN forums, here: MSDN Forums

PS – You can see this behavior first hand if someone wants to svn checkout Fluid Kit and run the GlassWindow example by setting StartupUri=”GlassWindow/Window1.xaml” in their example project.

EDIT: Microsoft told me to send a product suggestion…

The link is here if anyone has a similar problem:

Product Suggestions

I also put an example here if you would like to try it first hand:

Sample

  • 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-13T09:26:52+00:00Added an answer on May 13, 2026 at 9:26 am

    Microsoft reports this happens to all WPF-windows.

    Standard styles work because windows will render the title bar, window border, etc. When resizing a standard-bordered window, you can see the WPF client area flicker on any machine.

    If you set WindowStyle to None, then WPF is rendering the entire window and so this flickering becomes more noticeable since the entire window flickers.

    For now, the workaround is to make your window a fixed size and resize the client area. However, this is pretty performance intensive–so you might be better off to live with flickering.

    You can follow my link above to my product suggestion to see if Microsoft is ever going to fix this. Please vote for it if you have a similar issue.

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

Sidebar

Ask A Question

Stats

  • Questions 404k
  • Answers 405k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is almost certainly related to gzip encoding, the raw… May 15, 2026 at 5:39 am
  • Editorial Team
    Editorial Team added an answer That's not really possible to do with Mercurial. The whole… May 15, 2026 at 5:39 am
  • Editorial Team
    Editorial Team added an answer jQuery UI has a standard naming convention, you can view… May 15, 2026 at 5:39 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.