现在我们的图像文件准备就绪,让我们现在塑造我们的WPF表格。
设置WPF应用
打开Visual Studio 2008并创建新项目。
在Visual C#项目模板下,选择Windows >> WPF应用。
使用下面的XAML:
<window allowstransparency="True" opacitymask="White" windowstyle="None"
background="Transparent" width="620" height="267"
xmlns:x=http://www.easck.com/winfx/2006/xaml
xmlns=http://www.easck.com/winfx/2006/xaml/presentation
x:class="ShapedWPFForm.ShapedWindow">
<grid>
<img name="imgBackground" source="Shape.png" stretch="Fill" />
</grid>
</window>











