Como redimensiono um controle WPF dentro de um CWnd?

Estou hospedando um WPFUserControl dentro de um MFCCWnd. Funciona lindamente agora preciso descobrir como redimensionar o controle com seu pai. Eu enganchei oOnSize e eu estou chamandoGetWindowRect e definindo o resultado para o meu controle da seguinte forma:

void CChildFrame::OnSize(UINT nType, int cx, int cy)
{
    CRect rect;
    this->GetWindowRect(&rect);

    m_mainControl->Width = rect.Width();
    m_mainControl->Height = rect.Height();
}

questionAnswers(1)

yourAnswerToTheQuestion