Nanostructured devices promise to help solve grand challenges of our time, including renewable energy generation, storage, and mitigating climate change. Their power lies in the particular influence of the surface on the total free energy when dimensions approach the nanoscale and it is well known that different sizes, shapes, and defects can drastically alter material properties. However, this strength represents a considerable challenge for imaging techniques that can be limited in terms of sample environments, average over large ensembles of particles, and/or lack adequate spatiotemporal resolution for studying the relevant physical processes. The focus of this thesis is the development of in situ coherent X-ray diffractive imaging (CXDI) and its application in imaging strain evolution in battery cathode nanoparticles. Using in situ CXDI, the compressive/tensile strain field in the pristine state is revealed, and found to be linked to a particular concentration of strain inducing Jahn-Teller ions. The evolution of strain during the first charge/discharge cycle shows that the cathode nanoparticle exhibits phase separation. Using the 3D strain field, the strain field energy is calculated and shows interesting hysteresis between charge and discharge. Strain evolution during a disconnection event, in which the cathode nanoparticle is no longer able to exchange electrons and ions with its environment, reveals the formation of a poorly conducting interphase layer. Finally, strain fields were used to study dislocation dynamics in battery nanoparticles. Using the full 3D information, the dislocation line structure is mapped and shown to move in response to charge transfer. The dislocation is used as a way to probe the local material properties and it is discovered that the material enters an "auxetic", or negative Poisson's ratio, regime