C# Windows Universal 10 TopMost Window

后端 未结 3 946
一个人的身影
一个人的身影 2021-01-19 07:00

I\'m developing a Windows 10 Universal app (UWP).

Is it possible to set application as TopMost (always on top)? Like WPF or Winforms<

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 07:48

    It's not possible UWP apps have some restrictions compared with WPF of Win32 apps(classic apps).

    With uwp apps you need enable some capabilities to do something special in your app as you can see in the link uwp apps need ask for permission or they can't access or modify files directly.

    https://msdn.microsoft.com/en-us/library/windows/apps/mt270968.aspx

    Best Regards

提交回复
热议问题