小编san*_*r14的帖子

WPF:MaxHeight到屏幕高度

如何将窗口的MaxHeight属性设置为屏幕高度?

XAML:

<Window x:Class="RT.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="{Binding WindowTitle}" Height="300" MaxHeight="500" Width="495.149" SizeToContent="WidthAndHeight">
Run Code Online (Sandbox Code Playgroud)

wpf height screen

2
推荐指数
1
解决办法
3781
查看次数

标签 统计

height ×1

screen ×1

wpf ×1