Тёмный
No video :(

Avalonia UI - 08 - Drag and Drop 

Mamma Mia Dev
Подписаться 1,1 тыс.
Просмотров 4,8 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@p00laris
@p00laris 7 месяцев назад
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 ❤
@JohnTNP
@JohnTNP 7 месяцев назад
Many thanks for your content. You're building up the Avalonia UI community! 🎉
@kentswan3230
@kentswan3230 7 месяцев назад
Excellent initial exploration of Avalonia's D & D foibles. Thanks.😀
@gadgetkh9408
@gadgetkh9408 7 месяцев назад
Thank you for your effort! Waiting for more videos on Avalonia UI soon!
@ArchLeaders
@ArchLeaders 6 месяцев назад
This is a very helpful and well made video! Thank you very much!
@chancellormalkj
@chancellormalkj 5 месяцев назад
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 5 месяцев назад
Oh thanks for the hint! Gotta test it asap!
@FilipCordas
@FilipCordas 4 месяца назад
Do you know how to create a hover effect when item is over a drop zone?
@MammaMiaDev
@MammaMiaDev 4 месяца назад
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 4 месяца назад
@@MammaMiaDev Problem I had was pointer enter was not getting triggered when I tried strange really.
@yarmgl1613
@yarmgl1613 3 месяца назад
@@FilipCordas yeah same pointer events don't work when it's pressed
@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 6 месяцев назад
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.
@maggot008
@maggot008 6 месяцев назад
Thanks