In the WPF app I'm making at the moment, I need a method that will allow me to click a button and a different "page" in the middle of the window is changed based on button click.

So, if button 1 is clicked, page 1 is shown and so forth. In WinForms, I'd just make a tabless tabcontrol like so:

VB.NET Code:
  1. Public Class TabLessTabControl
  2.     Inherits TabControl
  3.     Protected Overrides Sub WndProc(ByRef m As Message)
  4.         'Hide tabs by trapping the TCM_ADJUSTRECT message
  5.         If m.Msg = &H1328 Then
  6.             m.Result = CType(1, IntPtr)
  7.         Else
  8.             MyBase.WndProc(m)
  9.         End If
  10.     End Sub
  11. End Class

But, that doesn't work in WPF. Does anyone have any ideas on how to duplicate this in WPF or if there's a better method?