public override void OnActivityCreated(Bundle savedInstanceState) { base.OnActivityCreated(savedInstanceState); // Retrieve the progress bar from the target's view hierarchy. progressBar = (ProgressBar)TargetFragment.View.FindViewById(Resource.Id.progress_horizontal); // We are ready for our thread to go. lock (myThread) { ready = true; myThread.Notify(); } }