EnglishSvenska

Xamarin CustomView Example

Github repo

Example project showing how to create a custom control (UIView) with XIB so that it's available in Xamarin iOS designer. Custom UIView does not render in storyboard, but can be selected from the toolbox window. If you make rendering in storyboard work, please make a pull request and I will merge it into this repo. The reason to this example project simply is that I was looking for an example like this but could not find something that was working out of the box.

Design custom view in xib using Visual Studio or Xcode (less buggy):

xib

CustomView is visible in Toolbox:

Toolbox

CustomView can be droped into your storyboard:

Storyboard

Simulator run. View can also be resized/rotated during runtime:

Storyboard

Getting Started

Clone and run .sln in Visual Studio.

Prerequisites

Visual Studio (Tested on Visual Studio CE 2017)

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

 

Github repo (to download code)