سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد تنظیم مقدار Bevel با استفاده از Slider با wpf و #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
تصویر خروجی این کد:
کد تنظیم مقدار Bevel با استفاده از Slider با wpf و #C :
<Window x:Class="BitmapEffects.Window4"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Bitmap Effects" Height="538" Width="600">
<StackPanel>
<Rectangle Height="50" Width="200" Fill="Red" Stroke="Black">
<Rectangle.BitmapEffect>
<BevelBitmapEffect
BevelWidth="{Binding ElementName=sliderBevel, Path=Value}"
/>
</Rectangle.BitmapEffect>
</Rectangle>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Bitmap Effects" Height="538" Width="600">
<StackPanel>
<Rectangle Height="50" Width="200" Fill="Red" Stroke="Black">
<Rectangle.BitmapEffect>
<BevelBitmapEffect
BevelWidth="{Binding ElementName=sliderBevel, Path=Value}"
/>
</Rectangle.BitmapEffect>
</Rectangle>