/// <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); } }
/// <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; } }
/// <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); } } }