PowerArgs.Cli.ScrollablePanel.ScrollablePanel C# (CSharp) 메소드

ScrollablePanel() 공개 메소드

public ScrollablePanel ( ) : System
리턴 System
        public ScrollablePanel()
        {
            ScrollableContent = Add(new ConsolePanel() { IsVisible = false }).Fill();

            verticalScrollbar = Add(new Scrollbar(Orientation.Vertical) { Width = 1 }).DockToRight();
            horizontalScrollbar = Add(new Scrollbar(Orientation.Horizontal) { Height = 1 }).DockToBottom();

            AddedToVisualTree.SubscribeForLifetime(OnAddedToVisualTree, this.LifetimeManager);
            RemovedFromVisualTree.SubscribeForLifetime(OnRemovedFromVisualTree, this.LifetimeManager);
        }