Hi there,
You can call to your LoginWindow in your App.xaml file.
Something like this: StartupUri="Windows\LoginWindow.xaml"
Or if you want to show the LoginWindow as DialogWindow you should call it from the
Loaded event of your
MainWindow.
Edit:
You have an App.xaml file in your project, so this is the Entry Point of your application. Now, you want to login in your application in order to bring another form.
So, you must write your LoginWindow inside the App class (located in App.xaml.cs).
Your App.xaml must like something like this:
<Application x:Class="YourApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="LoginWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
Now in your login button(inside your LoginWindow class) redirect to your desired class after login.
Hope it helps.