/// <summary> /// All of the Color slide transition functionality is encapsulated in this handy helper /// which we will init once /// </summary> private void InitializeTransitionHelper() { // we pass in the UIElement that will host our Visuals transition = new ColorSlideTransitionHelper(hostForVisual); // when the transition completes, we need to know so we can update other property values transition.ColorSlideTransitionCompleted += ColorSlideTransitionCompleted; }