/*
- * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
Size size = (Size)newValue;
((View)bindable).Size = size;
- if (null != instance.imageVisual)
- {
- instance.imageVisual.Size = new Size2D((int)size.Width, (int)size.Height);
- }
+ instance.loadingStyle.LoadingSize = size;
}
},
defaultValueCreator: (bindable) =>
LoopCount = -1,
Position = new Vector2(0, 0),
Origin = Visual.AlignType.Center,
- AnchorPoint = Visual.AlignType.Center
+ AnchorPoint = Visual.AlignType.Center,
+ SizePolicy = VisualTransformPolicyType.Relative,
+ Size = new Size2D(1, 1)
};
UpdateVisual();
{
imageVisual.FrameDelay = 1000.0f / (float)loadingStyle.FrameRate.All.Value;
}
- if (null != loadingStyle.LoadingSize)
- {
- this.Size = new Size2D((int)loadingStyle.LoadingSize.Width, (int)loadingStyle.LoadingSize.Height);
- }
}
/// <summary>
/*
- * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/// Gets or sets loading image size.
/// </summary>
/// <since_tizen> 8 </since_tizen>
- public Size LoadingSize { get; set; }
+ public Size LoadingSize
+ {
+ get
+ {
+ return this.Size;
+ }
+ set
+ {
+ this.Size = value;
+ }
+ }
/// <summary>
/// Gets or sets loading frame per second.