質問

Whenever a right click is detected on a metro app, the AppBar is displayed.

How do I cancel/disable/prevent the AppBar from showing if the RightTapped event is triggered by right clicking on a specific control?

役に立ちましたか?

解決

RightTapped is a routed event and its event args includes the Handled property. So in whatever control you are processing the event, add the following code at the end to suppress the AppBar.

e.Handled = true;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top