}
/// <summary>
+ /// The color selector for the borderline of the View.
+ /// Like BackgroundColor, color selector typed BorderlineColor should be used in ViewStyle only.
+ /// So this API is internally used only.
+ /// </summary>
+ internal Selector<Color> BorderlineColorSelector
+ {
+ get
+ {
+ return (Selector<Color>)GetValue(BorderlineColorSelectorProperty);
+ }
+ set
+ {
+ SetValue(BorderlineColorSelectorProperty, value);
+ NotifyPropertyChanged();
+ }
+ }
+
+ /// <summary>
/// The Relative offset for the borderline of the View.
/// Recommended range : [-1.0f to 1.0f].
/// If -1.0f, draw borderline inside of the View.
);
/// <summary>
+ /// BorderlineColorSelector Property
+ /// Like BackgroundColor, color selector typed BorderlineColor should be used in ViewStyle only.
+ /// So this API is internally used only.
+ /// </summary>
+ internal static readonly BindableProperty BorderlineColorSelectorProperty = BindableProperty.Create(nameof(BorderlineColorSelector), typeof(Selector<Color>), typeof(View), null,
+ propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var view = (View)bindable;
+
+ view.themeData?.selectorData?.BorderlineColor?.Reset(view);
+
+ Selector<Color> selector = newValue as Selector<Color>;
+ if (selector.HasAll()) view.SetBorderlineColor(selector.All);
+ else view.EnsureSelectorData().BorderlineColor = new TriggerableSelector<Color>(view, selector, view.SetBorderlineColor, true);
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var view = (View)bindable;
+ var selector = view.themeData?.selectorData?.BorderlineColor?.Get();
+ return (null != selector) ? selector : new Selector<Color>();
+ }
+ );
+
+ /// <summary>
/// BorderlineOffset Property
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]