在 wpf 主窗口中隐藏顶部面板

阳光桑迪普

我是 WPF 的新手。我在 wpf 和 mainwindow.xaml 中创建了一个新项目,我写了以下内容

<Window x:Class="WpfApp1.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:WpfApp1"
    mc:Ignorable="d"
    Title="MainWindow" Height="350" Width="604" WindowStartupLocation="CenterScreen" WindowState="Maximized" IsTabStop="False" Focusable="False">

<StackPanel>
    <TextBlock Text = "Welcome to XAML Tutorial with VB.net" Height = "20" Width = "220" Margin = "5"/>
    <Button Content = "Ok" Height = "20" Width = "60" Margin = "5"/>
</StackPanel>

当我运行窗口时,面板会自动在顶部打开,如下所示

在此处输入图片说明

如何隐藏这个?请帮我。

l33t

这是一个调试功能,有时非常有用。

要禁用它,取消Enable XAML Hot Reload工具- >选项

XAML 热重载

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章