private void ConversationItem_DragLeave(object sender, DragEventArgs e) { _dragIndicator.IsOpen = false; _dragIndicator.StaysOpen = false; ConversationListItem listItem = (ConversationListItem)sender; listItem.SetBackgroundColor(new SolidColorBrush(ColorScheme.MenuLight)); }
private void ConversationItem_DragOver(object sender, DragEventArgs e) { ConversationListItem listItem = (ConversationListItem)sender; listItem.SetBackgroundColor(new SolidColorBrush(ColorScheme.MenuDarker)); _dragIndicator.IsOpen = true; _dragIndicator.Text = listItem.Conversation.Name; _dragIndicator.Placement = PlacementMode.Absolute; _dragIndicator.VerticalOffset = e.GetPosition(this).Y - 5; _dragIndicator.HorizontalOffset = e.GetPosition(this).X; }