Hi Deepa,
We have prepared a sample and tried to meet your requirement. In the sample, we have updated the Frame of SfComboBox based on device size when it is rotated and rotation is notified by an observer registered to the NSNotificationCenter. Please find code snippet and sample given below:
|
void DeviceRotated(NSNotification notification) { if(UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.Portrait) { combobox.Frame = new CoreGraphics.CGRect(25, 100, this.View.Frame.Width - 50, 40); } else if(UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeLeft || UIDevice.CurrentDevice.Orientation == UIDeviceOrientation.LandscapeRight) { combobox.Frame = new CoreGraphics.CGRect(25, 100, this.View.Frame.Width - 50, 40); } } |
We have modified the sample for the same. please download it from the link given below.
Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ComboBoxSample637726011
Please let us know if you have any concern about this.
Regards,
Mugundhan S.