Reputation: 16793
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
Upvotes: 0
Views: 89
Reputation: 89082
UIPageControl.Appearance.PageIndicatorTintColor = UIColor.White;
UIPageControl.Appearance.CurrentPageIndicatorTintColor = UIColor.Red;
Upvotes: 1