Skip to main content

Microsoft Silverlight

Answered Question CategoryAttribute -- cannot get stringsRSS Feed

(1)

jpeters
jpeters

Member

Member

3 points

25 Posts

CategoryAttribute -- cannot get strings

I am trying to read some of the category strings of the standard categories that can be assigned to properties, but to no avail.

 Here is a simple example:

 I ran this code:

String s = CategoryAttribute.Default.Category;

 and I get the following for the value of "s"

[PropertyCategoryDefault]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30523.8&File=System.dll&Key=PropertyCategoryDefault

Note: no exception is thrown, I just get a weird value back from the property. 

 I looked this up on google and I found that there were problems in Beta 1 with the manifest that ships with silverlight as in this post

http://blogs.msdn.com/silverlightws/archive/2008/04/06/getting-full-exceptions-in-silverlight-2-beta-1.aspx 

 I double checked mine and it looks ok, but, of course, I still cannot read the strings.  Anyone know if these strings are available somehow?

 

Justin Van Patten - MSFT
Justin V...

Member

Member

304 points

37 Posts

Microsoft
Answered Question

Re: CategoryAttribute -- cannot get strings

This is a known bug with CategoryAttribute that will be fixed for Silverlight 2 RTW.

Cheers,

Justin Van Patten
Common Language Runtime
Microsoft

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities