MetroWindow not detectable by applications as Screen2Gif and WinSnap
See original GitHub issueDescribe the bug
For some reason, a MetroWindow
isn’t seen as a Window by applications like Screen2Gif and WinSnap.
Steps to reproduce
- Install WinSnap or Screen2Gif
- Try to record the window (Screen2Gif) or take a screenshot of the window (WinSnap)
Expected behavior
MetroWindow
being like any other window and being selectable in applications that requires you to select windows.
Actual behavior
- Screen2Gif can’t find Window.
- WinSnap returns a completely blank image.
Additional note
Happens only if the VS debugger is attached.
Environment
MahApps.Metro version: v2.1.0
Windows build number: Win10 2004 [Version 19041.329]
Visual Studio: 2019 16.6.1
Target Framework: .Net Core 3.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (4 by maintainers)
Top Results From Across the Web
MahApps.Metro window not showing with version 2.2.0 ...
I have a custom metrowindow that acts as a splash screen. This is started in different thread. However, execution does not happen after...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I worked with @LyalinDotCom and came up with a sample that creates a WPF window that is visible to ScreenToGif like VS is, and allows custom chrome. It can be found here: https://github.com/LyalinDotCom/WPF_SingleBorderWindowNoChrome
I tried to comment the code to explain the basics, but if you have any questions, feel free to ask.
Will try to assist, right now I am not sure who to ask but I am trying to figure it out…