}
}
+ private StringSelector switchBackgroundImageURLSelector = new StringSelector();
/// <summary>
/// Background image's resource url selector in Switch.
/// </summary>
{
get
{
- return (StringSelector)Style?.Track?.ResourceUrl;
+ return switchBackgroundImageURLSelector;
}
set
{
- if (null != value && null != Style?.Track)
- {
- Style.Track.ResourceUrl = value.Clone() as StringSelector;
- }
+ switchBackgroundImageURLSelector.Clone(value);
}
}
}
}
+ private StringSelector switchHandlerImageURLSelector = new StringSelector();
/// <summary>
/// Handler image's resource url selector in Switch.
/// </summary>
{
get
{
- return (StringSelector)Style?.Thumb?.ResourceUrl;
+ return switchHandlerImageURLSelector;
}
set
{
- if (null != value && null != Style?.Thumb)
- {
- Style.Thumb.ResourceUrl = value.Clone() as StringSelector;
- }
+ switchHandlerImageURLSelector.Clone(value);
}
}