Class ListItemMoveBehavior
- Namespace
- HeBianGu.General.WpfControlLib
- Assembly
- HeBianGu.General.WpfControlLib.dll
Represents a behavior that allows moving items in an ItemsControl by dragging them.
public class ListItemMoveBehavior : IDisposable
- Inheritance
-
ListItemMoveBehavior
- Implements
- Inherited Members
- Extension Methods
Fields
AnimationDurationProperty
Identifies the AnimationDuration attached dependency property.
public static readonly DependencyProperty AnimationDurationProperty
Field Value
IsElementDraggableProperty
Identifies the IsElementDraggable attached dependency property.
public static readonly DependencyProperty IsElementDraggableProperty
Field Value
IsEnabledProperty
Identifies the IsEnabled attached dependency property.
public static readonly DependencyProperty IsEnabledProperty
Field Value
ReorderCompletedEvent
Identifies the ReorderCompleted attached event.
public static readonly RoutedEvent ReorderCompletedEvent
Field Value
Methods
AddReorderCompletedHandler(FrameworkElement, RoutedPropertyChangedEventHandler<int>)
Adds the reorder completed handler.
public static void AddReorderCompletedHandler(FrameworkElement element, RoutedPropertyChangedEventHandler<int> handler)
Parameters
elementFrameworkElementThe element.
handlerRoutedPropertyChangedEventHandler<int>The handler.
Dispose()
Performs event clean-up.
public void Dispose()
GetAnimationDuration(ItemsControl)
Gets the duration of the animation.
public static TimeSpan GetAnimationDuration(ItemsControl itemsControl)
Parameters
itemsControlItemsControlThe items control.
Returns
GetIsElementDraggable(UIElement)
Gets a value indicating whether the element can be used for dragging.
public static bool GetIsElementDraggable(UIElement obj)
Parameters
objUIElementThe object.
Returns
GetIsEnabled(ItemsControl)
Gets a value indicating whether the beavior is enabled.
public static bool GetIsEnabled(ItemsControl obj)
Parameters
objItemsControlThe object.
Returns
RemoveReorderCompletedHandler(FrameworkElement, RoutedPropertyChangedEventHandler<int>)
Removes the reorder completed handler.
public static void RemoveReorderCompletedHandler(FrameworkElement element, RoutedPropertyChangedEventHandler<int> handler)
Parameters
elementFrameworkElementThe element.
handlerRoutedPropertyChangedEventHandler<int>The handler.
SetAnimationDuration(ItemsControl, TimeSpan)
Sets the duration of the animation.
public static void SetAnimationDuration(ItemsControl itemsControl, TimeSpan value)
Parameters
itemsControlItemsControlThe items control.
valueTimeSpanThe value.
SetIsElementDraggable(UIElement, bool)
Sets a value indicating whether the element can be used for dragging.
public static void SetIsElementDraggable(UIElement obj, bool value)
Parameters
SetIsEnabled(ItemsControl, bool)
Sets a value indicating whether the beavior is enabled.
public static void SetIsEnabled(ItemsControl obj, bool value)
Parameters
objItemsControlThe object.
valueboolif set to
true, enables the behavior.