I have an VSTO Outlook Add-in. This Add-in consists on a custom task pane that is placed at the top. Due to new vertical Outlook pane for Apps which appears on the left and which is currently overlapping with the left side of my custom task pane (it looks like it is a bug from MS and they are working on fixing it), I have to shift the custom task pane title and content (user control) to the right by applying a margin on the left side.
To shift the custom task pane title more to the right, I set some white spaces to the title as a prefix. The problem is that when I change the screen resolution and/or scale from the OS, the title is shifted the right depending on the screen resolution and/or scale selected.
I don't know if it is due to the extra white spaces that I put as a prefix to the title that when scaling and changing screen resolution behaves in this abnormal way.
How can I get the title to always remain/keep in the same position and keeping the same left margin always the same?
UPDATED:
Example: This is my custom task pane, as you see the new vertical Outlook pane for Apps overlaps the left side of the custom task pane (and the ctp title is cut):
To solve this issue I decide to move the title and wpf user control more to the right. I apply some white spaces as a prefix for the title, the string now is:
" This is a demo title"
And the result is below:
Now I change the scale from 100% to 200% from the OS and see that the title is shifted more to the right (it does not keep in the same position):