随笔分类 - WPF
摘要:double x = SystemParameters.WorkArea.Width;//得到屏幕工作区域宽度double y = SystemParameters.WorkArea.Height;//得到屏幕工作区域高度double x1= SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度double y1 = SystemParameters.PrimaryScreenHeight;//得到屏幕整体高度this.Width = x1;//设置窗体宽度this.Height = y1;//设置窗体高度C# 根据不同屏幕分辨率自动适应屏幕C# 根据不
阅读全文
摘要:前台页面:<Grid> <Button Content="全屏" Height="47" HorizontalAlignment="Left" Margin="157,124,0,0" Name="button1" VerticalAlignment="Top" Width="146" Click="button1_Click" /> </Grid>后台代码:bool Flag = false; pr
阅读全文

浙公网安备 33010602011771号