这是关于具有边框半径的矩形的一般问题。我正在与一位开发人员合作,他们将我的Photoshop复合材料应用于Blend中的原型。他们告诉我,在Blend中不可能创建一个只有2个弯角的矩形。假设你必须有一个边界半径的所有4个角落或根本没有。理想情况下,我只想要左上角和右下角的边界半径为10,底边没有曲线。我只想知道这是否可行。矩形CornerRadius
0
A
回答
2
使用剪辑:RectangleGeometry
<Rectangle Fill="Blue" HorizontalAlignment="Center" VerticalAlignment="Center" Height="200" Width="200">
<Rectangle.Clip>
<RectangleGeometry Rect="0,20,200,200" RadiusX="20" RadiusY="20"/>
</Rectangle.Clip>
</Rectangle>
使用VisualBrush
<Rectangle>
<Rectangle.Fill>
<VisualBrush Stretch="None">
<VisualBrush.Visual>
<Border CornerRadius="50,50,0,0" Width="300" Height="200" Background="Navy"></Border>
</VisualBrush.Visual>
</VisualBrush>
</Rectangle.Fill>
</Rectangle>
3
它不能够以矩形。但它可以使用边框。
<Border Width="230" Height="100" CornerRadius="10 10 0 0" Background="red"/>
值会以这种方式被应用 - “左上TopRight BottomRight BOTTOMLEFT”
相关问题
- 1. CornerRadius完全UIView
- 2. UIImageView cornerradius和CGrect
- 3. shadowOffset + CornerRadius TableView
- 4. 矩形内最大的空矩形
- 5. 快速矩形到矩形相交
- 6. pygame的角度球(矩形)和矩形
- 7. 矩形和矩形2D差异
- 8. 另一个矩形内的矩形
- 9. 钳矩形内较大的矩形
- 10. 如何在矩形中创建矩形?
- 11. RLE寻找矩阵矩形
- 12. 周边矩形
- 13. 矩形类
- 14. 矩形UIButton
- 15. 矩形动画
- 16. 矩形POST
- 17. 点在矩形
- 18. 绘图矩形
- 19. 矩形相交
- 20. 测量矩形
- 21. 捕获矩形
- 22. 旋转矩形?
- 23. SKShapeNode空矩形
- 24. 矩形 - Emgu CV
- 25. 在矩形
- 26. 激活矩形
- 27. 内矩形
- 28. 长按矩形
- 29. 绘制矩形,然后绘制缩小矩形在先前的矩形内
- 30. 插入非矩形形状
哈哈这听起来很熟悉,如果你的开发者的名字是詹姆斯告诉他联系我。 ;) – 2014-12-05 14:34:11