Click here to Skip to main content
15,885,998 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai to all,
am practicing on wpf . how can i make my window as center to the screen.
Posted
Updated 22-Mar-16 20:47pm

WindowStartupLocation="CenterScreen"
 
Share this answer
 
Comments
satyagrahi_2010 11-Aug-10 1:11am    
Reason for my vote of 5
Helped me
Do all of these things:

0) Set the HorizontalAlignment and VerticalAlignment properties to Center.

1) Remove the Margin property completely

2) Set the Width and Height to something that does not exceed the resolution of the monitor.
 
Share this answer
 
v2
Comments
satyagrahi_2010 18-Aug-10 2:13am    
Reason for my vote of 3
helped me

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