I want to implement functionality that allows a user to move their mouse over a button and a tooltip will appear. The tooltip will display a scaled down preview of a specific ViewModel.
I have implemented most of this, but, if I take the simplest approach of basically using a ContentPresenter to present the ViewModel, then every time the user moves their mouse over the button, such that the tooltip is displayed, the ContentPresenter will be rendered, which really means that the type-referential data template for my ViewModel will be rendered everytime, which will cause too much overhead, which I don't want, since the data template contains some third party controls that take several seconds to render.
So, to my question.... how can this be done in a way that the preview is only rendered initially, and then somehow stored in memory for subsequent viewing?
Chris