سلام بر تمامی برنامه نویسان سی شارپ 😉 در این پست کد تبدیل مستطیل به بیضی با گردکردن گوشه ها و استفاده از RadiusX و RadiusY با wpf و #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
تصاویر خروجی نهایی این کد:
کد تبدیل مستطیل به بیضی با گردکردن گوشه ها و استفاده از RadiusX و RadiusY با wpf و #C :
<Window x:Class="Drawing.RoundedRectangles"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="RoundedRectangles" Height="449" Width="340"
>
<StackPanel>
<TextBlock Margin="5,5,0,0">Corner radius of 100 (X) and 60 (Y).</TextBlock>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="RoundedRectangles" Height="449" Width="340"
>
<StackPanel>
<TextBlock Margin="5,5,0,0">Corner radius of 100 (X) and 60 (Y).</TextBlock>