Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace SlogGISMobile.Page.jianstra.infobekum
- {
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class DashboardInfobekumPage : ContentPage
- {
- public DashboardInfobekumPage()
- {
- InitializeComponent();
- if (tvInfobekum.Items[tvInfobekum.SelectedIndex].Content == null)
- {
- tvInfobekum.Items[tvInfobekum.SelectedIndex].Content = GetItemContent(tvInfobekum.SelectedIndex);
- }
- }
- private void tvInfobekum_SelectionChanged(object sender, Syncfusion.XForms.TabView.SelectionChangedEventArgs e)
- {
- if (tvInfobekum.Items[tvInfobekum.SelectedIndex].Content == null)
- {
- tvInfobekum.Items[tvInfobekum.SelectedIndex].Content = GetItemContent(tvInfobekum.SelectedIndex);
- }
- }
- private View GetItemContent(int index)
- {
- switch (index)
- {
- case 0:
- return new StatistikInfobekumPage().Content;
- case 1:
- return new StatistikInfobekumLanjutanPage().Content;
- default:
- return new StatistikInfobekumPage().Content;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment