private void handleTypeChange(ValueChangedEvent <BackgroundType> e) { switch (e.NewValue) { case BackgroundType.Color: colourPicker.FadeIn(200, Easing.OutQuint); imagesDropdown.FadeOut(200, Easing.OutQuint); videosDropdown.FadeOut(200, Easing.OutQuint); break; case BackgroundType.Image: colourPicker.FadeOut(200, Easing.OutQuint); imagesDropdown.FadeIn(200, Easing.OutQuint); videosDropdown.FadeOut(200, Easing.OutQuint); break; case BackgroundType.Video: colourPicker.FadeOut(200, Easing.OutQuint); imagesDropdown.FadeOut(200, Easing.OutQuint); videosDropdown.FadeIn(200, Easing.OutQuint); break; } offsetConfigContainer.FadeTo(e.NewValue != BackgroundType.Color ? 1 : 0, 200, Easing.OutQuint); }