Exemplo n.º 1
0
        /// 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();
        }
Exemplo n.º 2
0
        /// 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();
        }
Exemplo n.º 3
0
        /// 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();
        }
Exemplo n.º 4
0
        /// 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;
            }
        }