How to make start menu transparent in Win11.

XUWANBIN 201 Reputation points
2022-12-10T14:28:31.033+00:00

The ui used by Windows11 feels very special, but I have been unable to achieve it by using the method of setting transparency before. May I ask, what api should I use to set transparency of Windows11 start menu?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,652 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,893 questions
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,786 Reputation points Microsoft Vendor
    2022-12-14T03:31:15.78+00:00

    Hello,

    Welcome to Microsoft Q&A!

    According to the link: https://github.com/Extrimis/Win32-Acrylic-Effect

    SetWindowCompositionAttribute() is an undocumented api in windows which allows us to enable Acrylic Effect, DWM Blur (same as DwmEnableBlurBehindWindow()) and transparency for Window. Since it is an undocumented API this api might be changed or removed in future versions of windows.

    As far as I'm concerned, the api is stopped working in Windows 11.

    If you want to want to enable the Transparency Effects, as I said above, you can do this by modifying the registry value.

    If you want to enable Acrylic Effect for the app, I suggest you could try to use winui2 to realize lt. Here is a sample you could refer to: Windows Forms Win2D Effects sample

    Acrylic material
    https://github.com/Microsoft/WinUI-Gallery
    https://github.com/microsoft/Windows.UI.Composition-Win32-Samples

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. S.Sengupta 19,661 Reputation points MVP
    2022-12-14T02:23:18.5+00:00

    Press Windows key + R to open the “Run” window and type “regedit” there. Click “OK” or press the ”Enter” key to open Registry Editor.

    In the Registry Editor window, go to the path below.

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize

    In the Personalize registry key, search for EnableTransparency and double-click on it to modify it.

    Change the Value data of EnableTransparency to “1” and click on “OK” to save changes.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.