Exemple #1
0
        public FoldoutList( string title, float indentation, bool unfolded )
            : base()
        {
            m_indentationAmount = indentation;

            m_foldout = new Foldout( title, unfolded );
            m_foldout.SetWidth( 100.0f, MetricsUnits.Percentage );

            m_content = new Control();
            m_content.SetWidth( 100.0f, MetricsUnits.Percentage );
            m_content.AddDecorator( new StackContent( StackContent.StackMode.Vertical, StackContent.OverflowMode.Flow ) );
            m_content.AddDecorator( new FitContent( false, true, false, true ) );

            AddChild( m_foldout );
            AddChild( m_content );

            AddDecorator( new StackContent( StackContent.StackMode.Vertical, StackContent.OverflowMode.Flow ) );
            AddDecorator( new FitContent( false, true, false, true ) );

            m_foldout.ValueChange += FoldoutValueChange;
            SetFoldState( unfolded );
        }
Exemple #2
0
        public FoldoutList(string title, float indentation, bool unfolded)
            : base()
        {
            m_indentationAmount = indentation;

            m_foldout = new Foldout(title, unfolded);
            m_foldout.SetWidth(100.0f, MetricsUnits.Percentage);

            m_content = new Control();
            m_content.SetWidth(100.0f, MetricsUnits.Percentage);
            m_content.AddDecorator(new StackContent(StackContent.StackMode.Vertical, StackContent.OverflowMode.Flow));
            m_content.AddDecorator(new FitContent(false, true, false, true));

            AddChild(m_foldout);
            AddChild(m_content);

            AddDecorator(new StackContent(StackContent.StackMode.Vertical, StackContent.OverflowMode.Flow));
            AddDecorator(new FitContent(false, true, false, true));

            m_foldout.ValueChange += FoldoutValueChange;
            SetFoldState(unfolded);
        }