Reusable SplitView pane?

By : m0ngr31

I have created a simple SplitView and I'm wondering if I can reuse the code in my <SplitView.Pane>? It's pretty simple, just a few buttons, but I don't want to have to include the same code over and over again on my different pages.

Or is there a way to template the whole SplitView and just modify the <SplitView.Content>on every page? I'd prefer to be able to be able to have the button handlers be global too so that I don't have the same 3 buttons coded in each page .cs file.

What would be the best way to do this?

EDIT: This is for a UWP Windows 10 app.

By : m0ngr31


If you can make a server control out of it, you can resuse and configure however you like. If this is not possible, you can make a code snippet and then place on page and alter as needed.

You can use your own user control to reuse the content of splitview.pane.

UserControl class

Here is an example, my code.. 'FutaLocation' is my usercontrol.

By : pnp0a03

This video can help you solving your question :)
By: admin