As a result of the charge carried by the electron, electric fields, magnetic fields, or the electrostatic mean inner potential of thin, weakly interacting materials can impart a phase shift to the wavefront of an electron. Thickness-modulated silicon nitride membranes and programmable phase shift devices have exploited these properties to apply spatially varying phase shifts to control the far-field spatial intensity and phase of the electron wave. Devices like these have been applied to arbitrarily shape the electron wavefront, correct the aberrations inherent to electron microscopes, resolve the orbital angular momentum of a free electron, and to measure dichroism in the interaction between free electrons and magnetic materials or plasmonic nanostructures.