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;
34 instance.InternalResourceURL = (string)newValue;
37 defaultValueCreator: (bindable) =>
39 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
40 return instance.InternalResourceURL;
44 /// ResourceUrlProperty
46 [EditorBrowsable(EditorBrowsableState.Never)]
47 public static new readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ResourceUrl), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
49 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
52 instance.InternalResourceUrl = (string)newValue;
55 defaultValueCreator: (bindable) =>
57 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
58 return instance.InternalResourceUrl;
62 /// RepeatCountProperty
64 [EditorBrowsable(EditorBrowsableState.Never)]
65 public static readonly BindableProperty RepeatCountProperty = BindableProperty.Create(nameof(RepeatCount), typeof(int), typeof(AnimatedVectorImageView), 0, propertyChanged: (bindable, oldValue, newValue) =>
67 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
70 instance.InternalRepeatCount = (int)newValue;
73 defaultValueCreator: (bindable) =>
75 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
76 return instance.InternalRepeatCount;
80 /// CurrentFrameProperty
82 [EditorBrowsable(EditorBrowsableState.Never)]
83 public static new readonly BindableProperty CurrentFrameProperty = BindableProperty.Create(nameof(CurrentFrame), typeof(int), typeof(AnimatedVectorImageView), 0, propertyChanged: (bindable, oldValue, newValue) =>
85 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
88 instance.InternalCurrentFrame = (int)newValue;
91 defaultValueCreator: (bindable) =>
93 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
94 return instance.InternalCurrentFrame;
98 /// RepeatModeProperty
100 [EditorBrowsable(EditorBrowsableState.Never)]
101 public static readonly BindableProperty RepeatModeProperty = BindableProperty.Create(nameof(RepeatMode), typeof(RepeatModes), typeof(AnimatedVectorImageView), default(RepeatModes), propertyChanged: (bindable, oldValue, newValue) =>
103 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
104 if (newValue != null)
106 instance.InternalRepeatMode = (Tizen.NUI.BaseComponents.AnimatedVectorImageView.RepeatModes)newValue;
109 defaultValueCreator: (bindable) =>
111 var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
112 return instance.InternalRepeatMode;