There are two ways to do this.
First, you can set the app bar's disabled property to true to suppress it for a right-click anywhere in the app:
var appbar = document.getElementById("createAppBar");
appbar.winControl.disabled = true;
Second, if you want to disable it for a particular element, which is more of your case, then in your right-click handler (for the contextmenu event), call e.preventDefault();
document.getElementById("output").addEventListener("contextmenu", function (e) {
e.preventDefault();
});
I tested both methods in Scenario 1 of the
HTML
AppBar control sample, placing the code above in the ready method of the WinJS.UI.Pages
control.
.Kraig