Skip to content

An example on how to make a custom UIView for iOS in Xamarin using .xib files

License

Notifications You must be signed in to change notification settings

StooC/XamarinCustomViewExample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An example on how to make a custom UIView for iOS in Xamarin using .xib files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%