Example #1
0
        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;
        }
Example #2
0
 public InformUserHelper(Response <T> response, IPageBase page)
 {
     Response = response;
     Page     = page;
 }
Example #3
0
 public ContentLoader(IPageBase parentPage) : this()
 {
     ParentPage = parentPage;
 }
Example #4
0
 /// <summary>Static getter for Headline</summary>
 public static string GetHeadline(IPageBase that)
 {
     return(that.GetPropertyValue <string>("headline"));
 }
Example #5
0
 /// <summary>Static getter for Content</summary>
 public static IHtmlString GetContent(IPageBase that)
 {
     return(that.GetPropertyValue <IHtmlString>("content"));
 }
Example #6
0
 /// <summary>Static getter for Image</summary>
 public static IPublishedContent GetImage(IPageBase that)
 {
     return(that.GetPropertyValue <IPublishedContent>("image"));
 }