WPFのBorder的用法


border介紹:

 

下面是StackPanel中,一個簡單的,具有輕微圓角的邊框,圍繞在一組按鈕外面:

 

<Border Margin="5" Padding="5" Background="LightYellow"
           BorderBrush="SteelBlue" BorderThickness="3,5,3,5"
           CornerRadius="3" VerticalAlignment="Top">
        <StackPanel>
             <Button Margin="3">One</Button>
             <Button Margin="3">Two</Button>
             <Button Margin="3">Three</Button>
        </StackPanel>
</Border>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM