Search code examples
iosxamarinxamarin.iosstoryboard

How to know the current storyboard name in xamarin iOS?


How can I put in a string variable the name of the current storyboard Ive got this for objective-c

UIStoryboard * storyboard = self.storyboard;
NSString * storyboardName = [storyboard valueForKey:@"name"];

but I have to pass it to Xamarin iOS


Solution

  • Xamarin.iOS:

    var storyBoard = this.Storyboard;
    var storyBoardName = storyBoard.ValueForKey(new NSString ("name"));