【问题标题】:navigation window in maximizes screen最大化屏幕中的导航窗口
【发布时间】:2016-07-19 05:09:40
【问题描述】:

我必须在我的应用程序中提供导航,所以我将一个导航窗口和另一个作为页面对象。我提供了 windowstate="maximized" 仍然没有全屏打开。有人可以帮我吗?

导航窗口

<NavigationWindow x:Class="SALIENT.View.Start"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Start" Source="../View/MainWindow" WindowState="Maximized">

页面

<Page x:Class="SALIENT.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Salient" >

【问题讨论】:

    标签: wpf navigation


    【解决方案1】:

    如果你想要全屏,你需要将“WindowStyle”属性设置为无,试试这个:

    <NavigationWindow x:Class="SALIENT.View.Start"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Start" Source="../View/MainWindow" WindowState="Maximized" WindowStyle="None>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-24
      • 1970-01-01
      • 2017-11-24
      • 1970-01-01
      • 2016-08-12
      相关资源
      最近更新 更多