Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows runtime Windows应用商店应用程序角半径_Windows Runtime_Windows Store Apps_Winrt Xaml - Fatal编程技术网

Windows runtime Windows应用商店应用程序角半径

Windows runtime Windows应用商店应用程序角半径,windows-runtime,windows-store-apps,winrt-xaml,Windows Runtime,Windows Store Apps,Winrt Xaml,我试图开发一个圆角的列表视图。 圆角属性正在工作,但是当选择顶部或底部项目时,我遇到了一些问题。此时,圆角将被替换 在顶部和底部项目之间选择一些节点是可以的: 但是,这是顶部和底部项目的情况: *我知道.Net WPF应用程序中的诀窍,通常使用圆角剪辑。但是,WinRT似乎不支持剪辑中的圆角。是的,所以,看 让我用这个例子来回答这个问题: <Border Width="100" Height="100" Margin="5" Background="DimGray" Corne

我试图开发一个圆角的列表视图。 圆角属性正在工作,但是当选择顶部或底部项目时,我遇到了一些问题。此时,圆角将被替换

在顶部和底部项目之间选择一些节点是可以的:

但是,这是顶部和底部项目的情况:

*我知道.Net WPF应用程序中的诀窍,通常使用圆角剪辑。但是,WinRT似乎不支持剪辑中的圆角。

是的,所以,看

让我用这个例子来回答这个问题:

<Border Width="100" Height="100" Margin="5"
    Background="DimGray" CornerRadius="15">
</Border>

<Border Width="100" Height="100" Margin="5"
    Background="DimGray" CornerRadius="15">
    <Rectangle Height="100" Width="100" Fill="Purple" />
</Border>

<Border Width="100" Height="100" Margin="5" Padding="5"
    Background="DimGray" CornerRadius="15">
    <Rectangle Height="100" Width="100" Fill="Purple" />
</Border>

<Border Width="100" Height="100" Margin="5" Padding="5"
    Background="Purple" CornerRadius="15">
    <Rectangle Height="100" Width="100" Fill="Purple" />
</Border>

看起来像这样:

为什么?因为Windows 8中的剪辑当前只支持矩形。不是多边形,不是圆角,什么都不是。样本中的第四项实际上是您目前唯一的方法。至少你有选择的余地


祝你好运

试着看一看,我不知道它是否能满足你的要求,但值得一试。你现在过得怎么样?如果您的背景是纯色-最简单的方法将是在您的角落顶部覆盖实心圆角。否则,您可能需要按照mydogisbox的建议更新
ItemContainerStyle
,并可能使突出显示/选择栏也变圆。事实上,我正在修改列表视图控件的ItemContainerStyle。在这种情况下,容器具有边界控件。我正在设置CornerRadius属性。你的建议似乎是可行的(更像是你在网页设计中的一个把戏)。我一直在寻找其他解决方案(可能更优雅,或者其他一些,因为我对XAML有点陌生),因为nenrect clip几何图形不受支持-唯一的选项是黑客或需要抄近路。:)@d0kt0r1您说过您正在修改边框的拐角半径,但您是否也在修改选择边框,包括指定用途?