C# UWP 轮播选择更改

标签 c# .net uwp carousel

我有一个效果很好的轮播 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/

相关文章:

c# - DDD - POCO。第一步

c# - 如何从 DateTimePicker 控件(Windows 窗体控件)中删除 "Today"按钮

c# - 如何让箭头键在 WinForms TableLayoutPanel 中移动焦点?

c# - 通过 XAML 可用的 WPF 的哪些功能不能通过 C#(或 VB,...)

.net - 通过代理服务器路由 Google Analytics v3 API

c# - 使用 Fluent api 进行 3 种方式的多对多

c# - 如何在传递时修改 DbContext 基本构造函数参数?

c# - Geolocator.RequestAccessAsync 始终返回拒绝状态

c# - 使用 GattCharacteristicNotificationTrigger 在 UWP 中挂起后台任务注册

xaml - WinRT/UWP : Loading RelativePanel with XamlReader causes XamlParseException with RelativePanels Attached Properties