Use the ListView attached property to determine the item width, instead of depending on the parent existing.