如何在 Windows Phone 8 中为黑色椭圆添加白色边框

2024-01-11

我在 Windows Phone 8 应用程序中使用上面给出的弹出窗口。我的问题是对于黑色列表项,无法将该项目与其他项目区分开来。所以我的问题是如何为这个特定的黑名单项目添加圆形白色边框。

这是我在应用程序中使用的模板。

  <DataTemplate x:Key="ColorListTemplate">
    <Grid Height="70" Margin="0,0,0,5" toolkit:TiltEffect.IsTiltEnabled="True">
        <StackPanel Orientation="Horizontal">
            <Ellipse Height="52" Width="52" Fill="{Binding SelectedColor}"/>
            <TextBlock  Text="{Binding ColorName}" Margin="32,0" FontSize="34" Style="{StaticResource NormalText}"/>
            <CheckBox IsChecked="{Binding CheckedStatus}" Style="{StaticResource            CheckBoxStyle}" IsHitTestVisible="False"/>
        </StackPanel>
    </Grid>
</DataTemplate>

任何人请帮助我设计我的要求。


你可以设置一个彩色的Stroke on the Ellipse使其在黑色背景上脱颖而出。

Example:

 <Ellipse Height="52" Width="52" Fill="{Binding SelectedColor}" Stroke="White" StrokeThickness="1"/>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在 Windows Phone 8 中为黑色椭圆添加白色边框 的相关文章

随机推荐