question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MetroWindow not detectable by applications as Screen2Gif and WinSnap

See original GitHub issue

Describe the bug

For some reason, a MetroWindow isn’t seen as a Window by applications like Screen2Gif and WinSnap.

Steps to reproduce

  1. Install WinSnap or Screen2Gif
  2. 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:closed
  • Created 3 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Newrad0603commented, Jul 16, 2020

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.

2reactions
LyalinDotComcommented, Jul 10, 2020

Will try to assist, right now I am not sure who to ask but I am trying to figure it out…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found