First, you should use the TaskPanelGlobalSettings object for the markup icons, then you should also enclose your text in a TextBlock in order for the marku pto be valid. Something like this should work: