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
URL:
Depends on:
Blocks:
 
Reported: 2013-11-07 16:57 UTC by Jon Goldberger [MSFT]
Modified: 2013-11-07 16:59 UTC (History)
1 user (show)

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


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


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 16018 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

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.