fix setting IgnoreTaskBarOnMaximize in the code-behind

Closes #1259