D
DanThMan
When declaring controls declaratively in XAML, how can you set the
access modifier? Also, what is the default access modifier? Public,
private, internal, protected....?
The only thing I could found in the documentation was X:FieldModifier
and X:ClassModifier, but I get errors if I try to use either of these.
For example, if I try...
<Label x:Name="myField" x:FieldModifier="private">Example</Label>
....I get a blue squiggle under X:FieldModifier, and in the warning
list, I get the following:
"Warning: The 'http://schemas.microsoft.com/winfx/2006/
xaml:FieldModifier' attribute is not declared."
Thanks for any insight you may have on this!
-Dan
access modifier? Also, what is the default access modifier? Public,
private, internal, protected....?
The only thing I could found in the documentation was X:FieldModifier
and X:ClassModifier, but I get errors if I try to use either of these.
For example, if I try...
<Label x:Name="myField" x:FieldModifier="private">Example</Label>
....I get a blue squiggle under X:FieldModifier, and in the warning
list, I get the following:
"Warning: The 'http://schemas.microsoft.com/winfx/2006/
xaml:FieldModifier' attribute is not declared."
Thanks for any insight you may have on this!
-Dan