Support new features of Xamari.Forms (#186)
[platform/core/csapi/xsf.git] / src / XSF / Tizen.Wearable.CircularUI.Forms / CircleStepper.cs
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Flora License, Version 1.1 (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
7  *
8  *     http://floralicense.org/license/
9  *
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.
15  */
16
17 using System;
18 using Xamarin.Forms;
19
20 namespace Tizen.Wearable.CircularUI.Forms
21 {
22         /// <summary>
23         /// The CircleStepper is a class that extends Xamarin.Forms.Stepper for Circular UI.
24         /// </summary>
25         /// <since_tizen> 4 </since_tizen>
26         public class CircleStepper : Xamarin.Forms.Stepper, IRotaryFocusable
27         {
28                 /// <summary>
29                 /// BindableProperty. Identifies the MarkerColor bindable property.
30                 /// </summary>
31                 /// <since_tizen> 4 </since_tizen>
32                 [Obsolete("MarkerColor bindable property is obsolete as of Tizen.NET version 4.0.0 and is no longer supported")]
33                 public static readonly BindableProperty MarkerColorProperty = BindableProperty.Create(nameof(MarkerColor), typeof(Color), typeof(CircleStepper), Color.Default);
34                 /// <summary>
35                 /// BindableProperty. Identifies the MarkerLineWidth bindable property.
36                 /// </summary>
37                 /// <since_tizen> 4 </since_tizen>
38                 [Obsolete("MarkerLineWidth bindable property is obsolete as of Tizen.NET version 4.0.0 and is no longer supported")]
39                 public static readonly BindableProperty MarkerLineWidthProperty = BindableProperty.Create(nameof(MarkerLineWidth), typeof(int), typeof(CircleStepper), 23);
40                 /// <summary>
41                 /// BindableProperty. Identifies the LabelFormat bindable property.
42                 /// </summary>
43                 /// <since_tizen> 4 </since_tizen>
44                 public static readonly BindableProperty LabelFormatProperty = BindableProperty.Create(nameof(LabelFormat), typeof(string), typeof(CircleStepper), null);
45
46                 /// <summary>
47                 /// BindableProperty. Identifies the Title bindable property.
48                 /// </summary>
49                 /// <since_tizen> 4 </since_tizen>
50                 public static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(string), typeof(CircleStepper), null);
51
52                 /// <summary>
53         /// BindableProperty. Identifies whether min/max value is wrapped or not.
54         /// </summary>
55         /// <since_tizen> 4 </since_tizen>
56         public static readonly BindableProperty IsWrapEnabledProperty = BindableProperty.Create(nameof(IsWrapEnabled), typeof(bool), typeof(CircleStepper), true);
57
58         /// <summary>
59                 /// Gets or sets Marker color
60                 /// </summary>
61                 /// <since_tizen> 4 </since_tizen>
62                 [Obsolete("MarkerColor is obsolete as of Tizen.NET version 4.0.0 and is no longer supported")]
63         public Color MarkerColor
64         {
65             get => (Color)GetValue(MarkerColorProperty);
66             set => SetValue(MarkerColorProperty, value);
67         }
68
69                 /// <summary>
70                 /// Gets or sets length of Marker
71                 /// </summary>
72                 /// <since_tizen> 4 </since_tizen>
73                 [Obsolete("MarkerLineWidth is obsolete as of Tizen.NET version 4.0.0 and is no longer supported")]
74         public int MarkerLineWidth
75         {
76             get => (int)GetValue(MarkerLineWidthProperty);
77             set => SetValue(MarkerLineWidthProperty, value);
78         }
79
80                 /// <summary>
81                 /// Gets or sets format in which Value is shown
82                 /// </summary>
83                 /// <since_tizen> 4 </since_tizen>
84         public string LabelFormat
85         {
86             get => (string)GetValue(LabelFormatProperty);
87             set => SetValue(LabelFormatProperty, value);
88         }
89
90                 /// <summary>
91                 /// Gets or sets title
92                 /// </summary>
93                 /// <since_tizen> 4 </since_tizen>
94         public string Title
95         {
96             get => (string)GetValue(TitleProperty);
97             set => SetValue(TitleProperty, value);
98         }
99
100         /// <summary>
101         /// Gets or sets a status of Value is wrapped.
102         /// </summary>
103         /// <since_tizen> 4 </since_tizen>
104         public bool IsWrapEnabled
105         {
106             get => (bool)GetValue(IsWrapEnabledProperty);
107             set => SetValue(IsWrapEnabledProperty, value);
108         }
109         }
110 }