Hi everyone
At the risk of incurring the wrath of my respected forum members, I am going to ask a question that I admit has been asked before - several times - but I am still none-the-wiser concerning its correct resolution.
Allow me to explain.
I have a panel that I center on the screen using:
Panel.Left = (Activity.Width - v.Width) / 2
Panel.Top = (Activity.Height - v.Height) / 2
This seems to have the effect of centering the panel on all screens/resolutions I have tried so far...which is great.
However, the panel contains a main label (some text) and several other labels (vowel markings) around that text. When I position the labels in the designer and test it on my device (7", 1920 * 1080), the labels are all positioned correctly. However, when I try it on a different device, the vowel marking labels are moved out of position - which is a significant problem.
How therefore do I ensure the labels in the panel are scaled/positioned correctly when moving from device to device? What I am trying to accomplish is not that complicated so I hoping there is a simple method of ensuring it remains in position.
Thank-you in advance!
At the risk of incurring the wrath of my respected forum members, I am going to ask a question that I admit has been asked before - several times - but I am still none-the-wiser concerning its correct resolution.
Allow me to explain.
I have a panel that I center on the screen using:
Panel.Left = (Activity.Width - v.Width) / 2
Panel.Top = (Activity.Height - v.Height) / 2
This seems to have the effect of centering the panel on all screens/resolutions I have tried so far...which is great.
However, the panel contains a main label (some text) and several other labels (vowel markings) around that text. When I position the labels in the designer and test it on my device (7", 1920 * 1080), the labels are all positioned correctly. However, when I try it on a different device, the vowel marking labels are moved out of position - which is a significant problem.
How therefore do I ensure the labels in the panel are scaled/positioned correctly when moving from device to device? What I am trying to accomplish is not that complicated so I hoping there is a simple method of ensuring it remains in position.
Thank-you in advance!