Adding button to a toolbar

Let's say i want to add some buttons to a toolbar, i use to write:

<ToolBar>
<
ToolBar.Items>
<
ButtonContent="Hello" />
<ButtonContent="Hello again" />
</
ToolBar.Items>
</
ToolBar>

But on Nov CTP Toolbars.Items is no more accepted... :(

Any idea?
Thanks
Corrado

[1305 byte] By [CorradoCavalli] at [2007-12-17]
# 1
Wow that syntax hasn't worked for a while as far as I can remember. What you want is something like this...



<ToolBar>
<Button>Hello</Button>
<Button>Hello again</Button>
</ToolBar>

For future reference you should be able to find the correct syntax of most elements in the msdn docs.

HTH,
Andrew

andokai at 2007-9-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
I've indeed tried to find the right syntax on MSDN but got no luck, do you have a sample link where i can find the right definition?

Thanks,
Corrado

CorradoCavalli at 2007-9-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3
You should be see the structure of the various controls with the sample available here.
andokai at 2007-9-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified