gpt4 book ai didi

C# UWP 轮播选择更改

转载 作者:太空宇宙 更新时间:2023-11-03 14:55:17 30 4
gpt4 key购买 nike

我有一个效果很好的轮播 View 。

<my:Carousel x:FieldModifier="public" x:Name="Carousel" IsDoubleTapEnabled="False"  ItemsSource="{Binding Source={StaticResource ces}}" Margin="21,730,33,37" ItemMargin="20" ItemDepth="200" ItemRotationX="0" ItemRotationY="0" ItemRotationZ="0" InvertPositive="False" PointerPressed="Carousel_PointerPressed" SelectionChanged="Carousel_SelectionChanged" ManipulationStarted="Carousel_ManipulationStarted" >
<my:Carousel.ItemTemplate>
<DataTemplate x:DataType="data:Bilder">
<StackPanel Orientation="Vertical">
<Image Width="250" Height="170" Source="{Binding Bild}"/>
</StackPanel>
</DataTemplate>
</my:Carousel.ItemTemplate>
</my:Carousel>

如果项目的选择发生变化,我想删除边框(见下图)。我该如何管理?我知道 Storyboard有一些东西,但我不知道如何使用它。

请帮帮我。 enter image description here

编辑

如果我尝试使用自己用油漆创建的示例图片,是否没有边框。但是正如您所见,鞋子没有任何边框(见图 1 和 4)。那他为什么加上这个边框呢?有人知道这个问题吗?

最佳答案

您的图片太大了,您需要将其调整为 250/170 并且 broder 将消失。

关于C# UWP 轮播选择更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49669606/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com