Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WPF forms

0 views
Skip to first unread message

tshad

unread,
Dec 29, 2009, 4:13:42 PM12/29/09
to
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

Vijay

unread,
Dec 30, 2009, 1:49:26 AM12/30/09
to
hi,
There is an App.xaml file which contains this property.

<Application x:Class="testWPFApps.App"

StartupUri="Window1.xaml">
<Application.Resources>

</Application.Resources>
</Application>

here startupUri specifies the startup file.
I think this post will help you.

Vijay chandar

"tshad" <to...@pdsa.com> wrote in message
news:#3sxNvMi...@TK2MSFTNGP02.phx.gbl...

tshad

unread,
Dec 31, 2009, 7:47:42 PM12/31/09
to
That was it.

Thanks,

Tom
"Vijay" <vijaycha...@gmail.com> wrote in message
news:91E3E504-7A01-4E3A...@microsoft.com...

0 new messages