/* * Copyright(c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System.ComponentModel; using Tizen.NUI.Binding; namespace Tizen.NUI.BaseComponents { public partial class AnimatedVectorImageView { /// /// ResourceURLProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ResourceURLProperty = BindableProperty.Create(nameof(ResourceURL), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; instance.InternalResourceURL = (string)newValue; }, defaultValueCreator: (bindable) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; return instance.InternalResourceURL; }); /// /// ResourceUrlProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static new readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ResourceUrl), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; instance.InternalResourceUrl = (string)newValue; }, defaultValueCreator: (bindable) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; return instance.InternalResourceUrl; }); /// /// RepeatCountProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty RepeatCountProperty = BindableProperty.Create(nameof(RepeatCount), typeof(int), typeof(AnimatedVectorImageView), 0, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; if (newValue != null) { instance.InternalRepeatCount = (int)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; return instance.InternalRepeatCount; }); /// /// CurrentFrameProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static new readonly BindableProperty CurrentFrameProperty = BindableProperty.Create(nameof(CurrentFrame), typeof(int), typeof(AnimatedVectorImageView), 0, propertyChanged: (bindable, oldValue, newValue) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; if (newValue != null) { instance.InternalCurrentFrame = (int)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; return instance.InternalCurrentFrame; }); /// /// RepeatModeProperty /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty RepeatModeProperty = BindableProperty.Create(nameof(RepeatMode), typeof(RepeatModes), typeof(AnimatedVectorImageView), default(RepeatModes), propertyChanged: (bindable, oldValue, newValue) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; if (newValue != null) { instance.InternalRepeatMode = (Tizen.NUI.BaseComponents.AnimatedVectorImageView.RepeatModes)newValue; } }, defaultValueCreator: (bindable) => { var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable; return instance.InternalRepeatMode; }); } }