Class Panel.PanelChildrenComparer
A comparer sorting the Panel children by increasing Z-Index.
protected class Panel.PanelChildrenComparer : Comparer<UIElement>, IComparer<UIElement>, IComparer- Inheritance
- 
      objectPanel.PanelChildrenComparer
- Implements
- Inherited Members
Methods
Compare(UIElement, UIElement)
When overridden in a derived class, performs a comparison of two objects of the same type and returns a value indicating whether one object is less than, equal to, or greater than the other.
public override int Compare(UIElement x, UIElement y)Parameters
Returns
- int
- A signed integer that indicates the relative values of - xand- y, as shown in the following table.- Value - Meaning - Less than zero - xis less than- y.- Zero - xequals- y.- Greater than zero - xis greater than- y.
Exceptions
- ArgumentException
- Type - Tdoes not implement either the IComparable<T> generic interface or the IComparable interface.