Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,676 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear,
I have a solution in visual studio made with wpf and .net. When I change the name of 'mainwindow.xaml' I can't run the program.
I have tried right click on change name instead of changing the name manually it even like this does not make the necessary changes for the execution of the application to be successful. How can I change correctly the name of the wpf window?
thanks
Hi,
set StartupUri in App.xaml (C#) or Application.xaml (VB):
<Application x:Class="WpfApp1.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfApp1"
StartupUri="Window075.xaml"/>