Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool
Ejemplo n.º 1
0
        // A coercion method for the property
        private static object CalculateIsMouseDirectlyOverItem(DependencyObject item, object value)
        {
            // This method is called when the IsMouseDirectlyOver property is being calculated
            // for a TreeViewItem.

            if (item.Equals(_currentItem))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
Ejemplo n.º 2
0
 private static bool IsDragging(DependencyObject control)
 {
     return control.Equals(draggingControl);
 }