fix usage of ShowIconOnTitleBar="False"

the icon was not collapsed on ShowIconOnTitleBar="False"

Closes #1184