/// The icon part consists of track and thumb.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- public class Switch : Button
+ public partial class Switch : Button
{
private ImageView thumb = null;
/// <since_tizen> 6 </since_tizen>
public StringSelector SwitchBackgroundImageURLSelector
{
- get => new StringSelector(Icon.ResourceUrlSelector);
+ get
+ {
+ return GetValue(SwitchBackgroundImageURLSelectorProperty) as StringSelector;
+ }
+ set
+ {
+ SetValue(SwitchBackgroundImageURLSelectorProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private StringSelector InternalSwitchBackgroundImageURLSelector
+ {
+ get => Icon?.ResourceUrlSelector == null ? null : new StringSelector(Icon.ResourceUrlSelector);
set
{
Debug.Assert(Icon != null);
{
get
{
+ return GetValue(SwitchHandlerImageURLProperty) as string;
+ }
+ set
+ {
+ SetValue(SwitchHandlerImageURLProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private string InternalSwitchHandlerImageURL
+ {
+ get
+ {
return Thumb.ResourceUrl;
}
set
/// <since_tizen> 6 </since_tizen>
public StringSelector SwitchHandlerImageURLSelector
{
+ get
+ {
+ return GetValue(SwitchHandlerImageURLSelectorProperty) as StringSelector;
+ }
+ set
+ {
+ SetValue(SwitchHandlerImageURLSelectorProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private StringSelector InternalSwitchHandlerImageURLSelector
+ {
get => new StringSelector(thumb.ResourceUrlSelector);
set
{
{
get
{
+ return GetValue(SwitchHandlerImageSizeProperty) as Size;
+ }
+ set
+ {
+ SetValue(SwitchHandlerImageSizeProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+ private Size InternalSwitchHandlerImageSize
+ {
+ get
+ {
return Thumb.Size;
}
set