public ProgressModal Progress(float percent) { if (_isSpinner) { _progressHost.Content(_progressIndicator); _isSpinner = false; } _progressIndicator.Progress(percent); return(this); }
public SplitView Right(IComponent component, string background = "") { RightComponent.Content(component); RightComponent.Background = background; return(this); }
public SplitView Left(IComponent component, string background = "") { LeftComponent.Content(component); LeftComponent.Background = background; return(this); }
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)); }
public ProgressModal Title(string title) { _titleHost.Content(TextBlock(title).SemiBold().Primary().PaddingTop(16.px()).PaddingBottom(8.px())); return(this); }
public ProgressModal Message(string message) { _messageHost.Content(TextBlock(message)); return(this); }
public BackgroundArea Content(IComponent content) { _raw.Content(content); return(this); }
public SplitView Splitter(IComponent component) { SplitterComponent.Content(component); return(this); }