Esempio n. 1
0
        /// <summary>
        /// Style's clone function.
        /// </summary>
        /// <param name="bindableObject">The style that need to copy.</param>
        /// <since_tizen> 8 </since_tizen>
        public override void CopyFrom(BindableObject bindableObject)
        {
            base.CopyFrom(bindableObject);

            if (bindableObject is SwitchStyle switchStyle)
            {
                Track.CopyFrom(switchStyle.Track);
                Thumb.CopyFrom(switchStyle.Thumb);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Style's clone function.
        /// </summary>
        /// <param name="bindableObject">The style that need to copy.</param>
        /// <since_tizen> 8 </since_tizen>
        public override void CopyFrom(BindableObject bindableObject)
        {
            base.CopyFrom(bindableObject);

            SwitchStyle switchStyle = bindableObject as SwitchStyle;

            if (null != switchStyle)
            {
                if (null != switchStyle.Track)
                {
                    Track?.CopyFrom(switchStyle.Track);
                }

                if (null != switchStyle.Thumb)
                {
                    Thumb?.CopyFrom(switchStyle.Thumb);
                }
            }
        }
Esempio n. 3
0
        public override void CopyFrom(BindableObject bindableObject)
        {
            base.CopyFrom(bindableObject);

            ScrollBarStyle scrollBarStyle = bindableObject as ScrollBarStyle;

            if (null != scrollBarStyle)
            {
                if (null != scrollBarStyle.Track)
                {
                    Track?.CopyFrom(scrollBarStyle.Track);
                }

                if (null != scrollBarStyle.Thumb)
                {
                    Thumb?.CopyFrom(scrollBarStyle.Thumb);
                }

                Direction = scrollBarStyle.Direction;
                Duration  = scrollBarStyle.Duration;
            }
        }