public override void OnApplyTemplate()
{
base.OnApplyTemplate();
this.DragHandle = this.GetTemplateChild(ReorderListBoxItem.DragHandlePart) as ContentPresenter;
if (this.DragHandle == null)
{
throw new InvalidOperationException("ReorderListBoxItem must have a DragHandle ContentPresenter part.");
}
VisualStateManager.GoToState(this, ReorderListBoxItem.ReorderDisabledState, false);
VisualStateManager.GoToState(this, ReorderListBoxItem.NotDraggingState, false);
VisualStateManager.GoToState(this, ReorderListBoxItem.NoDropIndicatorState, false);
}