Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Is it possible to inflate a View from XAML?

$
0
0

I would like to create the XAML file for a View and use it in different pages.

In native Android I'd do it this way:

LayoutInflater inflater = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.new_layout,null);
main.addView(view);

Is there (or will there be) some way to do it (or something like that) in Xamarin.Forms?

Thanks a lot!


Viewing all articles
Browse latest Browse all 77050

Trending Articles