Override OnDrawn, OnGetPreferredHeight, and OnGetPreferredWidth.