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

Custom Content View (Widget)

$
0
0

How do I create a custom content view that I can insert a custom view in between? Here's a pseudo code on what I'd like to do.

SharedLayout.xaml

<ContentView>
    <StackLayout>
        <Label Text="Header"/>

        <!-- INSERT CONTENT HERE -->

        <Label Text="Footer"/>
    </StackLayout>  
</ContentView>

Usage:

<local:SharedLayout>
    <Label Text="My body inserted between Header and Footer"/>
</local:SharedLayout>

Thanks!


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>