-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get Screens in Design Preview in 11.2.0
#17401
Comments
11.2.0
Maybe you try to access it too early? Try Dispatcher.UiThread.Post to wait for window to be loaded. |
Wait the previewer doesn't know about screens at all afaik. So if you are seeing it in the designer, this is probably by design. |
As was mentioned in the discussion, it does in fact have an implementation for Screens and it does look like it's wired up properly. I am however not clear why it's not working as it looks fine to me just from looking at the code. The exception can only happen if for some reason Screens returns null, which it should never do. The only thing that makes sense is if |
@Coloryr can you try to isolate the issue? Maybe project configuration overrides backend or breaks something unexpectedly. |
I know what happend, I opened a new window on
And the new window will also open in preview. |
11.1.4 is work well |
https://github.com/Coloryr/ColorMC/blob/9c0fe2d4e543e38d7d26c06f57a3f77f194c832c/src/ColorMC.Gui/UI/Windows/ABaseWindow.cs#L114
Originally posted by @Coloryr in #17395
The text was updated successfully, but these errors were encountered: