2 * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://floralicense.org/license/
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.
20 namespace Tizen.Wearable.CircularUI.Forms
23 /// The CircleStepper is a class that extends Xamarin.Forms.Stepper for Circular UI.
25 /// <since_tizen> 4 </since_tizen>
26 public class CircleStepper : Xamarin.Forms.Stepper, IRotaryFocusable
29 /// BindableProperty. Identifies the MarkerColor bindable property.
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);
35 /// BindableProperty. Identifies the MarkerLineWidth bindable property.
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);
41 /// BindableProperty. Identifies the LabelFormat bindable property.
43 /// <since_tizen> 4 </since_tizen>
44 public static readonly BindableProperty LabelFormatProperty = BindableProperty.Create(nameof(LabelFormat), typeof(string), typeof(CircleStepper), null);
47 /// BindableProperty. Identifies the Title bindable property.
49 /// <since_tizen> 4 </since_tizen>
50 public static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(string), typeof(CircleStepper), null);
53 /// BindableProperty. Identifies whether min/max value is wrapped or not.
55 /// <since_tizen> 4 </since_tizen>
56 public static readonly BindableProperty IsWrapEnabledProperty = BindableProperty.Create(nameof(IsWrapEnabled), typeof(bool), typeof(CircleStepper), true);
59 /// Gets or sets Marker color
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
65 get => (Color)GetValue(MarkerColorProperty);
66 set => SetValue(MarkerColorProperty, value);
70 /// Gets or sets length of Marker
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
76 get => (int)GetValue(MarkerLineWidthProperty);
77 set => SetValue(MarkerLineWidthProperty, value);
81 /// Gets or sets format in which Value is shown
83 /// <since_tizen> 4 </since_tizen>
84 public string LabelFormat
86 get => (string)GetValue(LabelFormatProperty);
87 set => SetValue(LabelFormatProperty, value);
91 /// Gets or sets title
93 /// <since_tizen> 4 </since_tizen>
96 get => (string)GetValue(TitleProperty);
97 set => SetValue(TitleProperty, value);
101 /// Gets or sets a status of Value is wrapped.
103 /// <since_tizen> 4 </since_tizen>
104 public bool IsWrapEnabled
106 get => (bool)GetValue(IsWrapEnabledProperty);
107 set => SetValue(IsWrapEnabledProperty, value);