Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/325.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WPF页面标题栏隐藏_C#_Wpf - Fatal编程技术网

C# WPF页面标题栏隐藏

C# WPF页面标题栏隐藏,c#,wpf,C#,Wpf,我知道如何在windows中隐藏标题栏:WindowStyle=“无”。但是我怎样才能用页面实现这一点呢? 我有这样一个代码: <Page x:Class="SomeNamePage1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http

我知道如何在windows中隐藏标题栏:WindowStyle=“无”。但是我怎样才能用页面实现这一点呢? 我有这样一个代码:

<Page x:Class="SomeNamePage1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
      xmlns:local="SomeName"
      mc:Ignorable="d" 
      d:DesignHeight="700" d:DesignWidth="700" WindowHeight="700" WindowWidth="700"
      Title="Page1" Background="#FFFFFF">


如何隐藏标题栏,其结果与WindowStyle=“None”相同?

我发现这是不可能的。我解决了使用一个窗口作为导航菜单的支架和一个在页面之间切换内容的框架的问题。
希望这能帮助别人

我发现这是不可能的。我解决了使用一个窗口作为导航菜单的支架和一个在页面之间切换内容的框架的问题。 希望这能帮助别人