سلام خدمت کاربران وب سایت پروگرم 98 😉 در این پست کد تنظیم مقدار Blur ایجاد شده با BlurBitmapEffect توسط Slider با wpf و سی شارپ #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
تصاویر خروجی نهایی این کد:
کد تنظیم مقدار Blur ایجاد شده با BlurBitmapEffect توسط 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>
<Ellipse Height="100" Width="100" Fill="Red" Stroke="Black">
<Ellipse.BitmapEffect>
<BlurBitmapEffect
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>
<Ellipse Height="100" Width="100" Fill="Red" Stroke="Black">
<Ellipse.BitmapEffect>
<BlurBitmapEffect