Avalonia UI - 08 - Drag and Drop

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 17

  • @p00laris
    @p00laris 8 месяцев назад +12

    We all agree Avalonia is one of the best GUI platforms out there for c#, but the documentation is terrible at least for beginners like me. It’s nice to see your efforts in creating such videos I think it’s necessarily needed, it would be nice to explaining core concepts and basics sequentially. I’ve been started to learn avalonia for almost a month and I’m lost in the documentations. Thanks ❤

    • @CorteX1988
      @CorteX1988 8 дней назад

      Curious what your opinion is now 7 months later. It's been a month for me and I'm considering going back to winforms. At least that has a built-in file explorer, a good treeview and I dont need to find nonexistant documentation on how to set up drag/drop events.

  • @JohnTNP
    @JohnTNP 8 месяцев назад +1

    Many thanks for your content. You're building up the Avalonia UI community! 🎉

  • @kentswan3230
    @kentswan3230 8 месяцев назад

    Excellent initial exploration of Avalonia's D & D foibles. Thanks.😀

  • @gadgetkh9408
    @gadgetkh9408 8 месяцев назад

    Thank you for your effort! Waiting for more videos on Avalonia UI soon!

  • @李通-b3v
    @李通-b3v 6 дней назад

    It's Cool!! Thank you!

  • @ArchLeaders
    @ArchLeaders 7 месяцев назад

    This is a very helpful and well made video! Thank you very much!

  • @chancellormalkj
    @chancellormalkj 6 месяцев назад

    Instead of offsetting the ghost object, you can turn IsHitTestVisible="False" in the axaml for an easier solution. Also, as far as I can tell, when something is initialized as IsVisible="False", Avalonia doesn't bother rendering it until it's changed to visible: causing a visual artifact. Though, it's curious as to why the artifact isn't in the same location as the ghost.
    Anyhow, thanks, this was a massive help and dearly needed given the dearth of information on the subject :D

    • @MammaMiaDev
      @MammaMiaDev  6 месяцев назад

      Oh thanks for the hint! Gotta test it asap!

  • @maggot008
    @maggot008 7 месяцев назад

    Thanks

  • @mmacrobert
    @mmacrobert 7 месяцев назад

    Thanks again for the series. Is there a way to use Avalonia to store file data in a Cross Platform way? Obviously this might not work for Browser based builds, but I'm struggling to understand how to persist application state in a cross-platform way.

    • @MammaMiaDev
      @MammaMiaDev  7 месяцев назад +1

      Hey, i'm not really sure honestly. By looking into the AvaloniaUI documentation I've found a page for "Data Persistence" here docs.avaloniaui.net/docs/concepts/reactiveui/data-persistence. It's based on ReactiveUI and it seems to give the possibility to serialize and store the whole view. It's definitely worth to investigate further.

  • @FilipCordas
    @FilipCordas 5 месяцев назад +1

    Do you know how to create a hover effect when item is over a drop zone?

    • @MammaMiaDev
      @MammaMiaDev  5 месяцев назад

      That's a good question! I haven't tried it yet, but by heart I'd first split the problem into 2 separate mini challenges:
      1. detect when cursor is over the task container (by playing around with PointerEntered and PointerExited event handlers maybe)
      2. check whether the cursor is carrying an item and apply some vfx in case
      Let me know if you manage to make it work, it'd be awesome!

    • @FilipCordas
      @FilipCordas 5 месяцев назад +1

      @@MammaMiaDev Problem I had was pointer enter was not getting triggered when I tried strange really.

    • @yarmgl1613
      @yarmgl1613 4 месяца назад

      @@FilipCordas yeah same pointer events don't work when it's pressed