public CustomContentLoader(IPageBase pageBase) : base(pageBase) { HideNavigationBar = true; HandlePageBack = true; SetBinding(IsLoadingProperty, Binding.Create <AppViewModelBase>(vm => vm.IsBusy)); var activityIndicator = new ActivityIndicator(); activityIndicator.SetBinding(ActivityIndicator.IsRunningProperty, Binding.Create <AppViewModelBase>(vm => vm.IsBusy)); activityIndicator.SetBinding(ActivityIndicator.IsVisibleProperty, Binding.Create <AppViewModelBase>(vm => vm.IsBusy)); var entry = new Label(); entry.Text = "Carregando..."; entry.HorizontalTextAlignment = TextAlignment.Center; var stackLayout = new StackLayout() { Spacing = 10, Padding = 8, HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center }; stackLayout.Children.Add(activityIndicator); stackLayout.Children.Add(entry); LoadingContent = stackLayout; }
public InformUserHelper(Response <T> response, IPageBase page) { Response = response; Page = page; }
public ContentLoader(IPageBase parentPage) : this() { ParentPage = parentPage; }
/// <summary>Static getter for Headline</summary> public static string GetHeadline(IPageBase that) { return(that.GetPropertyValue <string>("headline")); }
/// <summary>Static getter for Content</summary> public static IHtmlString GetContent(IPageBase that) { return(that.GetPropertyValue <IHtmlString>("content")); }
/// <summary>Static getter for Image</summary> public static IPublishedContent GetImage(IPageBase that) { return(that.GetPropertyValue <IPublishedContent>("image")); }