Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Last active November 30, 2017 23:36
Show Gist options
  • Save rdelrosario/ec0bd313ff4f9b89b65b7376f12da78b to your computer and use it in GitHub Desktop.
Save rdelrosario/ec0bd313ff4f9b89b65b7376f12da78b to your computer and use it in GitHub Desktop.
CustomPage
public class CustomPage : ContentPage
{
public static readonly BindableProperty FormattedTitleProperty = BindableProperty.Create(nameof(FormattedTitle),typeof(FormattedString),typeof(CustomPage),null);
public FormattedString FormattedTitle
{
get { return (FormattedString)GetValue(FormattedTitleProperty); }
set
{
SetValue(FormattedTitleProperty, value);
}
}
public static readonly BindableProperty FormattedSubtitleProperty = BindableProperty.Create(nameof(FormattedSubtitle),typeof(FormattedString),typeof(CustomPage),null);
public FormattedString FormattedSubtitle
{
get
{
return (FormattedString)GetValue(FormattedSubtitleProperty);
}
set
{
SetValue(FormattedSubtitleProperty, value);
}
}
public static readonly BindableProperty FormattedTitleProperty = BindableProperty.Create(nameof(FormattedTitle),typeof(FormattedString),typeof(CustomPage),null);
public FormattedString FormattedTitle
{
get { return (FormattedString)GetValue(FormattedTitleProperty); }
set
{
SetValue(FormattedTitleProperty, value);
}
}
public static readonly BindableProperty FormattedSubtitleProperty = BindableProperty.Create(nameof(FormattedSubtitle),typeof(FormattedString), typeof(CustomPage), null);
public FormattedString FormattedSubtitle
{
get { return (FormattedString)GetValue(FormattedSubtitleProperty); }
set
{
SetValue(FormattedSubtitleProperty, value);
}
}
public static readonly BindableProperty SubtitleProperty = BindableProperty.Create(nameof(Subtitle),typeof(string),typeof(CustomPage),null);
public string Subtitle
{
get { return (string)GetValue(SubtitleProperty); }
set
{
SetValue(SubtitleProperty, value);
}
}
public CustomPage()
{
InitializeComponent();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment