Prince William County Fire and Rescue said a sprinkler system activated during the fire, helping to contain the spread.