}
/// <summary>
- /// DatePicker is a class which provides a function that allows the user to select
+ /// DatePicker is a class which provides a function that allows the user to select
/// a date through a scrolling motion by expressing the specified value as a list.
/// DatePicker expresses the current date using the locale information of the system.
/// Year range is 1970~2038 (glibc time_t struct min, max value)
SetKeyboardNavigationSupport(true);
}
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void OnEnabled(bool enabled)
+ {
+ base.OnEnabled(enabled);
+
+ dayPicker.IsEnabled = enabled;
+ monthPicker.IsEnabled = enabled;
+ yearPicker.IsEnabled = enabled;
+ }
/// <summary>
/// Dispose DatePicker and all children on it.
}
/// <summary>
- /// ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode.
+ /// ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode.
/// ToDo : this should be fixed and changed properly by owner. (And UX SPEC should be referenced also)
/// </summary>
/// <param name="currentFocusedView"></param>
}
/// <summary>
- /// Picker is a class which provides a function that allows the user to select
+ /// 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>
/// <since_tizen> 9 </since_tizen>
{
//Tizen 6.5 base components Picker guide visible scroll item is 5.
private const int scrollVisibleItems = 5;
- //Dummy item count for loop feature. Max value of scrolling distance in
+ //Dummy item count for loop feature. Max value of scrolling distance in
//RPI target is bigger than 20 items height. it can adjust depends on the internal logic and device env.
private const int dummyItemsForLoop = 20;
private int startScrollOffset;
{
}
+
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void OnEnabled(bool enabled)
+ {
+ base.OnEnabled(enabled);
+
+ pickerScroller.IsEnabled = enabled;
+ }
+
/// <summary>
/// Dispose Picker and all children on it.
/// </summary>
}
/// <summary>
- /// TimePicker is a class which provides a function that allows the user to select
+ /// TimePicker is a class which provides a function that allows the user to select
/// 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>
}
}
+
+ /// <inheritdoc/>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void OnEnabled(bool enabled)
+ {
+ base.OnEnabled(enabled);
+
+ hourPicker.IsEnabled = enabled;
+ minutePicker.IsEnabled = enabled;
+ ampmPicker.IsEnabled = enabled;
+ }
+
/// <summary>
/// Initialize TimePicker object.
/// </summary>
}
/// <summary>
- /// ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode.
+ /// ToDo : only key navigation is enabled, and value editing is added as an very simple operation. by toggling enter key, it switches edit mode.
/// ToDo : this should be fixed and changed properly by owner. (And UX SPEC should be referenced also)
/// </summary>
/// <param name="currentFocusedView"></param>
};
rootContent.Add(label);
+ var toggle = new Switch()
+ {
+ Text = "Disable Switch",
+ };
+ toggle.SelectedChanged += (object obj, SelectedChangedEventArgs ev) =>
+ {
+ datePicker.IsEnabled = !(ev.IsSelected);
+ Console.WriteLine($"Picker is {datePicker.IsEnabled}");
+ };
+ rootContent.Add(toggle);
+
button = new Tizen.NUI.Components.Button
{
WidthSpecification = LayoutParamPolicies.MatchParent,
};
rootContent.Add(label);
+ var toggle = new Switch()
+ {
+ Text = "Disable Switch",
+ };
+ toggle.SelectedChanged += (object obj, SelectedChangedEventArgs ev) =>
+ {
+ timePicker.IsEnabled = !(ev.IsSelected);
+ Console.WriteLine($"Picker is {timePicker.IsEnabled}");
+ };
+ rootContent.Add(toggle);
+
button = new Tizen.NUI.Components.Button
{
WidthSpecification = LayoutParamPolicies.MatchParent,