Ext.NET 基础学习笔记08 (FormPanel)

登录窗体:

<ext:Window runat="server" Title="用户登录" Width="300" Height="200" Layout="FitLayout" Icon="UserGo">
    <Items>
        <ext:FormPanel ID="FormPanel1" runat="server" Layout="FormLayout" BodyPadding="5">
            <FieldDefaults LabelWidth="60" LabelAlign="Right"></FieldDefaults>
            <Items>
                <ext:TextField runat="server"
                    ID="txtName" FieldLabel="用户名"
                    Icon="User">
                </ext:TextField>
                <ext:TextField runat="server"
                    ID="txtPassword"
                    FieldLabel="密码"
                    Icon="Key"
                    InputType="Password">
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button runat="server" Text="登陆" Icon="Accept"></ext:Button>
                <ext:Button runat="server" Text="注册" Icon="UserAdd"></ext:Button>
            </Buttons>
        </ext:FormPanel>
    </Items>
</ext:Window>

原文地址:https://www.cnblogs.com/YuanDong1314/p/12987352.html