How to set a .PNG image as a TILED background image for my WPF Form?

Posted by John McClane on Stack Overflow See other posts from Stack Overflow or by John McClane
Published on 2009-11-12T20:34:43Z Indexed on 2010/03/31 20:53 UTC
Read the original article Hit count: 476

Filed under:
|

I'm learning WPF on my own and I can't seem to find a way to make this work.

Here's my code:

<Window x:Class="Test.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Test" Height="600" Width="800" >
<DockPanel>
    <Menu DockPanel.Dock="Right"
          Height="30"              
          VerticalAlignment="Top"
          Background="#2E404B"
          BorderThickness="2.6">
        <Menu.BitmapEffect>
            <DropShadowBitmapEffect Direction="270" ShadowDepth="3" Color="#2B3841"/>
        </Menu.BitmapEffect>                          
    </Menu>
</DockPanel>

How can I make a .BackgroundImage thing appear? :D

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf