title: How can I run something Async in OncreateView?
body: <p>I have a problem with my app. Firstly, I made two Tabs using <strong>fragments</strong> which inflates an <strong>activity</strong>. The tabs implemented is working fine. Secondly i have  displayed the <strong>XAML</strong> right. </p>
  
  <p>However, I now need to run something asynchronously in
  OnCreateView in the Fragment. How can i manage this without getting errors?</p>
  
  <p>Any help is greatly appreciated! Thanks </p>
  
  <p><strong>Here is my Fragment:</strong> </p>
  
  <pre><code>public class FragmentSettings : SupportFragment
  {
      private Button mBtnOk;
  
      public FragmentSettings(Context context)
      {
          mContext = context;
      }
  
      public override void OnCreate(Bundle savedInstanceState)
      {
          base.OnCreate(savedInstanceState);
      }
  
      public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
      {
          //Inflate the fragment XML
          View view = inflater.Inflate(Resource.Layout.FragmentSettings, container, false);
  
          //Grab the butten from the inflated fragment
          mBtnOk = view.FindViewById&lt;Button&gt;(Resource.Id.mBtnOk);
          mBtnOk.Click += (object sender, EventArgs e) =&gt;
          {
              //DO stuff
          };
          //=====================================
          //Want to do something async stuff here
          //=====================================
  
          return view;
      }
  }
  </code></pre>