Show / Hide Table of Contents

Class ItemsControlExtensions

Extension methods for ItemsControl.

Inheritance
object
ItemsControlExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain.Extensions
Assembly: Phoenix.Plugin.BotBrain.Lists.dll
Syntax
public static class ItemsControlExtensions

Methods

View Source

GetDropIndexAtEdges(ItemsControl, DragEventArgs, bool)

Gets the index indicated by the drop event, if it occurred at the very top or bottom.

Declaration
public static int GetDropIndexAtEdges(this ItemsControl self, DragEventArgs e, bool isCopy)
Parameters
Type Name Description
ItemsControl self

The items control being extended.

DragEventArgs e

The drop event.

bool isCopy

Whether or not the event indicates a copy.

Returns
Type Description
int

The index.

View Source

GetDropIndexExact<T>(ItemsControl, DragEventArgs)

Gets the exact index for where the drop event occurred.

Declaration
public static int? GetDropIndexExact<T>(this ItemsControl self, DragEventArgs e) where T : ContentControl
Parameters
Type Name Description
ItemsControl self

The items control being extended.

DragEventArgs e

The drop event.

Returns
Type Description
int?

The index.

Type Parameters
Name Description
T

The item type.

View Source

GetDropIndexExact<T>(ItemsControl, Point)

Gets the exact index for where the drop event occurred.

Declaration
public static int? GetDropIndexExact<T>(this ItemsControl self, Point position) where T : ContentControl
Parameters
Type Name Description
ItemsControl self

The items control being extended.

Point position

The drop position.

Returns
Type Description
int?

The index.

Type Parameters
Name Description
T

The item type.

View Source

GetDropIndex<T>(ItemsControl, DragEventArgs, bool)

Gets the index indicated by the drop event.

Declaration
public static int GetDropIndex<T>(this ItemsControl self, DragEventArgs e, bool isCopy) where T : ContentControl
Parameters
Type Name Description
ItemsControl self

The items control being extended.

DragEventArgs e

The drop event.

bool isCopy

Whether or not the event indicates a copy.

Returns
Type Description
int

The index.

Type Parameters
Name Description
T

The item type.

  • View Source
In this article
Back to top Generated by DocFX