2012-09-12 31 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> 

然後,你必須創建自己的標題欄,因爲默認的將不顯示。