Out-of-equilibrium behavior is explored in the one-dimensional anisotropic $XY$ model. Initially preparing the system in the isotropic $XX$ model with a linearly varying magnetic field to create a domain-wall magnetization profile, dynamics is generated by rapidly changing the exchange interaction anisotropy and external magnetic field. Relaxation to a nonequilibrium steady state is studied analytically at the critical transverse Ising point, where correlation functions may be computed in closed form. For arbitrary values of anisotropy and external field, an effective generalized Gibbs ensemble is shown to accurately describe observables in the long-time limit. Additionally, we find spatial oscillations in the exponentially decaying, transverse spin-spin correlation functions with wavelength set by the magnetization jump across the initial domain wall. This wavelength depends only weakly on anisotropy and magnetic field in contrast to the current, which is highly dependent on these parameters.