Class PanelDragDropTarget
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class PanelDragDropTarget : DragDropTarget<Panel, UIElement>
Constructors
| Improve this Doc View SourcePanelDragDropTarget()
Initializes a new instance of the PanelDragDropTarget class.
Declaration
public PanelDragDropTarget()
Methods
| Improve this Doc View SourceAddItem(Panel, Object)
Adds an item to an items control.
Declaration
protected override void AddItem(Panel itemsControl, object data)
Parameters
Type | Name | Description |
---|---|---|
Panel | itemsControl | The items control. |
System.Object | data | The data to be inserted. |
Overrides
ContainerFromIndex(Panel, Int32)
Retrieves the item container at a given index.
Declaration
protected override UIElement ContainerFromIndex(Panel itemsControl, int index)
Parameters
Type | Name | Description |
---|---|---|
Panel | itemsControl | The items control. |
System.Int32 | index | The index at which to retrieve the container. |
Returns
Type | Description |
---|---|
UIElement | The item container at a given index. |
Overrides
IndexFromContainer(Panel, UIElement)
Retrieves the index of an item container.
Declaration
protected override int? IndexFromContainer(Panel itemsControl, UIElement itemContainer)
Parameters
Type | Name | Description |
---|---|---|
Panel | itemsControl | The items control. |
UIElement | itemContainer | The item container. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> | The index of an item container. |
Overrides
InsertItem(Panel, Int32, Object)
Inserts an item into an items control.
Declaration
protected override void InsertItem(Panel itemsControl, int index, object data)
Parameters
Type | Name | Description |
---|---|---|
Panel | itemsControl | The items control. |
System.Int32 | index | The index at which to insert the item. |
System.Object | data | The data to be inserted. |
Overrides
INTERNAL_ReturnNewTItemsControl()
Create a new TItemsControlType
Declaration
protected override Panel INTERNAL_ReturnNewTItemsControl()
Returns
Type | Description |
---|---|
Panel | A new TItemsControlType |
Overrides
OnContentChanged(Object, Object)
Confirms that the Content property is set to an object of type Panel.
Declaration
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldContent | The old content value. |
System.Object | newContent | The new content value. |
Overrides
| Improve this Doc View SourceRemoveItem(Panel, Object)
Removes an item from an items control.
Declaration
protected override void RemoveItem(Panel itemsControl, object data)
Parameters
Type | Name | Description |
---|---|---|
Panel | itemsControl | The items control. |
System.Object | data | The data to be removed. |
Overrides
RemoveItemAtIndex(Panel, Int32)
Removes data from an ItemsControl.
Declaration
protected override void RemoveItemAtIndex(Panel itemsControl, int index)
Parameters
Type | Name | Description |
---|---|---|
Panel | itemsControl | The items control. |
System.Int32 | index | The index at which to remove an item. |