如何在Windows Phone 8中为黑色椭圆添加白色边框 [英] How to put a white border to Black ellipse in windows phone 8

查看:29
本文介绍了如何在Windows Phone 8中为黑色椭圆添加白色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using the above given popup in my windows phone 8 application. My issue is for the black color list item, it is not possible to differentiate the item from other items. So my question is how i can put a rounded white border to this particular black list item.

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

Here is the template what i am using in my application.

  <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>

请任何人帮助我设计我的需求.

Anyone please help me to design my requirement.

推荐答案

您可以在 Ellipse 元素上设置彩色的 Stroke 以使其在黑色背景中脱颖而出.

You could set a colored Stroke on the Ellipse elements to make it stand out on the black background.

示例:

 <Ellipse Height="52" Width="52" Fill="{Binding SelectedColor}" Stroke="White" StrokeThickness="1"/>

这篇关于如何在Windows Phone 8中为黑色椭圆添加白色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆