/// When the <c>BackView</c> changed private static void BackViewChanged(BindableObject obj, View oldValue, View newValue) { MyViewFlipper myviewflipper = obj as MyViewFlipper; if (myviewflipper == null || newValue == null) { return; } myviewflipper.SetBackviewRotation(); }
/// When the <c>RotationDirection</c> changed private static void RotationDirectionChanged(BindableObject obj, RotationDirection oldValue, RotationDirection newValue) { MyViewFlipper flipper = obj as MyViewFlipper; if (flipper == null || flipper.BackView == null) { return; } flipper.SetBackviewRotation(); }
/// When the <c>FlipState</c> changed private static void FlipStateChanged(BindableObject obj, FlipState oldValue, FlipState newValue) { MyViewFlipper flipper = obj as MyViewFlipper; if (flipper == null) { return; } flipper.Flip(); }
/// When the <c>FrontView</c> changed private static void FrontViewChanged(BindableObject obj, View oldValue, View newValue) { MyViewFlipper myviewflipper = obj as MyViewFlipper; if (myviewflipper == null) { return; } if (oldValue == null) { myviewflipper.Content = newValue; } }