Episode 35: iOS Designer for Xamarin Updates with Alex Corrado

Play Episode 35: iOS Designer for Xamarin Updates with Alex Corrado

The Discussion

  • User profile image

    I've been developing iOS swift/ObjC with storyboards for years. What I don't understand, is how do you tie the xaml bindings to the named elements on the storyboard like you are doing on android applications? Do you have an example application that does android/iOS with storyboards, that does the xaml bindings for both apps? Thanks.

  • User profile image

    @Rob: Hey there, I am a bit confused on the question I guess.

    For traditional iOS/Android we use Storyboards/Android XML separate user interfaces with shared code. Our designer for iOS will automagically set the Outlet when you update the name of a control in it. This way you don't need to update any headers or anything like that, it just generates the code.

    It sounds like you are talking more about Xamarin.Forms, our cross platform user interface library. To name a control you would just use x:Name="Name" to expose it in the code behind. Or do data binding to it. We have some great docs here: https://developer.xamarin.com/guides/xamarin-forms/xaml/xaml-basics/

    I would also recommend my MVVM episode: https://channel9.msdn.com/Shows/XamarinShow/Introduction-to-MVVM

Add Your 2 Cents