Beispiel #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();
        }
Beispiel #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();
        }