![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
| | #2 (permalink) |
| 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 Specs![]() |
| | #3 (permalink) |
| 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 Specs![]() |
| | #4 (permalink) |
| 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 Specs![]() |
| | #5 (permalink) |
| 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 Specs![]() |
| | #6 (permalink) |
| 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 Specs![]() |
| | #7 (permalink) |
| 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 Specs![]() |
| | #8 (permalink) |
| 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 Specs![]() |
| | #9 (permalink) |
| 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 Specs![]() |
![]() |
| 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 |