/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronosLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
{
var imageView = (ImageView)bindable;
if (newValue != null)
{
- imageView._synchronosLoading = (bool)newValue;
+ imageView._synchronousLoading = (bool)newValue;
imageView.UpdateImage(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)newValue));
}
},
defaultValueCreator: (bindable) =>
{
var imageView = (ImageView)bindable;
- return imageView._synchronosLoading;
+ return imageView._synchronousLoading;
+ });
+
+ /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty SynchronousLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var imageView = (ImageView)bindable;
+ if (newValue != null)
+ {
+ imageView._synchronousLoading = (bool)newValue;
+ imageView.UpdateImage(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)newValue));
+ }
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var imageView = (ImageView)bindable;
+ return imageView._synchronousLoading;
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
private Rectangle _border;
private string _resourceUrl = "";
- private bool _synchronosLoading = false;
+ private bool _synchronousLoading = false;
private string _alphaMaskUrl = null;
private int _desired_width = -1;
private int _desired_height = -1;
{
get
{
- return (bool)GetValue(SynchronosLoadingProperty);
+ return SynchronousLoading;
+ }
+ set
+ {
+ SynchronousLoading = value;
+ }
+ }
+
+ /// <summary>
+ /// Gets or sets whether to synchronous loading the resourceurl of image.<br />
+ /// </summary>
+ /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool SynchronousLoading
+ {
+ get
+ {
+ return (bool)GetValue(SynchronousLoadingProperty);
}
set
{
- SetValue(SynchronosLoadingProperty, value);
+ SetValue(SynchronousLoadingProperty, value);
NotifyPropertyChanged();
}
}
fittingMode?.Dispose();
}
- PropertyValue synchronosLoading = new PropertyValue(_synchronosLoading);
- imageMap?.Insert(NpatchImageVisualProperty.SynchronousLoading, synchronosLoading);
- synchronosLoading?.Dispose();
+ PropertyValue synchronousLoading = new PropertyValue(_synchronousLoading);
+ imageMap?.Insert(NpatchImageVisualProperty.SynchronousLoading, synchronousLoading);
+ synchronousLoading?.Dispose();
if (backgroundExtraData != null && backgroundExtraData.CornerRadius != null)
{
});
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronosLoading), typeof(bool?), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool?), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var imageViewStyle = (ImageViewStyle)bindable;
- imageViewStyle.synchronosLoading = (bool?)newValue;
+ imageViewStyle.synchronousLoading = (bool?)newValue;
},
defaultValueCreator: (bindable) =>
{
var imageViewStyle = (ImageViewStyle)bindable;
- return imageViewStyle.synchronosLoading;
+ return imageViewStyle.synchronousLoading;
+ });
+ /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty SynchronousLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool?), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var imageViewStyle = (ImageViewStyle)bindable;
+ imageViewStyle.synchronousLoading = (bool?)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var imageViewStyle = (ImageViewStyle)bindable;
+ return imageViewStyle.synchronousLoading;
});
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
});
private bool? borderOnly;
- private bool? synchronosLoading;
+ private bool? synchronousLoading;
private bool? orientationCorrection;
private Selector<string> resourceUrl;
private Selector<Rectangle> border;
[EditorBrowsable(EditorBrowsableState.Never)]
public bool? SynchronosLoading
{
- get => (bool?)GetValue(SynchronosLoadingProperty);
- set => SetValue(SynchronosLoadingProperty, value);
+ get => (bool?)GetValue(SynchronousLoadingProperty);
+ set => SetValue(SynchronousLoadingProperty, value);
+ }
+
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool? SynchronousLoading
+ {
+ get => (bool?)GetValue(SynchronousLoadingProperty);
+ set => SetValue(SynchronousLoadingProperty, value);
}
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
private int widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
private int heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
private float weight = 0.0f; // Weighting of child View in a Layout
- private bool backgroundImageSynchronosLoading = false;
+ private bool backgroundImageSynchronousLoading = false;
private bool excludeLayouting = false;
private LayoutTransition layoutTransition;
private TransitionOptions transitionOptions = null;
{
get
{
- return backgroundImageSynchronosLoading;
+ return BackgroundImageSynchronousLoading;
}
set
{
- backgroundImageSynchronosLoading = value;
+ BackgroundImageSynchronousLoading = value;
+ }
+ }
+
+ /// <summary>
+ /// Whether to load the BackgroundImage synchronously.
+ /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
+ /// Note: For Normal Quad images only.
+ /// </summary>
+ /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool BackgroundImageSynchronousLoading
+ {
+ get
+ {
+ return backgroundImageSynchronousLoading;
+ }
+ set
+ {
+ backgroundImageSynchronousLoading = value;
string bgUrl = null;
var pValue = Background.Find(ImageVisualProperty.URL);
if (!string.IsNullOrEmpty(bgUrl))
{
PropertyMap bgMap = this.Background;
- var temp = new PropertyValue(backgroundImageSynchronosLoading);
+ var temp = new PropertyValue(backgroundImageSynchronousLoading);
bgMap.Add("synchronousLoading", temp);
temp.Dispose();
Background = bgMap;
if (backgroundExtraData == null)
{
Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(value));
- BackgroundImageSynchronosLoading = backgroundImageSynchronosLoading;
+ BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
return;
}
.Add(Visual.Property.BorderlineWidth, new PropertyValue(backgroundExtraData.BorderlineWidth))
.Add(Visual.Property.BorderlineColor, new PropertyValue(backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor)))
.Add(Visual.Property.BorderlineOffset, new PropertyValue(backgroundExtraData.BorderlineOffset))
- .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(backgroundImageSynchronosLoading));
+ .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(backgroundImageSynchronousLoading));
if (backgroundExtraData.BackgroundImageBorder != null)
{