Comments (22)
@joce Our call was very helpful.
I finally found a way to reproduce the issue.
from snoopwpf.
Does that happen with every application you attach to?
from snoopwpf.
I just upgrade to the latest this morning, started my application, snooped it and it was like that. Didn't do anything special.
The Dark mode works properly though which I'm using right now as a workaround.
edit And yes, it seems to be happening only in a specific application.
from snoopwpf.
Would it be possible to share your application?
from snoopwpf.
Unfortunately no, it's not my application but my employer's. I can't distribute it.
from snoopwpf.
That'll make it more difficult to fix as i can't reproduce the issue on my machine.
Could you try to snoop Snoop via the "Debug" menu and have a look at the colors Snoop is using?
It looks like, at least, the foreground color seems to be overwritten by the app being snooped, which usually shouldn't be possible as Snoop already does quite a lot to prevent that from happening.
from snoopwpf.
It does this on my machine as well, but malfunctions in Windows dark mode, and works correctly in light mode (I did install the program with dark mode enabled). I can confirm that it is application specific as well, testing it in other apps leads to correct results. Unfortunately my app is also not distributable.
from snoopwpf.
Could you try to use the debug menu in Snoop and choose "Snoop Snoop".
After that inspect the Snoop UI itself, have a look at the foreground property of one of the elements in the grid which has a wrong foreground?
The foreground should reference to the resource key "Snoop.Brushes.Default.Foreground".
Something in your application seems to influence that value.
from snoopwpf.
@NMBSdtayloe @mo-russo Have you tried the above to provide some information on the cause for this issue?
from snoopwpf.
@batzen Can you provide some guidance for how and where this value would be found? I did "Snoop Snoop" and this is maybe what you are looking for. I put a red box around an instance of the foreground brush you mentioned.
from snoopwpf.
@NMBSdtayloe You have to inspect the TextBlock which has the wrong foreground while in dark mode and being attached to your application.
from snoopwpf.
These are some of the instances of textblock in my app. I apologize in advance, I do not have any experience in using snoop or digging through the treeview of a WPF app. I searched for textblock again later and somehow got more results and sometimes just a flat list or it selects the first random textblock it finds.
from snoopwpf.
@NMBSdtayloe Is there a chance we can meet via Zoom, Skype, Teams or something like that? Then you could share your screen and I could tell you what you have to do to narrow down the issue.
from snoopwpf.
Have you guys tried version 4.0.1? Just tested 5.0.2 vs 4.0.1 and on my end this issue happens after 4.0.1. Maybe the error regressed?
from snoopwpf.
I changed quite a lot of the theme code etc. So it's most likely a regression, but as long as there is no repro I can't fix it as it happens with none of the apps I tried.
@EgilSandfeld do you have a repro?
from snoopwpf.
@EgilSandfeld @mo-russo @NMBSdtayloe ping
from snoopwpf.
@batzen Have you made any progress on this? I'm having the same issue.
However, same as the other users, I can't distribute the app I'm snooping, but I'm willing to help.
from snoopwpf.
@joce i still haven't seen an app causing this issue, so there is sadly still no fix or progress.
Could you follow the steps from #397 (comment) or would you be available for a call so we can narrow down the cause?
from snoopwpf.
Err. Even doing Snoop Snoop, I get the same issue!
from snoopwpf.
As others pointed out, it works fine when in Dark Mode on my side as well.
Can't you repro when you're in default app mode is Light Mode?
from snoopwpf.
This is what i get when using light mode system wide and attaching Snoop:
from snoopwpf.
Interesting.
I DM'd you on twitter to book a Zoom appointment.
from snoopwpf.
Related Issues (20)
- Cannot attach the snoop to the .net framework 4.5 single app HOT 8
- Save the Current Preview to file does not work all the time HOT 5
- Crash when try to edit the any Property in snoop HOT 5
- Snoop does not show version HOT 1
- After upgrading my app to .net 8 snoop no longer works with it
- Change key for Ctrl-Shift-MouseOver HOT 4
- Add mention about SignPath Foundation and free code certificate in Readme.md HOT 2
- Feature Request: Option to snoop without activating snoop on global shortcut HOT 5
- StackOverflowException on Ctrl+Shift HOT 9
- Unable to build if ARM MSVC tools not installed HOT 3
- keyboard not working in snoop window HOT 3
- Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.Object,System.EventHandler]' to type 'System.Collections.Hashtable'. HOT 1
- Unable to attached snoop to application: unauthorized access exception HOT 2
- [Feature request] show current version
- [Feature Request] Tab with names in scope for binding parameter ElementName HOT 1
- Unable to compile from source code HOT 10
- Installer: "Installation directory must be on a local hard drive" HOT 7
- Question: Injecting RPC Services into running application HOT 2
- Cannot serialize a non-public type 'System.Windows.Controls.DataGridHeadersVisibilityToVisibilityConverter'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snoopwpf.