Skip to main content

Microsoft Silverlight

Answered Question RC0: Run.Text AG_E_RUNTIME_MANAGED_UNKNOWN_ERRORRSS Feed

(0)

hangkous
hangkous

Member

Member

56 points

41 Posts

RC0: Run.Text AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

Class Run
Property Text

You can't databind to Run.Text. If you do you'll get a AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

Rick

IdeaPlease remember to mark the replies as answers if they answered your question

Mark Rideout
Mark Rid...

Contributor

Contributor

2357 points

273 Posts

MicrosoftModerator
Answered Question

Re: RC0: Run.Text AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

The error message can use some work but this is correct - A Run element's Text property cannot be databound to. We are looking at how we could open this up in a future version.

-mark
Silverlight Program Manager
Microsoft
This post is provided "as-is"

hangkous
hangkous

Member

Member

56 points

41 Posts

Re: RC0: Run.Text AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

A error message saying this is on purpose would be fine. Now it looks like a bug.

It is unfortunate because almost all texts I have are databound, so I should stick to TextBox and fix the extra spaces myself. Run is unusable for me at the moment.

Rick

IdeaPlease remember to mark the replies as answers if they answered your question

CoderX
CoderX

Member

Member

154 points

89 Posts

Re: RC0: Run.Text AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR

Good thing I found this post. I was just setting up an interface with databound Run elements, and couldn't figure out why I was getting this bizarre error. Why you can't databind the text property of a run is beyond me. I agree with hangkous that they're pretty much useless without this capability. In fact including much of anything in Silverlight that can't be bound is completely contrary to the "Silverlight way". I'd suggest either extending Run to support binding or removing it altogether. In the meantime the error should say something like "Property for Element does not support Data Binding" or similar, at least then we would know.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities