Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Simple XAML Question !

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-04-2007   #1 (permalink)
MarkS
Guest


 

Simple XAML Question !

Hi,

I am very much a novice when it comes to XAML and have only just started so
I apologise for the simplicity of this question. I have the following code :

<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Foreground="LightSeaGreen" Fontsize="24pt">
Hello, XAML !
</Button>

I have saved the file away as button.xaml and when I Double Click the file
it attempts to open up in IE but the progress bar gets displayed and gets no
further. I have downloaded the extensions for Visual Studio etc (orcas) and
the .NET 3 Framework installed under Windows XP. Another program that I
created in VS2005 worked fine but I coded this by hand. What am I missing ?

Any help would be appreciated.
Mark

My System SpecsSystem Spec
Old 01-04-2007   #2 (permalink)
Rick Beerendonk
Guest


 

Re: Simple XAML Question !

It is a valid XAML file, but IE is not able to have/create a button (and
most other types) as root object. So IE is just not able to show the
content, that's all. You don't need extra software.

Rick Beerendonk


My System SpecsSystem Spec
Old 01-04-2007   #3 (permalink)
Rick Beerendonk
Guest


 

Re: Simple XAML Question !

It is a valid XAML file, but IE is not able to have/create a button (and
most other types) as root object. So IE is just not able to show the
content, that's all. You don't need extra software.

Rick Beerendonk


My System SpecsSystem Spec
Old 01-04-2007   #4 (permalink)
MarkS
Guest


 

Re: Simple XAML Question !

Thanks Rick,

So I guess I could make the root element a Page rather than a Button object
and make the Button a child element.


"Rick Beerendonk" wrote:

> It is a valid XAML file, but IE is not able to have/create a button (and
> most other types) as root object. So IE is just not able to show the
> content, that's all. You don't need extra software.
>
> Rick Beerendonk
>
>
>

My System SpecsSystem Spec
Old 01-04-2007   #5 (permalink)
MarkS
Guest


 

Re: Simple XAML Question !

Thanks Rick,

So I guess I could make the root element a Page rather than a Button object
and make the Button a child element.


"Rick Beerendonk" wrote:

> It is a valid XAML file, but IE is not able to have/create a button (and
> most other types) as root object. So IE is just not able to show the
> content, that's all. You don't need extra software.
>
> Rick Beerendonk
>
>
>

My System SpecsSystem Spec
Old 01-04-2007   #6 (permalink)
Laurent Bugnion [MVP]
Guest


 

Re: Simple XAML Question !

Hi,

MarkS wrote:
> Thanks Rick,
>
> So I guess I could make the root element a Page rather than a Button object
> and make the Button a child element.


Yes. However, since a Page can have only one child, it's customary to
add a Panel (StackPanel, Canvas, Grid, etc...) to the Page, and the
Button to the Panel.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
Old 01-04-2007   #7 (permalink)
Laurent Bugnion [MVP]
Guest


 

Re: Simple XAML Question !

Hi,

MarkS wrote:
> Thanks Rick,
>
> So I guess I could make the root element a Page rather than a Button object
> and make the Button a child element.


Yes. However, since a Page can have only one child, it's customary to
add a Panel (StackPanel, Canvas, Grid, etc...) to the Page, and the
Button to the Panel.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
Old 01-12-2007   #8 (permalink)
Horst Klein
Guest


 

RE: Simple XAML Question !

Hi Mark

Welcome into the phantastic World of XAML!

A very good tool for "rookies" to play with XAML and to see what XAML
changes does is the "XAMLPad".
It's in the SDK Kit!

Best regards
Horst

My System SpecsSystem Spec
Old 01-12-2007   #9 (permalink)
Horst Klein
Guest


 

RE: Simple XAML Question !

Hi Mark

Welcome into the phantastic World of XAML!

A very good tool for "rookies" to play with XAML and to see what XAML
changes does is the "XAMLPad".
It's in the SDK Kit!

Best regards
Horst

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple question Phil Hunt .NET General 5 05-29-2008 04:57 PM
Simple Question Pat Vista General 8 02-28-2008 11:08 AM
simple question... really! husky86 Vista General 6 10-15-2007 01:33 AM
Simple Question? vernon Vista General 62 05-04-2007 07:58 PM
Simple Question Shawn B. Avalon 3 11-19-2006 08:19 AM


Update your Vista Drivers Update Your Vista Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008