You are developing a page for a Windows Store app. The app includes the following event handlers:
– The FillCommands event handler adds context-awarecommands to the app bar.
– The ClearCommands event handler clears context-aware commands from the app bar.
You have the following requirements:
– Fill the app bar when it is shown by using the FillCommands event handler.
– Clear the app bar when it is hidden by using the ClearCommands event handler. You need to subscribe to the
correct events on the app bar to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment maybe used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Answer:
Instead of ApplicationBar, should be AppBar in answer.
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.appbar.aspx