I have ItemsControl with Grid as ItemsPanelTemplate
You can make a call to ApplyTemplate this tells the element to apply the template and build the visual tree.
Although, this doesn't apply templates all the way down.
In this case you would first have to call ApplyTemplate() on the ItemsControl, then var item_presenter = FindVisualChild<ItemsPresenter>(items_control), then you have to call item_presenter.ApplyTemplate() and now you will have forced the Grid into the VisualTree.