You can either create your own maptip control and instantiate it by code, or declare the datatemplate in the resources and instantiate a ContentControl by code (see this thread).
You can either create your own maptip control and instantiate it by code, or declare the datatemplate in the resources and instantiate a ContentControl by code (see this thread).