title: Referencing the SupportFragmentManager in a fragment
body: <p>I am coding a Google Maps application in Xamarin and have successfully extended the class to use <code>Android.Support.V4.App.FragmentActivity</code>.</p>
  
  <p>I am now wanting to change the <code>Android.Support.V4.App.FragmentActivity</code> to be a <code>Android.Support.V4.App.Fragment</code> so that I can have a <code>ViewPager</code> that has a Google Map fragment.</p>
  
  <p>As I have now changed the class to extend from <code>Android.Support.V4.App.Fragment</code>, I cannot reference the <code>SupportFragmentManager</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>private void InitMapFragment()
  {
      _mapFragment = SupportFragmentManager.FindFragmentByTag("map") as SupportMapFragment;
      if (_mapFragment == null)
      {
          GoogleMapOptions mapOptions = new GoogleMapOptions()
              .InvokeMapType(GoogleMap.MapTypeNormal)
              .InvokeZoomControlsEnabled(true)
              .InvokeCompassEnabled(true);
  
          FragmentTransaction fragTx = SupportFragmentManager.BeginTransaction();
          _mapFragment = SupportMapFragment.NewInstance(mapOptions);
          fragTx.Add(Resource.Id.map, _mapFragment, "map");
          fragTx.Commit();
      }
  }
  </code></pre>
  
  <p>How do I reference the <code>SupportFragmentManager</code> in a <code>Android.Support.V4.App.Fragment</code>?</p>
  
  <p>Thanks in advance</p>