سلام بر تمامی برنامه نویسان سی شارپ 😉 در این پست آموزش ساخت مستطیل (Rectangle) با گوشه منحنی با RadiusX و RadiusY با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
تصویر خروجی این کد:
کد ساخت مستطیل (Rectangle) با گوشه منحنی با RadiusX و RadiusY با wpf و سی شارپ #C :
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WpfApplication1" Height="352" Width="334" WindowStartupLocation="CenterScreen">
<StackPanel>
<Rectangle RadiusX ="20" RadiusY ="50" Fill ="DarkBlue" Width ="150" Height ="50"/>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WpfApplication1" Height="352" Width="334" WindowStartupLocation="CenterScreen">
<StackPanel>
<Rectangle RadiusX ="20" RadiusY ="50" Fill ="DarkBlue" Width ="150" Height ="50"/>