這是關於具有邊框半徑的矩形的一般問題。我正在與一位開發人員合作,他們將我的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. 沒有矩形形成的矩形
- 2. UIView cornerRadius - 什麼?
- 3. UIImageView cornerradius和CGrect
- 4. 標籤CornerRadius
- 5. shadowOffset + CornerRadius TableView
- 6. CornerRadius完全UIView
- 7. 當旋轉外部矩形時,在矩形內移動矩形
- 8. 矩形
- 9. 另一個矩形內的矩形
- 10. 矩形和矩形2D差異
- 11. 如何在矩形中創建矩形?
- 12. 矩形內最大的空矩形
- 13. 鉗矩形內較大的矩形
- 14. 畫布像矩形輪旋轉矩形
- 15. pygame的角度球(矩形)和矩形
- 16. 快速矩形到矩形相交
- 17. 切割矩形不使用矩形:)
- 18. 在矩形內繪製等距矩形
- 19. 的UITextView CornerRadius細胞
- 20. WPF邊框對象邊框CornerRadius不同於邊框背景CornerRadius
- 21. RLE尋找矩陣矩形
- 22. 圓形UIView實現與cornerRadius看起來塊狀
- 23. 捕獲矩形
- 24. 發現矩形
- 25. Java JFrame矩形
- 26. 繪圖矩形
- 27. 矩形類
- 28. 旋轉矩形?
- 29. 使用矩形
- 30. 點在矩形
哈哈這聽起來很熟悉,如果你的開發者的名字是詹姆斯告訴他聯繫我。 ;) – 2014-12-05 14:34:11