WPF_圆角图片
2015-08-12 17:18
387 查看
<Border Name="bdGoodDetail" BorderBrush="#E2E2E2" BorderThickness="3" CornerRadius="20"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="0.65*" /> <RowDefinition Height="0.35*" /> </Grid.RowDefinitions> <Border Name="imgBorder" Background="White" CornerRadius="20,20,0,0" /> <Image Source="{Binding ImageUrl, Mode=OneTime}" Stretch="Fill"> <Image.OpacityMask> <VisualBrush Visual="{Binding ElementName=imgBorder, Mode=OneTime}" /> </Image.OpacityMask> </Image> <Border Grid.Row="1" Background="White" CornerRadius="0,0,20,20"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal"> <TextBlock VerticalAlignment="Center" Style="{StaticResource tbStyle}" Text="{Binding Price, Mode=OneWay}" /> <TextBlock Margin="20,18,0,0" VerticalAlignment="Center" FontSize="30" Style="{StaticResource tbStyle}" Text="元" /> </StackPanel> </Border> </Grid> </Border>
相关文章推荐
- csdn hud 2094 拓扑排序 已经AC
- Linux深入篇之二:配置Nginx负载均衡
- Leetcode#27||Remove Element
- 黑马程序员——Java基础--编程基础(1)
- 分布式消息队列RocketMQ部署与监控
- NYOJ 252 01串
- svn自动更新脚本
- unity snap小技巧
- XCODE6 产生ipa
- C#深复制与浅复制
- 一个小公司老板的日常管理日记,希望能让创业的朋友学到东西(转载)
- [LeetCode] Balanced Binary Tree
- 平时的一些手绘,有点拿不出手哈
- Swift2学习:Swift概览6-泛型
- 智渔课堂官方免费教程三十八 :Java基础教程之异常
- centos6.5和ubuntu关闭防火墙方法
- PHPCMF+php+日记(一)
- jQuery CSS 操作 - offset() 方法
- [ElasticSearch] 空间搜索 (一)
- I学霸官方免费教程三十八 :Java基础教程之异常