WPF forms

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top