2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
23 public partial class ItemView
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public static BindableProperty LayoutProperty = null;
30 internal static void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue)
32 var instance = (Tizen.NUI.ItemView)bindable;
35 instance.InternalLayout = (Tizen.NUI.PropertyArray)newValue;
38 internal static object GetInternalLayoutProperty(BindableObject bindable)
40 var instance = (Tizen.NUI.ItemView)bindable;
41 return instance.InternalLayout;
45 /// MinimumSwipeSpeedProperty
47 [EditorBrowsable(EditorBrowsableState.Never)]
48 public static BindableProperty MinimumSwipeSpeedProperty = null;
49 internal static void SetInternalMinimumSwipeSpeedProperty(BindableObject bindable, object oldValue, object newValue)
51 var instance = (Tizen.NUI.ItemView)bindable;
54 instance.InternalMinimumSwipeSpeed = (float)newValue;
57 internal static object GetInternalMinimumSwipeSpeedProperty(BindableObject bindable)
59 var instance = (Tizen.NUI.ItemView)bindable;
60 return instance.InternalMinimumSwipeSpeed;
64 /// MinimumSwipeDistanceProperty
66 [EditorBrowsable(EditorBrowsableState.Never)]
67 public static BindableProperty MinimumSwipeDistanceProperty = null;
68 internal static void SetInternalMinimumSwipeDistanceProperty(BindableObject bindable, object oldValue, object newValue)
70 var instance = (Tizen.NUI.ItemView)bindable;
73 instance.InternalMinimumSwipeDistance = (float)newValue;
76 internal static object GetInternalMinimumSwipeDistanceProperty(BindableObject bindable)
78 var instance = (Tizen.NUI.ItemView)bindable;
79 return instance.InternalMinimumSwipeDistance;
83 /// WheelScrollDistanceStepProperty
85 [EditorBrowsable(EditorBrowsableState.Never)]
86 public static BindableProperty WheelScrollDistanceStepProperty = null;
87 internal static void SetInternalWheelScrollDistanceStepProperty(BindableObject bindable, object oldValue, object newValue)
89 var instance = (Tizen.NUI.ItemView)bindable;
92 instance.InternalWheelScrollDistanceStep = (float)newValue;
95 internal static object GetInternalWheelScrollDistanceStepProperty(BindableObject bindable)
97 var instance = (Tizen.NUI.ItemView)bindable;
98 return instance.InternalWheelScrollDistanceStep;
102 /// SnapToItemEnabledProperty
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public static BindableProperty SnapToItemEnabledProperty = null;
106 internal static void SetInternalSnapToItemEnabledProperty(BindableObject bindable, object oldValue, object newValue)
108 var instance = (Tizen.NUI.ItemView)bindable;
109 if (newValue != null)
111 instance.InternalSnapToItemEnabled = (bool)newValue;
114 internal static object GetInternalSnapToItemEnabledProperty(BindableObject bindable)
116 var instance = (Tizen.NUI.ItemView)bindable;
117 return instance.InternalSnapToItemEnabled;
121 /// RefreshIntervalProperty
123 [EditorBrowsable(EditorBrowsableState.Never)]
124 public static BindableProperty RefreshIntervalProperty = null;
125 internal static void SetInternalRefreshIntervalProperty(BindableObject bindable, object oldValue, object newValue)
127 var instance = (Tizen.NUI.ItemView)bindable;
128 if (newValue != null)
130 instance.InternalRefreshInterval = (float)newValue;
133 internal static object GetInternalRefreshIntervalProperty(BindableObject bindable)
135 var instance = (Tizen.NUI.ItemView)bindable;
136 return instance.InternalRefreshInterval;
140 /// LayoutPositionProperty
142 [EditorBrowsable(EditorBrowsableState.Never)]
143 public static BindableProperty LayoutPositionProperty = null;
144 internal static void SetInternalLayoutPositionProperty(BindableObject bindable, object oldValue, object newValue)
146 var instance = (Tizen.NUI.ItemView)bindable;
147 if (newValue != null)
149 instance.InternalLayoutPosition = (float)newValue;
152 internal static object GetInternalLayoutPositionProperty(BindableObject bindable)
154 var instance = (Tizen.NUI.ItemView)bindable;
155 return instance.InternalLayoutPosition;
159 /// ScrollSpeedProperty
161 [EditorBrowsable(EditorBrowsableState.Never)]
162 public static BindableProperty ScrollSpeedProperty = null;
163 internal static void SetInternalScrollSpeedProperty(BindableObject bindable, object oldValue, object newValue)
165 var instance = (Tizen.NUI.ItemView)bindable;
166 if (newValue != null)
168 instance.InternalScrollSpeed = (float)newValue;
171 internal static object GetInternalScrollSpeedProperty(BindableObject bindable)
173 var instance = (Tizen.NUI.ItemView)bindable;
174 return instance.InternalScrollSpeed;
178 /// OvershootProperty
180 [EditorBrowsable(EditorBrowsableState.Never)]
181 public static BindableProperty OvershootProperty = null;
182 internal static void SetInternalOvershootProperty(BindableObject bindable, object oldValue, object newValue)
184 var instance = (Tizen.NUI.ItemView)bindable;
185 if (newValue != null)
187 instance.InternalOvershoot = (float)newValue;
190 internal static object GetInternalOvershootProperty(BindableObject bindable)
192 var instance = (Tizen.NUI.ItemView)bindable;
193 return instance.InternalOvershoot;
197 /// ScrollDirectionProperty
199 [EditorBrowsable(EditorBrowsableState.Never)]
200 public static BindableProperty ScrollDirectionProperty = null;
201 internal static void SetInternalScrollDirectionProperty(BindableObject bindable, object oldValue, object newValue)
203 var instance = (Tizen.NUI.ItemView)bindable;
204 if (newValue != null)
206 instance.InternalScrollDirection = (Tizen.NUI.Vector2)newValue;
209 internal static object GetInternalScrollDirectionProperty(BindableObject bindable)
211 var instance = (Tizen.NUI.ItemView)bindable;
212 return instance.InternalScrollDirection;
216 /// LayoutOrientationProperty
218 [EditorBrowsable(EditorBrowsableState.Never)]
219 public static BindableProperty LayoutOrientationProperty = null;
220 internal static void SetInternalLayoutOrientationProperty(BindableObject bindable, object oldValue, object newValue)
222 var instance = (Tizen.NUI.ItemView)bindable;
223 if (newValue != null)
225 instance.InternalLayoutOrientation = (int)newValue;
228 internal static object GetInternalLayoutOrientationProperty(BindableObject bindable)
230 var instance = (Tizen.NUI.ItemView)bindable;
231 return instance.InternalLayoutOrientation;
235 /// ScrollContentSizeProperty
237 [EditorBrowsable(EditorBrowsableState.Never)]
238 public static BindableProperty ScrollContentSizeProperty = null;
239 internal static void SetInternalScrollContentSizeProperty(BindableObject bindable, object oldValue, object newValue)
241 var instance = (Tizen.NUI.ItemView)bindable;
242 if (newValue != null)
244 instance.InternalScrollContentSize = (float)newValue;
247 internal static object GetInternalScrollContentSizeProperty(BindableObject bindable)
249 var instance = (Tizen.NUI.ItemView)bindable;
250 return instance.InternalScrollContentSize;