Forum Xamarin.Android

Context does not contain a definition for FragmentManager

mikoomikoo DKMember ✭✭

Hi guys, Im getting the abvove error, why?

            Button buttonAddExercise = row.FindViewById<Button>(Resource.Id.buttonAddExercise);
            buttonAddExercise.Click += delegate
            {
                FragmentTransaction transaction = myContext.FragmentManager.BeginTransaction();
            };

        public DayObject(Context context, List<Fragments.Day> items)
        {
            myItems = items;
            myContext = context;
        }

Best Answer

Answers

Sign In or Register to comment.