سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد ایجاد افکت Glow با OuterGlowBitmapEffect با wpf و #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
خروجی این کد:
کد ایجاد افکت Glow با OuterGlowBitmapEffect با wpf و #C :
<Window x:Class="BitmapEffectsExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Bitmap Effects" Height="500" Width="400">
<StackPanel Margin="5,20,5,5" Grid.Column="0" Grid.Row="1">
<Button Content="A Growing Button" Width="150" Height="30" Margin="10">
<Button.BitmapEffect>
<OuterGlowBitmapEffect GlowColor="Gray"
GlowSize="15" Noise="1" />
</Button.BitmapEffect>
</Button>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Bitmap Effects" Height="500" Width="400">
<StackPanel Margin="5,20,5,5" Grid.Column="0" Grid.Row="1">
<Button Content="A Growing Button" Width="150" Height="30" Margin="10">
<Button.BitmapEffect>
<OuterGlowBitmapEffect GlowColor="Gray"
GlowSize="15" Noise="1" />
</Button.BitmapEffect>
</Button>