Canvas aligned to a window

Can someone give me an advise on this:

I have a canvas that should always align to the right edge of a window.
If the window is resized smaller or wider then the canvas should still be visible at the right edge.

It would be even better if this is possible with 2 canvases, one canvas aligned to the right and one always in the center of the window.

I’ve also tried this with a container control, but no luck.

Any help is highly appreciated.

Thank you.
Andre.

Use the lockright property of the canvas.
For the centered on, you will need to calculate its coordinates in the resized event of your screen.