var imageView = (ImageView)bindable;
if (newValue != null)
{
- if (oldValue != null)
+ if (NUIApplication.IsUsingXaml)
{
- bool oldBool = (bool)oldValue;
- bool newBool = (bool)newValue;
- if (oldBool == newBool)
+ if (oldValue != null)
{
- return;
+ bool oldBool = (bool)oldValue;
+ bool newBool = (bool)newValue;
+ if (oldBool == newBool)
+ {
+ return;
+ }
}
}
imageView.UpdateImage(NpatchImageVisualProperty.BorderOnly, new PropertyValue((bool)newValue));
var imageView = (ImageView)bindable;
if (newValue != null)
{
- if (oldValue != null)
+ if (NUIApplication.IsUsingXaml)
{
- bool oldBool = (bool)oldValue;
- bool newBool = (bool)newValue;
- if (oldBool == newBool)
+ if (oldValue != null)
{
- return;
+ bool oldBool = (bool)oldValue;
+ bool newBool = (bool)newValue;
+ if (oldBool == newBool)
+ {
+ return;
+ }
}
}
// Note : We need to create new visual if previous visual was async, and now we set value as sync.
var imageView = (ImageView)bindable;
if (newValue != null)
{
- if (oldValue != null)
+ if (NUIApplication.IsUsingXaml)
{
- bool oldBool = (bool)oldValue;
- bool newBool = (bool)newValue;
- if (oldBool == newBool)
+ if (oldValue != null)
{
- return;
+ bool oldBool = (bool)oldValue;
+ bool newBool = (bool)newValue;
+ if (oldBool == newBool)
+ {
+ return;
+ }
}
}
// Note : We need to create new visual if previous visual was async, and now we set value as sync.
var imageView = (ImageView)bindable;
if (newValue != null)
{
- if (oldValue != null)
+ if (NUIApplication.IsUsingXaml)
{
- bool oldBool = (bool)oldValue;
- bool newBool = (bool)newValue;
- if (oldBool == newBool)
+ if (oldValue != null)
{
- return;
+ bool oldBool = (bool)oldValue;
+ bool newBool = (bool)newValue;
+ if (oldBool == newBool)
+ {
+ return;
+ }
}
}
imageView.UpdateImage(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)newValue));
instance.InternalAlphaMaskURL = (string)newValue;
}
}
-
+
internal static object GetInternalAlphaMaskURLProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalCropToMask = (bool)newValue;
}
}
-
+
internal static object GetInternalCropToMaskProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty FittingModeProperty = null;
-
+
internal static void SetInternalFittingModeProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalFittingMode = (Tizen.NUI.FittingModeType)newValue;
}
}
-
+
internal static object GetInternalFittingModeProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalDesiredWidth = (int)newValue;
}
}
-
+
internal static object GetInternalDesiredWidthProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalDesiredHeight = (int)newValue;
}
}
-
+
internal static object GetInternalDesiredHeightProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalReleasePolicy = (Tizen.NUI.ReleasePolicyType)newValue;
}
}
-
+
internal static object GetInternalReleasePolicyProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalWrapModeU = (Tizen.NUI.WrapModeType)newValue;
}
}
-
+
internal static object GetInternalWrapModeUProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.InternalWrapModeV = (Tizen.NUI.WrapModeType)newValue;
}
}
-
+
internal static object GetInternalWrapModeVProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
instance.adjustViewSize = (bool)newValue;
}
}
-
+
internal static object GetInternalAdjustViewSizeProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.ImageView)bindable;
Interop.View.InternalUpdateVisualPropertyVector4(imageView.SwigCPtr, ImageView.Property.IMAGE, Visual.Property.MixColor, Vector4.getCPtr((Color)newValue));
}
}
-
+
internal static object GetInternalImageColorProperty(BindableObject bindable)
{
var imageView = (ImageView)bindable;
#endif
internal static void SetInternalBackgroundImageProperty(BindableObject bindable, object oldValue, object newValue)
{
- if (String.Equals(oldValue, newValue))
+ if (NUIApplication.IsUsingXaml)
{
- NUILog.Debug($"oldValue={oldValue} newValue={newValue} are same. just return here");
- return;
+ if (String.Equals(oldValue, newValue))
+ {
+ NUILog.Debug($"oldValue={oldValue} newValue={newValue} are same. just return here");
+ return;
+ }
}
var view = (View)bindable;
ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(View), null,
propertyChanged: SetInternalColorProperty, defaultValueCreator: GetInternalColorProperty);
-
+
ColorRedProperty = BindableProperty.Create(nameof(ColorRed), typeof(float), typeof(View), default(float),
propertyChanged: SetInternalColorRedProperty, defaultValueCreator: GetInternalColorRedProperty);
AnchorPointProperty = BindableProperty.Create(nameof(AnchorPoint), typeof(Tizen.NUI.Position), typeof(View), null,
propertyChanged: SetInternalAnchorPointProperty, defaultValueCreator: GetInternalAnchorPointProperty);
-
+
WidthSpecificationProperty = BindableProperty.Create(nameof(WidthSpecification), typeof(int), typeof(View), 0,
propertyChanged: SetInternalWidthSpecificationProperty, defaultValueCreator: GetInternalWidthSpecificationProperty);
map.Add(Visual.Property.Type, imageType);
}
- if(backgroundExtraData != null)
+ if (backgroundExtraData != null)
{
using var cornerRadiusValue = backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius);
using var cornerRadius = new PropertyValue(cornerRadiusValue);