wpf - Does visual studio check Xaml static resource on compile time? -


i use static resource converter in xaml, e.g.

visibility="{binding showadditionalview, converter={staticresource booleantovisibilityconverter}}" 

and declare

<booleantovisibilityconverter x:key="booleantovisibilityconverter"/> 

this works of time, if say, mistype booleantovisibilityconverter, or forgot add declaring line, program still compiles , nasty exception in runtime that's hard debug.

is there way tell vs check such problems? have vs 2010 express

straight msdn: debugging silverlight xaml:

static resource references evaluated @ xaml load time. order in individual xaml components loaded important. 1 common failure of resource lookup making forward reference: staticresource reference key made prior item definition of item x:key value. at design time, visual studio can show highlighting , place warnings in error list cases staticresource reference not resolve existing key in resource dictionary. visual studio accounts application-level resources, references page application resource not produce false warnings.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -