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;
21 namespace Tizen.NUI.BaseComponents
23 public partial class AnimatedVectorImageView
26 /// ResourceURLProperty
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public static readonly BindableProperty ResourceURLProperty = BindableProperty.Create(nameof(ResourceURL), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
31 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
32 instance.InternalResourceURL = (string)newValue;
34 defaultValueCreator: (bindable) =>
36 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
37 return instance.InternalResourceURL;
41 /// ResourceUrlProperty
43 [EditorBrowsable(EditorBrowsableState.Never)]
44 public static new readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ResourceUrl), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
46 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
47 instance.InternalResourceUrl = (string)newValue;
49 defaultValueCreator: (bindable) =>
51 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
52 return instance.InternalResourceUrl;
56 /// RepeatCountProperty
58 [EditorBrowsable(EditorBrowsableState.Never)]
59 public static readonly BindableProperty RepeatCountProperty = BindableProperty.Create(nameof(RepeatCount), typeof(int), typeof(AnimatedVectorImageView), 0, propertyChanged: (bindable, oldValue, newValue) =>
61 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
64 instance.InternalRepeatCount = (int)newValue;
67 defaultValueCreator: (bindable) =>
69 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
70 return instance.InternalRepeatCount;
74 /// CurrentFrameProperty
76 [EditorBrowsable(EditorBrowsableState.Never)]
77 public static new readonly BindableProperty CurrentFrameProperty = BindableProperty.Create(nameof(CurrentFrame), typeof(int), typeof(AnimatedVectorImageView), 0, propertyChanged: (bindable, oldValue, newValue) =>
79 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
82 instance.InternalCurrentFrame = (int)newValue;
85 defaultValueCreator: (bindable) =>
87 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
88 return instance.InternalCurrentFrame;
92 /// RepeatModeProperty
94 [EditorBrowsable(EditorBrowsableState.Never)]
95 public static readonly BindableProperty RepeatModeProperty = BindableProperty.Create(nameof(RepeatMode), typeof(RepeatModes), typeof(AnimatedVectorImageView), default(RepeatModes), propertyChanged: (bindable, oldValue, newValue) =>
97 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
100 instance.InternalRepeatMode = (Tizen.NUI.BaseComponents.AnimatedVectorImageView.RepeatModes)newValue;
103 defaultValueCreator: (bindable) =>
105 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
106 return instance.InternalRepeatMode;