I would like to know if this names (StartupUri="MainWindow.xaml" and MainWindow.xaml) should coincide. For example, if I'm going to rename MainWindow.xaml to e.g. MsgBox.xaml.
Please look at pic and code sample.
App.xaml of project CustomMessageBox
<Application x:Class="CustomMessageBox.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CustomMessageBox"
StartupUri="MainWindow.xaml"> <!-- this name -->
<Application.Resources>
</Application.Resources>
Please any comments and thanks in advance.
new MsgBox().Show()if you go this way then you should get rid of StartupUri markup