public MainPageCustom()
        {
            InitializeComponent();
            rssItem = new RSSFeedItem();
            var setting       = new SettingPage();
            var settingTabbar = new SettingTabView();

            viewModel.Url = "https://cdn.24h.com.vn/upload/rss/trangchu24h.rss";
            viewModel.LoadRssFeed();
            BindingContext = viewModel;
            setting.UpdateStyleItem();
            settingTabbar.UpdateSettingItem();
            if (Xamarin.Forms.Application.Current.Properties.ContainsKey("TabItem"))
            {
                if (Convert.ToBoolean(Xamarin.Forms.Application.Current.Properties["TabItem"].ToString()))
                {
                    TabBar.IsVisible = false;
                }
                else
                {
                    TabBar.IsVisible = true;
                }
            }
            TabBar.OnTabBarClicked += TabBar_OnTabItemClicked;
        }
Example #2
0
 public MainPageCustom()
 {
     InitializeComponent();
     rssItem        = new RSSFeedItem();
     BindingContext = viewModel;
     if (!string.IsNullOrEmpty(Url))
     {
         viewModel.Url = Url;
         viewModel.LoadRssFeed();
     }
     TabBar.OnTabBarClicked += TabBar_OnTabItemClicked;
 }
        public MainPageCustom()
        {
            InitializeComponent();
            rssItem = new RSSFeedItem();
            var setting = new SettingPage();

            viewModel.Url = "https://cdn.24h.com.vn/upload/rss/trangchu24h.rss";
            viewModel.LoadRssFeed();
            BindingContext = viewModel;
            setting.UpdateStyleItem();
            viewModel.heightImages  = 40;
            TabBar.OnTabBarClicked += TabBar_OnTabItemClicked;
        }
Example #4
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     viewModel.Url = Url;
     viewModel.LoadRssFeed();
 }
Example #5
0
 private void TabHost_OnTabItemClicked(object sender, string e)
 {
     viewModel.Url = e;
     viewModel.LoadRssFeed();
 }