protected void OnIsReorderEnabledChanged(DependencyPropertyChangedEventArgs e) { string visualState = (bool)e.NewValue ? ReorderListBoxItem.ReorderEnabledState : ReorderListBoxItem.ReorderDisabledState; VisualStateManager.GoToState(this, visualState, true); }