Wpf start in primary screen

前端 未结 5 1305
臣服心动
臣服心动 2020-12-21 00:43

If user has multiple screens,

how can I start application in primary screen or chosen screen at start up

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-21 01:38

    Better yet, save the current window location to Isolated Storage and then at startup time restore the window to the same location (if you can find a window location stored in isolated storage). Use the Window.WindowStartupLocation as Roy T suggested. This should work across multiple monitors as well.

提交回复
热议问题