我知道这已经被问过,但我试过的答案@如何使标题栏在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