Пример #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 ProgressStyle progressStyle)
            {
                Track.CopyFrom(progressStyle.Track);
                Progress.CopyFrom(progressStyle.Progress);
                Buffer.CopyFrom(progressStyle.Buffer);
            }
        }
Пример #2
0
        /// <inheritdoc/>
        /// <since_tizen> 8 </since_tizen>
        public override void CopyFrom(BindableObject bindableObject)
        {
            base.CopyFrom(bindableObject);

            if (bindableObject is ProgressStyle progressStyle)
            {
                Track.CopyFrom(progressStyle.Track);
                Progress.CopyFrom(progressStyle.Progress);
                Buffer.CopyFrom(progressStyle.Buffer);
                IndeterminateImageUrl = progressStyle.IndeterminateImageUrl;
            }
        }
Пример #3
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);

            ProgressStyle progressStyle = bindableObject as ProgressStyle;

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

                if (null != progressStyle.Progress)
                {
                    Progress?.CopyFrom(progressStyle.Progress);
                }

                if (null != progressStyle.Buffer)
                {
                    Buffer?.CopyFrom(progressStyle.Buffer);
                }
            }
        }