These are chat archives for AvaloniaUI/Avalonia

27th
Mar 2016
Steven Kirk
@grokys
Mar 27 2016 09:42
it's initialized the first time the ItemContainerGenerator property is accessed. https://github.com/Perspex/Perspex/blob/master/src/Perspex.Controls/ItemsControl.cs#L77
Ivan Kochurkin
@KvanTTT
Mar 27 2016 11:42
I tryed to run test app with last version of Perspex and got the following bug:
Perspex black window.png
What has \been broken?
Wiesław Šoltés
@wieslawsoltes
Mar 27 2016 12:45
@KvanTTT Do run test app on Windows 7 ? I do get sometimes black screen for example when app is minimized or windows is locked, I think they may be issue with SharpDX/Direct2D under Win7
Ivan Kochurkin
@KvanTTT
Mar 27 2016 12:48
Yep, I use Windows 7
Wiesław Šoltés
@wieslawsoltes
Mar 27 2016 12:49
Test app runs ok on Win10
Ivan Kochurkin
@KvanTTT
Mar 27 2016 12:49
How to fix it for Winodws 7?
Wiesław Šoltés
@wieslawsoltes
Mar 27 2016 12:49
no idea
but this issue in not new, that I'm sure
Ivan Kochurkin
@KvanTTT
Mar 27 2016 12:52
It appeared after last commits
Wiesław Šoltés
@wieslawsoltes
Mar 27 2016 12:53
well @grokys did some changes related to DPI
maybe those two issues are related somehow
Ivan Kochurkin
@KvanTTT
Mar 27 2016 12:55
Seems to me it's DPI related bug
There are some DPI changes
Ivan Kochurkin
@KvanTTT
Mar 27 2016 13:08
So, I fured out where is problem. If I'll change default value (96 instead of 1), then app will work correctly
Wiesław Šoltés
@wieslawsoltes
Mar 27 2016 13:12
96 seems to work on Win10 when using default DPI
Win10_1DPI.PNG
Win10_96DPI.PNG
Its rendering very small UI :smile:
Ivan Kochurkin
@KvanTTT
Mar 27 2016 13:18
Yep :smile: Therefor for OS without high DPI support default value should be 96
Wiesław Šoltés
@wieslawsoltes
Mar 27 2016 13:18
Perspex/Perspex#488
@grokys @KvanTTT Submited PR
Ivan Kochurkin
@KvanTTT
Mar 27 2016 13:19
:+1:
Steven Kirk
@grokys
Mar 27 2016 13:57
Ah yeah, sorry about that! It used to be a scaling factor but then I changed it to dpi but forgot to change the default
Well found
I'm not at home now, will merge when I get home
Thanks!
Darnell Williams
@Seeker1437
Mar 27 2016 16:25
niiice