Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created December 5, 2017 20:58
Show Gist options
  • Save rdelrosario/11c8b1f8ce21d0c24b52332c5416bebf to your computer and use it in GitHub Desktop.
Save rdelrosario/11c8b1f8ce21d0c24b52332c5416bebf to your computer and use it in GitHub Desktop.
ioS renderer custom page
public override void ViewDidLoad()
{
base.ViewDidLoad();
containerView = new UIView()
{
AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth
};
titleView = new UIView()
{
};
marginView = new UIView()
{
};
titleLabel = new UILabel()
{
Text = Title
};
subtitleLabel = new UILabel()
{
Hidden = true
};
titleView.Add(titleLabel);
titleView.Add(subtitleLabel);
marginView.Add(titleView);
containerView.Add(marginView);
Element.PropertyChanged += Element_PropertyChanged;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment