Use the IsSharedSizeScope attached property of the Grid element