See
How to use ArcGIS samples
for help on compiling, setting up the debugger, and running the sample.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Compile and run the sample from the provided code.
Enter a valid file path of a Published Map File (PMF) from ArcMap and load.
Click the Map button to display the data view.
Use the tools to navigate around the focus map.
Click the Layout button to display the layout view.
Use the tools to navigate the data in any of the data frames on the page layout.