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

PageRenderer for a WinRT app (not windows phone)

$
0
0

Is it possible to create a Xamarin.Forms PageRenderer for a Windows WinRT app page? I've looked for documentation or samples but haven't found any yet.

This is the approach I've started with;

    [assembly: ExportRenderer(typeof(MantisBLE.Pages.MainPage), typeof(MainRenderer))]
    namespace MantisBLE.WinTablet.Renderers
    {
        public class MainRenderer : PageRenderer
        {

            protected  override void OnElementChanged(VisualElementChangedEventArgs e)
            {
                base.OnElementChanged(e);
                MainPage page = new MainPage(); 
            //Ideally, here I'll set page as the default/root element
            }     
        }
    }

Is there anyone with experience or even ideas on how to achieve this?


Viewing all articles
Browse latest Browse all 91519

Trending Articles