コード例 #1
0
ファイル: SplitView.cs プロジェクト: curiosity-ai/tesserae
        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 BackgroundArea(IComponent content)
 {
     _raw       = Raw(content.Render());
     _container = Div(_("tss-background-area"), _raw.Render());
 }