zoukankan      html  css  js  c++  java
  • XF 标签页面

    using System;
    using Xamarin.Forms;
    using Xamarin.Forms.Xaml;

    [assembly: XamlCompilation (XamlCompilationOptions.Compile)]
    namespace App12
    {
        public partial class App : Application
        {
            public App ()
            {
                InitializeComponent();

                MainPage = new TabbedPage1();//删除MainPage添加标签页面
            }

            protected override void OnStart ()
            {
                // Handle when your app starts
            }

            protected override void OnSleep ()
            {
                // Handle when your app sleeps
            }

            protected override void OnResume ()
            {
                // Handle when your app resumes
            }
        }
    }
     

    <?xml version="1.0" encoding="utf-8" ?>
    <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 x:Class="App12.TabbedPage1">
      <!--Pages can be added as references or inline-->
        <ContentPage Title="Tab 1">
            <BoxView BackgroundColor="AliceBlue"></BoxView>
        </ContentPage>
        <ContentPage Title="Tab 2" >
            <BoxView BackgroundColor="Red"></BoxView>

        </ContentPage>
        <ContentPage Title="Tab 3" >
            <BoxView BackgroundColor="Yellow"></BoxView>

        </ContentPage>
    </TabbedPage>

  • 相关阅读:
    C#设计模式学习笔记-单例模式
    面向对象的七种设计原则
    继承 示例1
    继承和多态的那些事
    体检套餐管理项目
    魔兽登录系统
    清空表
    mysql批量插入
    mkdir用大括号同时建立多个同级和下级目录
    linux查看机器位数
  • 原文地址:https://www.cnblogs.com/dxmfans/p/9434586.html
Copyright © 2011-2022 走看看