Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of a LoadingStyle with style.
 /// </summary>
 /// <param name="style">Create LoadingStyle by style customized by user.</param>
 /// <since_tizen> 8 </since_tizen>
 public LoadingStyle(LoadingStyle style) : base(style)
 {
     if (null == style)
     {
         return;
     }
     this.CopyFrom(style);
 }
Ejemplo 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);

            LoadingStyle loadingStyle = bindableObject as LoadingStyle;

            if (null != loadingStyle)
            {
                if (null != loadingStyle.FrameRate)
                {
                    FrameRate?.Clone(loadingStyle.FrameRate);
                }
                if (null != loadingStyle.LoadingSize)
                {
                    LoadingSize = loadingStyle.LoadingSize;
                }
                if (null != loadingStyle.Images)
                {
                    Images = loadingStyle.Images;
                }
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// The constructor of the Loading class with specific style.
 /// </summary>
 /// <param name="loadingStyle">The style object to initialize the Loading.</param>
 /// <since_tizen> 8 </since_tizen>
 public Loading(LoadingStyle loadingStyle) : base(loadingStyle)
 {
     Initialize();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of a LoadingStyle with style.
 /// </summary>
 /// <param name="style">Create LoadingStyle by style customized by user.</param>
 /// <since_tizen> 8 </since_tizen>
 public LoadingStyle(LoadingStyle style) : base(style)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// The constructor of the Loading class with specific style.
 /// </summary>
 /// <param name="loadingStyle">The style object to initialize the Loading.</param>
 /// <since_tizen> 8 </since_tizen>
 public Loading(LoadingStyle loadingStyle) : base(loadingStyle)
 {
 }