Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 01 06:20
    MateiIonutEduard commented #762
  • Jun 25 11:40
    MateiIonutEduard commented #774
  • Jun 24 15:02
    MateiIonutEduard commented #774
  • Jun 24 15:01
    MateiIonutEduard commented #774
  • Jun 22 10:59
    quasar-pankaj commented #774
  • Jun 22 09:19
    MateiIonutEduard commented #774
  • Jun 22 09:17
    MateiIonutEduard commented #774
  • Jun 22 09:15
    MateiIonutEduard commented #774
  • Jun 22 09:15
    MateiIonutEduard commented #774
  • Jun 22 09:15
    MateiIonutEduard commented #774
  • Jun 22 09:08
    MateiIonutEduard commented #774
  • Jun 22 08:58
    MateiIonutEduard commented #774
  • Jun 22 07:41
    jmacato closed #695
  • Jun 17 10:17
    MateiIonutEduard commented #774
  • May 26 21:25
    dsoronda commented #774
  • May 26 21:24
    dsoronda commented #774
  • May 24 14:26
    chandramohan83 opened #774
  • Apr 07 13:08
    riQQ commented #773
  • Apr 07 11:47
    TrevorDArcyEvans closed #773
  • Apr 07 11:47
    TrevorDArcyEvans commented #773
Dan Walmsley
@danwalmsley
Screens api
Screen.Scaling property
Dan Walmsley
@danwalmsley
Screens.All...
iterate through them to find the right one
then screen.PixelDensity
Michael Kruglos
@michaelkruglos
Screens doesn't have "All"
Dan Walmsley
@danwalmsley
image.png
see the first property
Might be better to use ScreenFromPoint or something like that
Michael Kruglos
@michaelkruglos
I see... how can I get a screen from Canvas?
Dan Walmsley
@danwalmsley
Screens.ScreenFromVisual(canvas)
that will tell you the screen the canvas is on
btw... why do you need the pixel density?
Michael Kruglos
@michaelkruglos
I see... and Screens itself?
Dan Walmsley
@danwalmsley
its rare to need that... since Avalonia handles scaling for you
Michael Kruglos
@michaelkruglos
I'm trying to layout a graph using Microsoft Automatic Graph Layout library and there's something there which wants DPI for some reason.
you can get the screens from the window
canvas.Root as Window
window.Screen.All etc
Michael Kruglos
@michaelkruglos
Thank you so much! That's very helpful!
Dan Walmsley
@danwalmsley
no problem...
btw Avalonia chat is https://gitter.im/AvaloniaUI/Avalonia or on telegram https://t.me/Avalonia
Michael Kruglos
@michaelkruglos
Sorry I was off topic.
Dan Walmsley
@danwalmsley
thats ok
;)
i just happened to notice the message here.. otherwise it could have gone un noticed for months
Gribochek277
@Gribochek277
Hello guys, can somebody confirm that this problem happens not only for me? Trying to build AvalonStudio.
'Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.Extensions.DependencyModel'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).'
I'm on elementary os 6, dotnet 5 installed from snap package.
Gribochek277
@Gribochek277
Oh, nevermind. Found the issue in gihub issues in repo.
Leon Astor
@AstorL_gitlab
Is project abandoned or not ?
@Gribochek277 About your problem. Remove your dotnet snap Instance and intall it from official microsoft deb packages