void OnElementLoaded(object sender, EventArgs e)
{
lock (mCachedMethodLines)
{
mCachedMethodLines.Clear();
}
// After this thing is loaded we want to call the resolution change event
// since this is how generated code behaves.
HandleResolutionChange();
}