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

            return(this);
        }
Beispiel #3
0
        public SplitView Left(IComponent component, string background = "")
        {
            _leftComponent.Content(component);
            _leftComponent.Background = background;

            return(this);
        }
Beispiel #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));
        }
Beispiel #5
0
 public ProgressModal Title(string title)
 {
     _titleHost.Content(TextBlock(title).SemiBold().Primary().PaddingTop(16.px()).PaddingBottom(8.px()));
     return(this);
 }
Beispiel #6
0
 public ProgressModal Message(string message)
 {
     _messageHost.Content(TextBlock(message));
     return(this);
 }
Beispiel #7
0
 public BackgroundArea Content(IComponent content)
 {
     _raw.Content(content);
     return(this);
 }
Beispiel #8
0
 public TutorialModal SetImageSrc(string imageSrc, UnitSize padding)
 {
     _illustration.Content(Image(imageSrc).Contain().MaxWidth(100.percent()).MaxHeight(100.percent()));
     _illustration.Padding(padding);
     return(this);
 }
Beispiel #9
0
 public SplitView Splitter(IComponent component)
 {
     _splitterComponent.Content(component);
     return(this);
 }