我知道這已經被問過,但我試過的答案@如何使標題欄在WPF窗口中消失?
- How to create a WPF Window without a border that can be resized via a grip only?
- How to remove the title bar from a window but keep the border
既不工作,標題欄文字坐在那裏和IM不能動我的網格直到窗口的頂部,以便網格佔據整個窗口。我對WPF相當陌生,而且我對一些事情做得很好,但我堅持這一點,謝謝。
的XAML的窗口:
<Window x:Class="PlayWPF.TimerSlideWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="" Height="95" Width="641" WindowStyle="None"
ResizeMode="CanResize" AllowsTransparency="False">
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Slider Height="42" HorizontalAlignment="Left" Margin="10,14,0,0"
Name="sldTime" VerticalAlignment="Top" Width="495" />
<TextBox FontSize="18" Height="29" HorizontalAlignment="Left"
Margin="510,10,0,0" Name="txtTime" Text="00:00:00"
TextAlignment="Center" VerticalAlignment="Top" Width="93" />
</Grid>
</Window>
發表您的XAML。我懶得讀這個。 – 2013-03-14 15:22:34
@HighCore說什麼....你鏈接的帖子中的代碼工作得很好。 – 2013-03-14 15:30:28
'WindowStyle =「None」'是不是你正在尋找的? – Nolonar 2013-03-14 15:32:29