سلام 😉 در این مطلب از وب سایت پروگرم 98 کد ایجاد Polyline درون دکمه با wpf و #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
خروجی این کد:
کد ایجاد Polyline درون دکمه با wpf و #C :
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Title="Design XAML Button"
SizeToContent="WidthAndHeight"
ResizeMode="CanMinimize">
<Button HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="24">
<StackPanel>
<Polyline Stroke="Black"
Points="0 10,10 0,20 10,30 0,40 10,50 0,
60 10,70 0,80 10,90 0,100 10" />
<Image Margin="0,10,0,0"
Title="Design XAML Button"
SizeToContent="WidthAndHeight"
ResizeMode="CanMinimize">
<Button HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="24">
<StackPanel>
<Polyline Stroke="Black"
Points="0 10,10 0,20 10,30 0,40 10,50 0,
60 10,70 0,80 10,90 0,100 10" />
<Image Margin="0,10,0,0"