The syntax error is because x:Key is only valid for items that are inside of dictionaries. In the XAML below the resource dictionary is actually getting assigned to the BaseUserControl.Resources property thus it is not inside of a dictionary itself.
It's a bug that this syntax is allowed in Silverlight 3, in WPF this is a compiler error and I believe that this is a runtime exception in Silverlight 4. I'm curious what the Command= syntax is that you're using- I haven't heard of any reason why it may be broken. Pete From: [email protected] [mailto:[email protected]] On Behalf Of Greg Keogh Sent: Wednesday, July 28, 2010 9:29 PM To: 'ozSilverlight' Subject: RE: Invalid XML (Key attribute fixed) The error Key attribute can only be used on an element was caused by pasting the block of XAML over from a WPF application into SL3. Simply removing the x:Key from the element fixes the problem with no side effects. I wasn't using the Key in code. However, more than an hour of web searching and experiments has failed to make Blend 3 recognise the Command= element and the designer remains broken. I felt sure that adding something to the <Resources> as a hint to Blend's XAML parser would fix it, but no luck so far. -- Greg [cid:[email protected]]
<<inline: image001.png>>
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
