예제 #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%";

            _leftComponent.Width  = "10px";
            _rightComponent.Width = "10px";

            _leftComponent.FlexGrow  = "1";
            _rightComponent.FlexGrow = "1";

            _splitContainer = 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());
 }