Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug x:FieldModifier fails at runtime
4 replies. Latest Post by codebased on April 10, 2008.
(0)
MarkTap
Participant
1442 points
263 Posts
03-14-2008 9:46 AM |
This compiles in SL2B1 and the generated field is made public instead of internal:
<TextBlock x:Name="tb" Text="Hello" x:FieldModifier="public" />However, it fails at runtime with: "XamlParseException....unknown attribute 'FieldModifier'...."
Yi-Lun L...
All-Star
25052 points
2,747 Posts
03-17-2008 3:57 AM |
Hello, not all attributes in x namespace is supported in Silverlight. You should only use the documented ones: x:Class, x:Key, x:Name, x:Null.
codebased
806 points
360 Posts
04-02-2008 8:42 PM |
Hi there,
I' also getting this error but how can I make an object as public?
Cheers,Ricky
MishaSt
Member
88 points
22 Posts
04-10-2008 5:15 AM |
I've handy-make public property :) that returns private property.
04-10-2008 6:55 PM |