In the code behind for your main page (or your root visual) simply hook the MouseRightButtonDown event or override the OnMouseRightButtonDown function. In either case, set the e.Handled property to true to prevent further processing.
protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
{
e.Handled = true;
}
You can also use this to pop a custom right-click menu if you would like. In that case you use the mouse coordinates as the top-left corner of your context menu object.
You can override this again at a lower level if you wanted. So if you have a treeview, for example, that you wanted a custom context menu to appear, you could hook the event on that container (grid, panel, treeview, etc) and pop your custom menu. Mouse events start at the control highest in the Z-Order (which is the lowest in the hierarchy) under the pointer and bubble "up" the hierarchy tree until they are handled or they get to the app and go unhandled.
Hope that helps.