Exemple #1
0
        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);
        }
Exemple #2
0
 void init(Color c)
 {    
     _badge = new Badge4();
     _badge.Tag = this;
     RecontextBadge();
 }
Exemple #3
0
 private void init(Color c)
 {
     _badge = new Badge4();
     _badge.Tag = this;
     RecontextBadge(BadgesCtx.Get());
 }