/// <summary> /// When the <c>RotationDirection</c> changed /// </summary> /// <param name="obj">The <c>ViewFlipper</c></param> /// <param name="oldValue">Old value</param> /// <param name="newValue">New value</param> private static void RotationDirectionChanged(BindableObject obj, RotationDirection oldValue, RotationDirection newValue) { ViewFlipper flipper = obj as ViewFlipper; if (flipper == null || flipper.BackView == null) { return; } flipper.SetBackviewRotation(); }
/// <summary> /// When the <c>BackView</c> changed /// </summary> /// <param name="obj">The <c>ViewFlipper</c></param> /// <param name="oldValue">Old value</param> /// <param name="newValue">New value</param> private static void BackViewChanged(BindableObject obj, View oldValue, View newValue) { ViewFlipper flipper = obj as ViewFlipper; if (flipper == null || newValue == null) { return; } flipper.SetBackviewRotation(); }
/// <summary> /// When the <c>FlipState</c> changed /// </summary> /// <param name="obj">The <c>ViewFlipper</c></param> /// <param name="oldValue">Old value</param> /// <param name="newValue">New value</param> private static void FlipStateChanged(BindableObject obj, FlipState oldValue, FlipState newValue) { ViewFlipper flipper = obj as ViewFlipper; if (flipper == null) { return; } flipper.Flip(); }
/// <summary> /// When the <c>FrontView</c> changed /// </summary> /// <param name="obj">The <c>ViewFlipper</c></param> /// <param name="oldValue">Old value</param> /// <param name="newValue">New value</param> private static void FrontViewChanged(BindableObject obj, View oldValue, View newValue) { ViewFlipper flipper = obj as ViewFlipper; if (flipper == null) { return; } if (oldValue == null) { flipper.Content = newValue; } }