Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  2. {
  3. var ignored = base.OnCreateView(inflater, container, savedInstanceState);
  4. return this.BindingInflate(Resource.Layout.my_fragment_layout, null);
  5. }
  6.  
  7. Context context = new ContextThemeWrapper(Activity, Resource.Style.FragmentStyle);
  8.  
  9. public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  10. {
  11. Context context = new ContextThemeWrapper(Activity, Resource.Style.FragmentStyle);
  12.  
  13. if (BindingContext == null)
  14. BindingContext = new MvxAndroidBindingContext(context, new MvxSimpleLayoutInflater(Activity.LayoutInflater), DataContext);
  15. else
  16. this.EnsureBindingContextIsSet(inflater);
  17.  
  18. return this.BindingInflate(Resource.Layout.my_fragment_layout, null);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement