提问人:pfinferno 提问时间:8/21/2023 更新时间:8/21/2023 访问量:30
被子栅格截断的边框圆角半径
Corner radius of border cut off by child grid
问:
我有一个窗口,它有.我想让它里面有圆角。但是,只有右下角显示圆角,而其余部分似乎被边框内的内容截断。例如:WindowStyle="None"
Border
<Window
x:Class="SampleApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
AllowsTransparency="True"
Background="Transparent"
WindowStyle="None"
mc:Ignorable="d">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="0" ResizeBorderThickness="5" />
</WindowChrome.WindowChrome>
<Border
x:Name="WindowBorder"
Background="{DynamicResource WindowBackgroundColor}"
BorderBrush="Black"
BorderThickness="1"
CornerRadius="10">
<Grid>
<!-- Main Content -->
</Grid>
</Border>
</Window>
答: 暂无答案
评论
Padding
CornerRadius
CornerRadius