我使用Frame和IsClippedToBounds來為我的影像添加cornerRadius,但它并不作業。
< Frame CornerRadius="10"/span> BackgroundColor="White" IsClippedToBounds="True" Padding="0" >
<Image Source="House. jpg" Aspect="AspectFill"/>。
</Frame>/span>
uj5u.com熱心網友回復:
你的代碼應該是有效的,這是在我這邊使用你的代碼的運行截圖。
我不知道原因是什么,但作為一個解決辦法,你可以使用ImageButton而不是Frame Image。
用法很簡單
< ImageButton Aspect="AspectFill"/span> CornerRadius="10" IsEnabled="False" Source="House。 jpg"/>
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/312691.html
標籤:


