Q:

how to change UISlder from horizontal to vertical in Xamarin's monotouch?

I need my UISlider, in a Monotouch iPad app, to be vertical, not horizontal.
How is this done in Monotouch?
For iOS, the solution elsewhere on Stackoverflow is this in iOS:
- (void)viewDidLoad {

    [super viewDidLoad];

    CGAffineTransform trans = CGAffineTransformMakeRotation(M_PI * 0.5);
    slider.transform = trans;
}

So, in my monotouch .cs C# file I did this:
using MonoTouch.CoreGraphics;
public override void ViewDidLoad()
{
    //...
    CGAffineTransform trans = CGAffineTransformMakeRotation(M_PI * 0.5);
    power_slider.transform = trans;
}

...but the Xamarin compiler does not know CGAffineTransformMakeRotation and this is not in the Xamarin.iOS API

A:

Here is my solution that works great:
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreGraphics;
CGAffineTransform transform = CGAffineTransform.MakeRotation((float)(Math.PI * 1.5));
ultrasound_power_slider.Transform = transform;
ultrasound_gain_slider.Transform = transform;

