Esempio n. 1
0
 public ProgressModal Progress(float percent)
 {
     if (_isSpinner)
     {
         _progressHost.Content(_progressIndicator);
         _isSpinner = false;
     }
     _progressIndicator.Progress(percent);
     return(this);
 }
Esempio n. 2
0
        public SplitView Right(IComponent component, string background = "")
        {
            RightComponent.Content(component);

            RightComponent.Background = background;
            return(this);
        }
Esempio n. 3
0
        public SplitView Left(IComponent component, string background = "")
        {
            LeftComponent.Content(component);

            LeftComponent.Background = background;
            return(this);
        }
Esempio n. 4
0
        public ProgressModal()
        {
            var x_TODO = Modal();

            x_TODO.Blocking();


            _titleHost    = Raw().WidthStretch();
            _messageHost  = Raw().WidthStretch();
            _footerHost   = Raw().WidthStretch();
            _progressHost = Raw();
            _spinner      = Spinner().Large().Margin(8.px());
            _progressHost.Content(_spinner);
            _progressIndicator = ProgressIndicator();
            _isSpinner         = true;
            _modalHost         = Modal().Blocking().NoLightDismiss().HideCloseButton().CenterContent()
                                 .Content(Stack()
                                          .AlignCenter()
                                          .WidthStretch()
                                          .Children(_titleHost, _progressHost, _messageHost, _footerHost));
        }
Esempio n. 5
0
 public ProgressModal Title(string title)
 {
     _titleHost.Content(TextBlock(title).SemiBold().Primary().PaddingTop(16.px()).PaddingBottom(8.px()));
     return(this);
 }
Esempio n. 6
0
 public ProgressModal Message(string message)
 {
     _messageHost.Content(TextBlock(message));
     return(this);
 }
Esempio n. 7
0
 public BackgroundArea Content(IComponent content)
 {
     _raw.Content(content);
     return(this);
 }
Esempio n. 8
0
 public SplitView Splitter(IComponent component)
 {
     SplitterComponent.Content(component);
     return(this);
 }