Ran*_*ser 6 c# visual-studio uwp windows-10-universal
我想在屏幕右侧设置窗口的位置,类似于WPF.UWP有办法做到这一点吗?
小智 -6
是的,有一种方法:) 转到您的 xaml,例如 Windows1.xaml
然后把这个放在那里。示例代码
<Window
x:Class="Poultry_Management_System.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Login"
Width="450"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
ResizeMode="NoResize"
Topmost="True"
KeyDown="keyDown_form"
Height="200">
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,我的 StartupLocation 位于中心。
| 归档时间: |
|
| 查看次数: |
1232 次 |
| 最近记录: |