Let $X\in\mathbb{R}^{n\times p}$ denote a matrix with $p$ linearly-independent columns, and let $L\in\mathbb{R}^{n\times n}$ denote a symmetric matrix. Furthermore, let $D\in\mathbb{R}^{n\times n}$ denote a diagonal matrix with positive-entries.
Now suppose that we are interested in computing solutions to the symmetric generalized-definite eigenproblem,
$$ A v = \lambda B v, $$
where the symmetric matrices $A$ and $B$ (where $B$ is also positive-definite) are implicitly given by the matrices $X$, $L$, and $D$ above, where $A = X^T L X$, and $B = X^T D X$.
I ran into a paper which claimed that we may solve an equivalent standard eigenvalue problem involving a modification of $X$. In particular, if we orthogonalize $X$ with respect to $D$, say $\tilde X^T D \tilde X = I$, then eigenpairs of
$$ \tilde X^T L \tilde X u = \lambda u $$
are also eigenpairs for the original generalized eigenproblem. How can we show this to be true?