예제 #1
0
        public DecoratorItem( Decorator target ) : base()
        {
            m_label = new Label();
            m_label.SetWidth( 100.0f, MetricsUnits.Percentage );
            m_label.SetHeight( 16.0f );
            AddChild( m_label );

            SetWidth( 100.0f, MetricsUnits.Percentage );

            Bind( target );
        }
예제 #2
0
        public HierarchyItem( Control target, int depth ) : base()
        {
            m_depth = depth;

            m_label = new Label();
            m_label.SetWidth( 100.0f, MetricsUnits.Percentage );
            m_label.SetPosition( m_depth * LEVEL_INDENT, 0.0f );
            m_label.SetHeight( LINE_HEIGHT );
            AddChild( m_label );

            SetWidth( 100.0f, MetricsUnits.Percentage );

            Bind( target );
        }