Example #1
0
        private void OnDragEndedPrivate(object sender, EventArgs e)
        {
            IsOrdering = false;

            if (_advisor == null)
            {
                return;
            }

            _advisor.OnOrderEnd(FrameworkElement);

            _advisor = null;
        }
Example #2
0
        private void OnDragStartedInternal(object sender, EventArgs e)
        {
            var element = FrameworkElement;

            _advisor = FindAdvisor(element);

            if (_advisor == null)
            {
                return;
            }

            _advisor.OnOrderStart(FrameworkElement);

            IsOrdering = true;
        }
Example #3
0
 public static void SetAdvisor(DependencyObject depObj, IOrderableAdvisor value)
 {
     depObj.SetValue(AdvisorProperty, value);
 }