سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد Window.Background و قرار دادن عکس برای Window با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
تصویر خروجی این کد:
کد Window.Background و قرار دادن عکس برای Window با wpf و سی شارپ #C :
<Window x:Class="Drawing.OpacityMask"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="OpacityMask" Height="313.6" Width="317.6"
>
<Window.Background>
<ImageBrush ImageSource="c:\image.jpg"></ImageBrush>
</Window.Background>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="OpacityMask" Height="313.6" Width="317.6"
>
<Window.Background>
<ImageBrush ImageSource="c:\image.jpg"></ImageBrush>
</Window.Background>