现在的位置: 首页 > 综合 > 正文

WPF设置主窗口

2012年11月27日 ⁄ 综合 ⁄ 共 310字 ⁄ 字号 评论关闭
<Application x:Class="testWpf.App"
    xmlns
="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri
="Window2.xaml">
    
<Application.Resources>
         
    
</Application.Resources>
</Application>

 

可以在App.xaml文件中设置StartupUri属性来决定哪个窗口是主要窗口

抱歉!评论已关闭.