שלום
אני מחפש דוגמא למימוש Drag and Drop עם MVVM.
האם למישהו יש המלצה על פתרון אלגנטי, שכולל יכולת לקבוע איך יראה ה Drag ויזואלית, ומה יקרה בזמן ה Drop ?
תודה
אסף
פתרונות כאלו תמיד יערבו Behaviors או Attached Property Behaviors (שזה תכל'ס אותו דבר).
תנסה את:
http://blog.pixelingene.com/2006/11/drag-drop-with-attached-properties/
או
http://www.codeproject.com/Articles/22855/ListBox-Drag-Drop-using-Attached-Properties
אתה יכול לשנות שם את הקוד על פי הדרישות שלך. תגיד במידה ולא ברור לא איך.
http://blogs.microsoft.co.il/blogs/eladkatz @ElatKt
הי אלעד
המימוש לא ניראה כל כך MVVM.
מה דעתך על:
http://www.codeproject.com/Articles/43614/Drag-and-Drop-in-WPF
http://www.codeproject.com/Articles/43702/Drag-and-Drop-in-WPF-Part-II