WPF forms

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

In my WPF project, I have about 4 xaml files. How does the project know
which one to call?

Here is the one that is actually called first.

<Window x:Class="SeeThru.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SeeThru" Height="300" Width="300"
WindowStyle="None" AllowsTransparency="True"
Background="Transparent"
But I have other windows in the project that I also call from buttons on the
page. For example:

<Window x:Class="SeeThru.Clock"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="450" Width="350"
WindowStyle="None" AllowsTransparency="True"
Background="{x:Null}" Loaded="Window_Loaded">

or

<Window x:Class="SeeThru.CrazyWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="300" Width="300"
WindowStyle="None" AllowsTransparency="True"
Background="{x:Null}"
What causes the 1st one to be called and not the others?

Thanks,

Tom
 
Back
Top