Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 22625 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
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
`UITextView.Appearance` is "missing" some properties such as `TextColor`.
This is essentially the same issue as https://bugzilla.xamarin.com/show_bug.cgi?id=21221, but for `UITextView` instead of `UIScrollView`.
As discussed on bug 21221 (and bug 8342), the UIKit headers distributed by Apple  do not strictly adhere to the rule that properties that participate in the appearance proxy API should be tagged with the UI_APPEARANCE_SELECTOR .
>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/
>  https://developer.apple.com/library/ios/recipes/UIAppearanceContainer_Protocol/Reference/Reference.html#//apple_ref/c/macro/UI_APPEARANCE_SELECTOR
The fact that none of the `UITextView` properties are tagged conflicts with the "Appearance of Text Views" section from the iOS Developer Library . That article lists the following properties:
And then says: "To customize the appearance of all text views in your app, use the appearance proxy (for example, [UITextView appearance])".
>  https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UITextView.html#//apple_ref/doc/uid/TP40012857-UITextView-SW3
You can treat the appearance proxy as a full `UITextView` instead of a `UITextView.UITextViewAppearance` (see ). That way you'll be able to attempt to set any property that is part of `UITextView`. Just remember that not all of the properties from `UITextView` will necessarily be compatible with the appearance proxy!
>  http://stackoverflow.com/a/14531680/220643
Here's an example that sets a few properties on the appearance proxy. All the properties in this example seem to work on iOS 7.
> var appearance = new UITextView (UITextView.Appearance.Handle);
> appearance.Text = "Override text in all text views";
> appearance.TextColor = UIColor.Blue;
> appearance.Font = UIFont.BoldSystemFontOfSize(16);
> appearance.TextAlignment = UITextAlignment.Justified;
> appearance.TextContainerInset = new UIEdgeInsets(10, 10, 10, 10);