private void lauchHomeScreen()
        {
            layoutManager.setFirstTimeLauch(false);
            Android.App.FragmentTransaction transaction2 = this.FragmentManager.BeginTransaction();
            //lauch main screen here
            ContentMainActivity content = new ContentMainActivity();

            transaction2.Replace(Resource.Id.framelayout, content).AddToBackStack(null).Commit();
            //Finish();
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.content_main, container, false);

            try
            {
                layouts = new int[]
                {
                    Resource.Layout.LayoutStart,
                    Resource.Layout.LayoutSlide0,
                    Resource.Layout.LayoutSlide1,
                    Resource.Layout.LayoutSlide2,
                    Resource.Layout.LayoutSlide3,
                    Resource.Layout.LayoutSlide4,
                    Resource.Layout.LayoutSlide5
                };

                viewPager  = view.FindViewById <ViewPager>(Resource.Id.viewPager);
                dotsLayout = view.FindViewById <LinearLayout>(Resource.Id.layoutPanel);
                btnNext    = view.FindViewById <Button>(Resource.Id.btn_next);
                btnSkip    = view.FindViewById <Button>(Resource.Id.btn_skip);


                addDots(0);
                Android.App.FragmentTransaction transaction = this.FragmentManager.BeginTransaction();
                ViewPagerAdapter adapter = new ViewPagerAdapter(layouts, ref transaction);
                viewPager.Adapter = adapter;

                viewPager.PageSelected += ViewPager_PageSelected;
                //viewPager.AddOnPageChangeListener(new ViewPager.IOnPageChangeListener());

                btnNext.Click += (sender, e) =>
                {
                    //int current = GetItem(+1);
                    //if (current < layouts.Length)
                    //    //move to next screen
                    //    viewPager.CurrentItem = current;
                    //else
                    //{

                    //}
                    Android.App.FragmentTransaction transaction2 = this.FragmentManager.BeginTransaction();
                    //lauch main screen here
                    MainPageActivity content = new MainPageActivity();
                    transaction2.Replace(Resource.Id.framelayout, content).AddToBackStack(null).Commit();
                };

                btnSkip.Click += (sender, e) =>
                {
                    Android.App.FragmentTransaction transaction2 = this.FragmentManager.BeginTransaction();
                    //lauch main screen here
                    ContentMainActivity content = new ContentMainActivity();
                    transaction2.Replace(Resource.Id.framelayout, content).AddToBackStack(null).Commit();
                    //Android.App.FragmentTransaction transaction1 = this.FragmentManager.BeginTransaction();
                    //ContentMainActivity content4 = new ContentMainActivity();
                    //transaction1.Replace(Resource.Id.framelayout, content4).AddToBackStack(null).Commit();
                };
            }
            catch (Exception ex)
            {
                Toast.MakeText(Activity, "" + ex.Message, ToastLength.Long).Show();
            }
            return(view);
        }