Skip to content
An example on how to make a custom UIView for iOS in Xamarin using .xib files
Branch: master
Clone or download
Latest commit 2a3890c Apr 29, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CustomView
Readme Images adds screenshots, tested on Visual Studio Mac. Apr 29, 2017
.gitattributes
.gitignore initial commit. Apr 29, 2017
CustomView.sln
LICENSE.md
readme.md Update readme.md Apr 29, 2017

readme.md

Xamarin CustomView Example

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

You can’t perform that action at this time.