I think that to be able to set it this way, you need to have m_objPerson defined as "static resource". In debug, watch Output window, there I would expect error message like "m_objPerson is not...