How can I set the Windows position on startup

前端 未结 2 880
死守一世寂寞
死守一世寂寞 2021-01-12 15:48

I want to set the position of the window on the right side on the screen similar to WPF. Is there a way in UWP to do this?

2条回答
  •  轮回少年
    2021-01-12 16:27

    Yes there is a way :) Go to your xaml for example Windows1.xaml

    then put this there. Example code

     
    

    As you can see my StartupLocation there is in the Center.

提交回复
热议问题