getting an exception

Posted by Venkatesh under WPF on 5/23/2011 | Points: 10 | Views : 6500 | Status : [Member] | Replies : 2
Hi,

When i am applying themes for datagrid i am getting

'Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception this exception.

How to solve this exception.

Thanks
Venkatesh.P




Responses

Posted by: Susanthampy on: 5/23/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Venkatesh,


Refer this link ,

http://msdn.microsoft.com/en-us/library/system.windows.resourcedictionary.deferrablecontent.aspx

Regards,
Susan

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tijut2k on: 5/23/2011 [Member] Starter | Points: 25

Up
0
Down
If you reference your DataTemplate by key, can't you just leave out the DataType-specification? Without DataType="{x:Type model:RequirementResourceRelation}" (which is apparently the key for the added item) your x:Key should be used as the key.

Best Regard's
Tiju Thankachan

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response