public static Badge4 findBadgederTouch(InputEventArgs e) { DependencyObject findSource = e.OriginalSource as FrameworkElement; Badge4 draggedElement = null; // Find the ScatterViewItem object that is being touched. while (draggedElement == null && findSource != null) { if ((draggedElement = findSource as Badge4) == null) { findSource = VisualTreeHelper.GetParent(findSource); } } return(draggedElement); }
void init(Color c) { _badge = new Badge4(); _badge.Tag = this; RecontextBadge(); }
private void init(Color c) { _badge = new Badge4(); _badge.Tag = this; RecontextBadge(BadgesCtx.Get()); }