به نام خدا سلام بر برنامه نویسان عزیز 😉 در این مطلب از وب سایت پروگرم 98 کد Stretch=Uniform برای Polygon با wpf و سی شارپ را آماده کردم. انشاالله که این کد براتون مفید باشه.
تصویر خروجی این کد:
کد Stretch=Uniform برای Polygon با wpf و سی شارپ :
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.Graphics.RectangleExample"
WindowTitle="Rectangle Example">
<Canvas>
<Polygon Height="100" Width="50" Points="0,0 10,10 0,10" Fill="Blue" Stretch="Uniform"/>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.Graphics.RectangleExample"
WindowTitle="Rectangle Example">
<Canvas>
<Polygon Height="100" Width="50" Points="0,0 10,10 0,10" Fill="Blue" Stretch="Uniform"/>