/// <summary>
/// DateChangedEventArgs is a class to notify changed DatePicker value argument which will sent to user.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class DateChangedEventArgs : EventArgs
{
/// <summary>
/// DateChangedEventArgs default constructor.
/// <returns>The current date value of DatePicker.</returns>
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DateTime Date { get; }
}
/// DatePicker expresses the current date using the locale information of the system.
/// Year range is 1970~2038 (glibc time_t struct min, max value)
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class DatePicker : Control
{
private DateTime currentDate;
/// <summary>
/// Creates a new instance of DatePicker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DatePicker()
{
}
/// Creates a new instance of DatePicker.
/// </summary>
/// <param name="style">Creates DatePicker by special style defined in UX.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DatePicker(string style) : base(style)
{
}
/// Creates a new instance of DatePicker.
/// </summary>
/// <param name="datePickerStyle">Creates DatePicker by style customized by user.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DatePicker(DatePickerStyle datePickerStyle) : base(datePickerStyle)
{
}
/// <summary>
/// An event emitted when DatePicker value changed, user can subscribe or unsubscribe to this event handler.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public event EventHandler<DateChangedEventArgs> DateChanged;
/// <summary>
/// The Date value of DatePicker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DateTime Date
{
get
PickersOrderSet();
SetMonthText();
- MaxDaySet(currentDate.Month);
+ MaxDaySet();
}
private void OnDayValueChanged(object sender, ValueChangedEventArgs e)
{
if (currentDate.Month == e.Value) return;
- MaxDaySet(e.Value);
+ currentDate = new DateTime(currentDate.Year, e.Value, currentDate.Day);
+ MaxDaySet();
OnDateChanged();
}
if (currentDate.Year == e.Value) return;
currentDate = new DateTime(e.Value, currentDate.Month, currentDate.Day);
+ MaxDaySet();
OnDateChanged();
}
DateChanged?.Invoke(this, eventArgs);
}
- private void MaxDaySet(int month)
+ private void MaxDaySet()
{
- int maxDaysInMonth = DateTime.DaysInMonth(currentDate.Year, month);
+ int maxDaysInMonth = DateTime.DaysInMonth(currentDate.Year, currentDate.Month);
dayPicker.MaxValue = maxDaysInMonth;
if (currentDate.Day > maxDaysInMonth)
{
- currentDate = new DateTime(currentDate.Year, month, maxDaysInMonth);
+ currentDate = new DateTime(currentDate.Year, currentDate.Month, maxDaysInMonth);
dayPicker.CurrentValue = maxDaysInMonth;
return;
}
- currentDate = new DateTime(currentDate.Year, month, currentDate.Day);
+ currentDate = new DateTime(currentDate.Year, currentDate.Month, currentDate.Day);
}
//FIXME: There is no way to know when system locale changed in NUI.
/// <summary>
/// ValueChangedEventArgs is a class to notify changed Picker value argument which will sent to user.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class ValueChangedEventArgs : EventArgs
{
/// <summary>
/// ValueChangedEventArgs default constructor.
/// <returns>The current value of Picker.</returns>
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public int Value { get; }
}
/// Picker is a class which provides a function that allows the user to select
/// a value through a scrolling motion by expressing the specified value as a list.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class Picker : Control
{
//Tizen 6.5 base components Picker guide visible scroll item is 5.
/// <summary>
/// Creates a new instance of Picker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Picker()
{
}
/// Creates a new instance of Picker.
/// </summary>
/// <param name="style">Creates Picker by special style defined in UX.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Picker(string style) : base(style)
{
}
/// Creates a new instance of Picker.
/// </summary>
/// <param name="pickerStyle">Creates Picker by style customized by user.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Picker(PickerStyle pickerStyle) : base(pickerStyle)
{
}
/// <summary>
/// An event emitted when Picker value changed, user can subscribe or unsubscribe to this event handler.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public event EventHandler<ValueChangedEventArgs> ValueChanged;
//TODO Fomatter here
/// <summary>
/// The values to be displayed instead of numbers.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public ReadOnlyCollection<String> DisplayedValues
{
get
/// <summary>
/// The Current value of Picker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public int CurrentValue
{
get
/// <summary>
/// The max value of Picker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public int MaxValue
{
get
/// <summary>
/// The min value of Picker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public int MinValue
{
get
/// <summary>
/// TimeChangedEventArgs is a class to notify changed TimePicker value argument which will sent to user.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class TimeChangedEventArgs : EventArgs
{
/// <summary>
/// TimeChangedEventArgs default constructor.
/// <returns>The current time value of TimePicker.</returns>
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DateTime Time { get; }
}
/// a time through a scrolling motion by expressing the specified value as a list.
/// TimePicker expresses the current time using the locale information of the system.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class TimePicker : Control
{
private bool isAm;
/// <summary>
/// Creates a new instance of TimePicker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public TimePicker()
{
}
/// Creates a new instance of TimePicker.
/// </summary>
/// <param name="style">Creates TimePicker by special style defined in UX.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public TimePicker(string style) : base(style)
{
}
/// Creates a new instance of TimePicker.
/// </summary>
/// <param name="timePickerStyle">Creates TimePicker by style customized by user.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public TimePicker(TimePickerStyle timePickerStyle) : base(timePickerStyle)
{
}
/// <summary>
/// An event emitted when TimePicker value changed, user can subscribe or unsubscribe to this event handler.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public event EventHandler<TimeChangedEventArgs> TimeChanged;
/// <summary>
/// The hour value of TimePicker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DateTime Time
{
get
/// <summary>
/// The is24hourview value of TimePicker.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public bool Is24HourView
{
get