X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Finternal%2FUtility%2FItemViewBindableProperty.cs;h=e847f9d764808560ad28cc7eb10ec646d3cc3e91;hb=82f6111dc75bb65264450197c5542afba10a6fb0;hp=4d97679b2ec97bbee4390016854acef4eabab3c6;hpb=36e0fc7ebd3b37f71ac216bee74493d93533a350;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs b/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs
index 4d97679..e847f9d 100755
--- a/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs
+++ b/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs
@@ -26,216 +26,228 @@ namespace Tizen.NUI
/// LayoutProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static new readonly BindableProperty LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.PropertyArray), typeof(ItemView), null, propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty LayoutProperty = null;
+ internal static void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalLayout = (Tizen.NUI.PropertyArray)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalLayoutProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalLayout;
- });
+ }
///
/// MinimumSwipeSpeedProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty MinimumSwipeSpeedProperty = BindableProperty.Create(nameof(MinimumSwipeSpeed), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty MinimumSwipeSpeedProperty = null;
+ internal static void SetInternalMinimumSwipeSpeedProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalMinimumSwipeSpeed = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalMinimumSwipeSpeedProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalMinimumSwipeSpeed;
- });
+ }
///
/// MinimumSwipeDistanceProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty MinimumSwipeDistanceProperty = BindableProperty.Create(nameof(MinimumSwipeDistance), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty MinimumSwipeDistanceProperty = null;
+ internal static void SetInternalMinimumSwipeDistanceProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalMinimumSwipeDistance = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalMinimumSwipeDistanceProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalMinimumSwipeDistance;
- });
+ }
///
/// WheelScrollDistanceStepProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty WheelScrollDistanceStepProperty = BindableProperty.Create(nameof(WheelScrollDistanceStep), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty WheelScrollDistanceStepProperty = null;
+ internal static void SetInternalWheelScrollDistanceStepProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalWheelScrollDistanceStep = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalWheelScrollDistanceStepProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalWheelScrollDistanceStep;
- });
+ }
///
/// SnapToItemEnabledProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty SnapToItemEnabledProperty = BindableProperty.Create(nameof(SnapToItemEnabled), typeof(bool), typeof(ItemView), true, propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty SnapToItemEnabledProperty = null;
+ internal static void SetInternalSnapToItemEnabledProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalSnapToItemEnabled = (bool)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalSnapToItemEnabledProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalSnapToItemEnabled;
- });
+ }
///
/// RefreshIntervalProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RefreshIntervalProperty = BindableProperty.Create(nameof(RefreshInterval), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty RefreshIntervalProperty = null;
+ internal static void SetInternalRefreshIntervalProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalRefreshInterval = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalRefreshIntervalProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalRefreshInterval;
- });
+ }
///
/// LayoutPositionProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty LayoutPositionProperty = BindableProperty.Create(nameof(LayoutPosition), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty LayoutPositionProperty = null;
+ internal static void SetInternalLayoutPositionProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalLayoutPosition = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalLayoutPositionProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalLayoutPosition;
- });
+ }
///
/// ScrollSpeedProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty ScrollSpeedProperty = null;
+ internal static void SetInternalScrollSpeedProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalScrollSpeed = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalScrollSpeedProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalScrollSpeed;
- });
+ }
///
/// OvershootProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty OvershootProperty = BindableProperty.Create(nameof(Overshoot), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty OvershootProperty = null;
+ internal static void SetInternalOvershootProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalOvershoot = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalOvershootProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalOvershoot;
- });
+ }
///
/// ScrollDirectionProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ScrollDirectionProperty = BindableProperty.Create(nameof(ScrollDirection), typeof(Tizen.NUI.Vector2), typeof(ItemView), null, propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty ScrollDirectionProperty = null;
+ internal static void SetInternalScrollDirectionProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalScrollDirection = (Tizen.NUI.Vector2)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalScrollDirectionProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalScrollDirection;
- });
+ }
///
/// LayoutOrientationProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty LayoutOrientationProperty = BindableProperty.Create(nameof(LayoutOrientation), typeof(int), typeof(ItemView), 0, propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty LayoutOrientationProperty = null;
+ internal static void SetInternalLayoutOrientationProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalLayoutOrientation = (int)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalLayoutOrientationProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalLayoutOrientation;
- });
+ }
///
/// ScrollContentSizeProperty
///
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty ScrollContentSizeProperty = BindableProperty.Create(nameof(ScrollContentSize), typeof(float), typeof(ItemView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static BindableProperty ScrollContentSizeProperty = null;
+ internal static void SetInternalScrollContentSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
{
instance.InternalScrollContentSize = (float)newValue;
}
- },
- defaultValueCreator: (bindable) =>
+ }
+ internal static object GetInternalScrollContentSizeProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalScrollContentSize;
- });
+ }
}
}