WPF中的app.xaml有什么用处,如何使用?

最好举个例子!
2025-03-12 03:30:37
推荐回答(1个)
回答1:

app.xaml就是起始页等一堆参数的配置,相当于控制台程序的Main,是整个程序的入口;比如:
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">





这个里面的StartupUri就是设置起始页的