void ShowNavigationItemActionOnExecuting(object sender, CancelEventArgs cancelEventArgs) { InfoCollection availableViews = ((XpandGridListEditor)View.Editor).Grid.AvailableViews; foreach (var availableView in availableViews.OfType <XpandXafGridView>()) { CloseNestedWindow(availableView); } }