I've installed the windows SDK Beta 2 and the Orcas Development tools and I made a new Winfx Application Using C# and I open up the documenation and find the
How to: Create a Windows Presentation Foundation Application
section and when i paste in the Xaml and add the 2 missing closing tags i get errors saying it can't finish the design and edit your xaml to fix it up again and i'm not excatly sure what to time as i havn't had much developer experince at all.
here is the weblink for it and the code i tried to put in was the first code box
http://windowssdk.msdn.microsoft.com/en-us/ms753309(VS.80).aspx
Erros i get
Error 1 The Class attribute can only be specified on the root element. C:\Users\administrator.GAMES\Documents\Visual Studio 2005\Projects\WordGame\WordGame\Window1.xaml 22 1 WordGame
Error 2 Attribute 'x:Class' has already been specified. C:\Users\administrator.GAMES\Documents\Visual Studio 2005\Projects\WordGame\WordGame\Window1.xaml 22 1 WordGame
Error 3 Objects of type 'System.Windows.Window' do not have child object collections. C:\Users\administrator.GAMES\Documents\Visual Studio 2005\Projects\WordGame\WordGame\Window1.xaml 27 5 WordGame
Error 4 Objects of type 'System.Windows.Window' do not have child object collections. C:\Users\administrator.GAMES\Documents\Visual Studio 2005\Projects\WordGame\WordGame\Window1.xaml 47 5 WordGame
Error 5 Objects of type 'System.Windows.Window' do not have child object collections. C:\Users\administrator.GAMES\Documents\Visual Studio 2005\Projects\WordGame\WordGame\Window1.xaml 20 3 WordGame

How to code not working?
Polly K
Well i was looking at the sample it did seem to run fine when i ran it. Thanks for the info.
What does msft stand for anyway
Aaron076
Well the how to is very hard to follow at least to me it is it dosn't even tell what extra project items need to be added and where to replace the code
For the First code snippet to get it working i did
<
Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WordGame1.Page1" Title="WordGame" Loaded="On_Loaded"><
DockPanel><
StackPanel Name="Controls" DockPanel.Dock="Left" Background="LightBlue"><!--
Controls Pane--></
StackPanel><
StackPanel Name="wordDisplay" DockPanel.Dock="Bottom" Height="100" Orientation="Vertical" Background="LightGreen"><!--
Word Display Pane--></
StackPanel><
Grid Name="Images" Background="LightYellow"><!--
Images Pane--></
Grid></
DockPanel></
Window>By taking out all ... and removing the 2 and 4 bits of code out. It would be nice if it made more sense like telling you where to put the code in what file
rolf cerff
the example comprises of several prts including the c# code - not just the xaml code
Alle
The SDK has a download sample link which provides the entire source code. However, we are currently in the process of uploading the samples and they should hopefully be available online in a couple of weeks.
Javier Aranda Pantoja
FYI, the SDK team has made all of the SDK samples available via our team
blog, here:
http://blogs.msdn.com/wpfsdk/
They're also available if you install the offline SDK (details for
installation are also available on the team blog site).
Thanks,
-Keith