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

Similar Threads

Use an ellipse shape as a window. 0
WPF Rightbutton problem 1
WPF DockPanel positioning 6
xml name spaces 1
Media in my aspx 2
Silverlight 4 combobox 11
Silverlight 4 combobox 2
Flip-Cards with Local Images 1

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top