[forms-devel] Add BackgroundColor and TextColor to MenuItem

Jason Smith jason.smith at xamarin.com
Thu May 26 16:40:05 UTC 2016

Hi Daniel!

Starting off with just a minor correction, Page.Icon is supported on all
platforms except Windows where it just doesn't map to anything.
CachingStrategy works on all platforms now.

We do not add API's that only work with a single platform, however I do
recognize the desire to support these specific properties. We are working
on an API that would start to enable us to do some things like this,
however it is not yet ready. At this time I do not see us adding this
feature into core. If you want to migrate your work to something that will
work, instead make it work using an attached property that you can set on
MenuItem. By doing it this way we can then move the attached property into
a platform specific namespace in the PCL where it is clear that it only
works on iOS.

Long term our plan around paltform specific features involves just that,
special namespaces + interfaces with extensions that contain attached
properties + getters/setters for thos attached properties.


On Thu, May 26, 2016 at 5:12 AM, <daniel at hindrikes.se> wrote:

> Hi,
> I an app that I working right now for a customer they wanted to have
> different colors on the context actions "buttons" on iOS. So I spend at
> least 2 days to write a custom solution for that. And a week after that I
> talked to a developer that wanted to do the same thing in his app.
> So my proposal is to add BackgroundColor and TextColor to MenuItem. This
> properties will just affect iOS while I think the feature  just is relevant
> on iOS. Therefore I think it is ok to add it to Xamarin.Forms even if it's
> not cross platform. I think it will saves a lot of time for many
> developers. And Xamarin.Forms already have properties that not is cross
> platform, Page.Icon and CachingStrategy for ListView for example.
> What do you think about this?
> Sorry for that I created a pull request for it before I discussed it here.
> I now know the process and will follow it in the future.
> Best regards,
> Daniel Hindrikes
> _______________________________________________
> forms-devel mailing list
> forms-devel at lists.xamarin.com
> http://lists.ximian.com/mailman/listinfo/forms-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/forms-devel/attachments/20160526/2ec40dbb/attachment-0001.html>

More information about the forms-devel mailing list