/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnActiveLayerInterfaceChanged(object sender, BindableValueChangedEventArgs <EditorLayerInterface> e) { switch (e.Value) { case EditorLayerInterface.Composition: LayerCompositor.ClearAnimations(); LayerCompositor.MoveToX(0, Easing.OutQuint, 350); LayerEditor.ClearAnimations(); LayerEditor.MoveToX(LayerEditor.Width, Easing.OutQuint, 350); break; case EditorLayerInterface.Editing: LayerCompositor.ClearAnimations(); LayerCompositor.MoveToX(LayerCompositor.Width, Easing.OutQuint, 350); LayerEditor.ClearAnimations(); LayerEditor.MoveToX(0, Easing.OutQuint, 350); break; default: throw new ArgumentOutOfRangeException(); } }