Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug RC0: Run.Text AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR
3 replies. Latest Post by CoderX on November 9, 2008.
(0)
hangkous
Member
56 points
41 Posts
09-30-2008 4:17 PM |
Class RunProperty TextYou can't databind to Run.Text. If you do you'll get a AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR
Mark Rid...
Contributor
2357 points
273 Posts
09-30-2008 7:31 PM |
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.
-markSilverlight Program ManagerMicrosoftThis post is provided "as-is"
10-01-2008 2:41 AM |
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.
CoderX
154 points
89 Posts
11-09-2008 7:35 PM |
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.