示例#1
0
        /// <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();
        }
示例#2
0
        /// <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();
        }
示例#3
0
        /// <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();
        }
示例#4
0
        /// <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;
            }
        }