Click here to Skip to main content
15,914,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a window with a few controls including a button and an image. When I click the button a new full screen window opens with a slight grey transparency and an image that is centred in it. I have a close button to close the image form but I need it to 'track' the top right corner of the image as it changes bigger. Like image viewers on websites where you click an image and it opens the image over the page with a dimmed transparency and it has a close button in the corner which follows the corner. How would I do this? I need the button to stay in the top right corner of the image when it changes size. Thank you and hope this makes sense.
Posted

1 solution

There are a number of options, using a Grid layout will allow this (just like a web page). There is a dockpanel that will allow you to dock control to the top,bottom,right and left with a fill.

What you cannot do is use absolute positioning.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900