texas February 2016

Appearance in Xamarin.iOS

I could not able to handle the following assignment in the Xamarin.

I am trying to convert to objective -c code to the Xamarin as follows, but I am getting an error.

Here is the Objective-C code:

UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor whiteColor];
pageControl.currentPageIndicatorTintColor = [UIColor redColor];

Here is my attempt in Xamarin.iOS

enter image description here

Answers


Jason February 2016

Appearance API

UIPageControl.Appearance.PageIndicatorTintColor = UIColor.White;
UIPageControl.Appearance.CurrentPageIndicatorTintColor = UIColor.Red;

Post Status

Asked in February 2016
Viewed 2,519 times
Voted 14
Answered 1 times

Search




Leave an answer