private void Region_CloseRegion(object sender, EventArgs e) { RegionWindows[(sender as IApplicationRegion).RegionId].Close(); } }