Wednesday, August 19, 2009

Silverlight 2.0: usage of the converters from external assembly in app.xaml

Hi all,
it is my first post and I'd like to strat it from a small trick for defining value converters in app.xaml file in silverlight project.
Problem:
If you define Converters in app.xaml (see below) then you find that Visual Studio designer fails to render User Controls (Visual Studio designer become blank).

Upd: not the converter defenition in app.xaml file cause the visual studio designer to go blank but xmlns defenition.
Solution:

To avoid this designer problem move namespace declaration closer to usage:


Voila!!! now designer work perfect and able to render our content.

http://blog.andrew-veresov.com/post/Silverlight-20-usage-of-the-converters-from-external-assembly-in-appxaml.aspx

No comments:

Post a Comment