Window Background : Window Style « Windows Presentation Foundation « C# / CSharp Tutorial






<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>
    <Grid Margin="10,50">

    </Grid>
</Window>
WPF Window Background








24.72.Window Style
24.72.1.Window BackgroundWindow Background
24.72.2.Create a non-rectangular windowCreate a non-rectangular window
24.72.3.Transparent WindowTransparent Window
24.72.4.Non-Rectangular windowNon-Rectangular window
24.72.5.Windows Transparent BackgroundWindows Transparent Background
24.72.6.Set WindowStyle = WindowStyle.ToolWindow
24.72.7.Set brush to Window background