Ext.NET 基础学习笔记03 (Ext.Net 布局)

Ext.Net中的布局是对ExtJS布局的封装,可以用在panel控件,或者继承自panel的控件,例如window、form、gridpanel、treepanel等

 

<ext:Window runat="server" ID="win1"
                Title="Layout示例" Width="600" Height="400"
                Layout="BorderLayout">
                <Items>
                    <ext:Panel ID="Panel1" runat="server"
                        Region="West" Title="西1"
                        Width="100" Border="true" Weight="5">    //同一个Region需要设置权重改变布局位置
                    </ext:Panel>
                    <ext:Panel ID="Panel6" runat="server"
                        Region="West" Title="西2"
                        Width="100" Border="true" Weight="10">
                    </ext:Panel>
                    <ext:Panel ID="Panel2" runat="server"
                        Region="East" Title="东"
                        Width="100" Border="true">
                    </ext:Panel>
                    <ext:Panel ID="Panel3" runat="server"
                        Region="North" Title="北"
                        Height="100" Border="true">
                    </ext:Panel>
                    <ext:Panel ID="Panel4" runat="server"
                        Region="South" Title="南"
                        Height="100" Border="true">
                    </ext:Panel>
                    <ext:Panel ID="Panel5" runat="server"
                        Region="Center" Title="中"
                        Border="true">
                    </ext:Panel>
                </Items>
                <LayoutConfig>
                    <ext:BorderLayoutConfig Padding="5"></ext:BorderLayoutConfig>    //对boder布局进行配置
                </LayoutConfig>
            </ext:Window>

Ext.NET 基础学习笔记03 (Ext.Net 布局)

上一篇:校园网站地图绘制


下一篇:input上传图片的坑