Foxtable(狐表)用户栏目专家坐堂 → 移动开发,容器加入容器。


  共有3455人关注过本帖树形打印复制链接

主题:移动开发,容器加入容器。

帅哥哟,离线,有人找我吗?
foxtablefanse
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:568 积分:5452 威望:0 精华:0 注册:2018/11/6 10:54:00
移动开发,容器加入容器。  发帖心情 Post By:2022/3/25 17:33:00 [只看该作者]

''主页,多页格式
Dim e As RequestEventArgs = args(0)
Dim wb As New WeUI
Select Case e.Path
   Case "HomePage.htm"
        Dim txt As String = "由各种物质组成的巨型球状天体,叫做星球.星球有一定的形状,有自己的运行轨道."
        '增加三个页面,一个按钮
        With wb.AddTabBar("", "tb1", 1)
            .AddPage("page1","移动办公","./images/button.png")
            .AddPage("page2","我的工作","./images/msg.png")
            .AddPage("page3","学习园地","./images/article.png")
            .AddButton("bt1","与我相关","./images/cell.png","http://www.foxtable.com")
        End With
        '为第一个页面增加内容
        wb.AddForm("page1","form1","test.htm")
                    With wb.AddGrid("","g1")
                .Add("c1","Button", "./images/button.png").Attribute = ""
                .Add("c2","Cell", "./images/cell.png", "http://www.foxtable.com")
                .Add("c3","Toast", "./images/toast.png", "http://www.foxtable.com")
                .Add("c4","Dialog", "./images/dialog.png", "http://www.foxtable.com")
                .Add("c5","Progress", "./images/progress.png", "http://www.foxtable.com")
                .Add("c6","Msg", "./images/msg.png", "http://www.foxtable.com")
                .Add("c7","Article", "./images/article.png", "http://www.foxtable.com")
                .Add("c8","ActionSheet", "./images/actionSheet.png", "http://www.foxtable.com")
                .Add("c9","Icons", "./images/icons.png", "http://www.foxtable.com")
                .Add("c10","Panel", "./images/panel.png", "http://www.foxtable.com")
                .Add("c11","Tab", "./images/tab.png", "http://www.foxtable.com")
                .Add("c12","SearchBar", "./images/search.png", "http://www.foxtable.com")
            End With
        '为第二个页面增加内容
        With wb.AddPanelGroup("page2","pg1","图文组合列表")
            .Add("pn1","标题一",txt,"./images/button.png","http://www.foxtable.com")
            With .Add("pn2","标题二",txt,"./images/search.png")
                .AddFoot("文字来源")
                .AddFoot("时间")
                .AddFoot("|其他信息","http://www.foxtable.com")
            End With
            .GroupFoot = "查看更多"
            .GroupHref = "http://www.foxtable.com/"
        End With
        '为第三个页面增加内容
        With wb.AddArticle("page3","ar1")
        End With
        e.WriteString(wb.Build)
End Select
顶部的空档太大了!!

图片点击可在新窗口打开查看此主题相关图片如下:微信图片_20220325173145.jpg
图片点击可在新窗口打开查看



 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110532 积分:562544 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/3/25 17:42:00 [只看该作者]

       wb.AddForm("page1","form1","test.htm")
                    With wb.AddGrid("form1","g1")

 回到顶部