2012-09-12 29 views
0

很长一段时间我正在寻找技巧来开发一个蓝色的窗口,其中一些叶子图像是从标题栏出来。他们如何设计这样的布局。如何restyle wpf窗口喜欢蓝叽叽喳喳客户端

这里是自定义标题栏 enter image description here

的小图片,请一些人告诉我我怎么能设计这种类型,其中一些从标题栏走出标题栏。

回答

0

您可以通过该窗口设置适当的背景图像和设定AllowsTransparencyTrue实现这一点:

<Window x:Class="WpfApplication1.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="MainWindow" WindowStyle="None" AllowsTransparency="True"> 
    <Window.Background> 
     <ImageBrush ImageSource="/bg.png"/> 
    </Window.Background> 

然后,你必须创建自己的标题栏,因为默认的将不显示。