WinFX Beta 2 - ResourceDictionary, Styles?

I just installed the the May CTP. Unfortunately my application isn't running anymore. I always get the error: Property 'Source' not found or not serializable for type 'Source'.

<Application.Resources>
<ResourceDictionary Source="View/Styles/StyleDictionary.xaml" />
</Application.Resources>


In another application it still works, so I think it has something to do with the styles inside my ResourceDictonary. Where can I find out what changes are made in the May CTP

-Daniel


Answer this question

WinFX Beta 2 - ResourceDictionary, Styles?

  • BINNY_MATHEW_41ac92

    I have seen this same issue, with the same error message.

    For me the referenced dictionary is in another assembly. I would be very interested in seeing the syntax that did work: I'll give you another example of syntax that does not work.

    <ResourceDictionary>

    <ResourceDictionary.MergedDictionaries>

    <ResourceDictionary Source="CommonUI;component/ControlDictionary.xaml"/>

    <ResourceDictionary Source="CommonUI;component/GraphicsDictionary.xaml"/>

    </ResourceDictionary.MergedDictionaries>

    </ResourceDictionary>


  • Ramakrishnan Sharma

    Hi John,

    Have you tried Source="/CommonUI;component/ControlDictionary.xaml", with the "/" in front

    Thanks,

    Tina



  • Abhishek Pandey

    You can find a list of changes from Tim Sneath`s blog: http://blogs.msdn.com/tims/archive/2006/05/23/605418.aspx

    As for the reason behind this... you might have given part of the answer yourself...

    While I don`t know exactly what your problem is, changes in May CTP will now prohibit foward reference to resources... Meaning that you cannot reference a resource declared after the current item in the resources... Maybe that your styles are referencing items which they cannot anymore! !




  • Vern s

    That fixed it. Thank you for the assistance.

    John Melville


  • WinFX Beta 2 - ResourceDictionary, Styles?