Class ItemsControlExtensions
Extension methods for ItemsControl.
Inherited Members
Namespace: Phoenix.BotBrain.Extensions
Assembly: Phoenix.Plugin.BotBrain.Lists.dll
Syntax
public static class ItemsControlExtensions
Methods
View SourceGetDropIndexAtEdges(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. |
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. |
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. |
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. |