Bug 16018 - Can't make a custom view property part of UIAppearance in Xamarin.iOS
Summary: Can't make a custom view property part of UIAppearance in Xamarin.iOS
Status: NEW
Alias: None
Product: iOS
Classification: Xamarin
Component: General (show other bugs)
Version: 7.0.2.x
Hardware: Macintosh Mac OS
: --- enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-11-07 16:57 UTC by Jon Goldberger [MSFT]
Modified: 2013-11-07 16:59 UTC (History)
1 user (show)

See Also:
Is this bug a regression?: ---
Last known good build:

Sample Project (8.09 KB, application/zip)
2013-11-07 16:57 UTC, Jon Goldberger [MSFT]

Comment 1 Jon Goldberger [MSFT] 2013-11-07 16:57:31 UTC
Created attachment 5363 [details]
Sample Project
Comment 2 Jon Goldberger [MSFT] 2013-11-07 16:59:41 UTC
If I have a custom view and I want to make a property part of the UIAppearance in ObjC I just add UI_APPEARANCE_SELECTOR to it. How do I do that in Xamarin.iOS?
The UIAppearance system allows
you to not only change what default colors are from app to app (like
having a static property that is used to set the instance property in the
constructor) but it also allows you to set the default colors whenever
that particular view is created in another particular view (make the same
view look different in when put into a view of type A verses when it is
put into a view of type B). UIAppearance also lets you change the
defaults for subclasses, so I can set the default background color for
text box to be one color and then the background of a subclass of text box
to be another color.

Note You need to log in before you can comment on or make changes to this bug.