casillas
casillas

Reputation: 16793

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

Upvotes: 0

Views: 89

Answers (1)

Jason
Jason

Reputation: 89082

Appearance API

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

Upvotes: 1

Related Questions