Hi,
I have this xaml code that I'm trying to use in a Window...
<ListBox xmlns:sys="clr-namespace:System;assembly=mscorlib" Grid.Column="2"
Grid.RowSpan="2">
<Button>Click for a surprise</Button>
<Expander>
Details
<StackPanel>
<sys:DateTime>1/1/2007</sys:DateTime>
<sys:DateTime>2/1/2007</sys:DateTime>
<sys:DateTime>3/1/2007</sys:DateTime>
</StackPanel>
</Expander>
</ListBox>
The problem is with the <sys:DateTimeelements. I get a compiler warning
on these saying that StackPanel has "invalid" child elements. The code will
not run.
If I put the <sys:DateTimeelements directly under the listbox (eliminating
the button and the expander), I get the same warning, but the code will run
and show the date correctly.
I'm using VS2005 with .Net 3.0 installed.
Why isn't <sys:DateTimerecognized? What am I doing wrong here?
BBM