public static readonly BindableProperty BackgroundColorSelectorProperty = BindableProperty.Create("BackgroundColorSelector", typeof(Selector<Color>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var viewStyle = (ViewStyle)bindable;
-
+
if (newValue == null)
{
viewStyle.backgroundColorSelector = null;
viewStyle.backgroundColorSelector = ((Selector<Color>)newValue).Clone();
viewStyle.backgroundImageSelector = null;
}
-
+
},
defaultValueCreator: (bindable) =>
{