windows-phone-7 – 如何将白色边框放到黑色的椭圆形在Windows P
发布时间:2020-12-14 01:44:22 所属栏目:Windows 来源:网络整理
导读:我正在使用上面给出的弹出窗口在我的 Windows Phone 8应用程序.我的问题是黑色列表项目,不可能将项目与其他项目区分开来.所以我的问题是我可以把一个圆形的白色边框给这个特定的黑名单项. 这是我在应用程序中使用的模板. DataTemplate x:Key="ColorListTempl
我正在使用上面给出的弹出窗口在我的
Windows Phone 8应用程序.我的问题是黑色列表项目,不可能将项目与其他项目区分开来.所以我的问题是我可以把一个圆形的白色边框给这个特定的黑名单项.
这是我在应用程序中使用的模板. <DataTemplate x:Key="ColorListTemplate"> <Grid Height="70" Margin="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> 任何人请帮我设计我的要求.
您可以在Ellipse元素上设置一个彩色笔触,使其在黑色背景上脱颖而出.
例: <Ellipse Height="52" Width="52" Fill="{Binding SelectedColor}" Stroke="White" StrokeThickness="1"/> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- windows – 为什么许多管理员使用“关闭自动根证
- 如何在R Windows中将Unicode字符串写入文本文件?
- Microsoft MSWebDVD ActiveX 控件远程代码执行漏
- Windows CMD – 从批处理文件重置路径变量?
- xaml – Windows 8中的ScrollViewer:始终显示垂
- Windows NTP服务器A Stratum为2,Windows NTP Ser
- .net – 是否可以将dll转换为源代码?
- 窗口 – 如何保护软件免受系统日期更改?
- windows-mobile – Windows Mobile设备有什么好的
- 如何在Windows Server 2016上运行Linux Docker镜
热点阅读