示例#1
0
 public SplitView(UnitSize splitterSize = null)
 {
     LeftComponent           = Raw(Div(_()));
     SplitterComponent       = Raw(Div(_("tss-splitter")));
     RightComponent          = Raw(Div(_()));
     SplitterComponent.Width = (splitterSize is object && splitterSize.Unit != Unit.Auto && splitterSize.Unit != Unit.Inherit)
                                   ? splitterSize.ToString()
                                   : "8px";
     LeftComponent.Height     = "100%";
     SplitterComponent.Height = "100%";
     RightComponent.Height    = "100%";
     SplitInMiddle();
     InnerElement = Div(_("tss-splitview"), LeftComponent.Render(), SplitterComponent.Render(), RightComponent.Render());
 }
示例#2
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));
        }
示例#3
0
 public BackgroundArea(IComponent content)
 {
     _raw       = Raw(content.Render());
     _container = Div(_("tss-background-area"), _raw.Render());
 }