private static object HeaderContentCoerceValue(BindableObject bindableObject, object value) { if (bindableObject != null && value != null && value is ContentView) { ParallaxView instance = (ParallaxView)bindableObject; instance.Header.Content = (ContentView)value; } return(value); }
private static object BodyMarginCoerceValue(BindableObject bindableObject, object value) { if (bindableObject != null && value != null && value is Thickness) { ParallaxView instance = (ParallaxView)bindableObject; if (instance.Body != null) { instance.Body.Margin = instance.BodyMargin; } } return(value); }
private static object BodyContentCoerceValue(BindableObject bindableObject, object value) { if (bindableObject != null && value != null && value is ContentView) { ParallaxView instance = (ParallaxView)bindableObject; instance.Body.Content = (ContentView)value; if (instance.BodyMargin != null) { instance.Body.Margin = instance.BodyMargin; } } return(value); }