Modifies XAML compilation behavior, such that fields for named object references are defined with public access rather than the private default behavior.
The value for the x:FieldModifier attribute will vary by programming language. Valid values are private, public, protected, internal or friend. For C#, Microsoft Visual Basic or Visual C++ component extensions (C++/CX), you can give the string value "public" or "Public"; the parser doesn't enforce case on this attribute value.
Private access is the default.
x:FieldModifier is only relevant for elements with an x:Name attribute, because that name is used to reference the field once it is public.
Note Windows Runtime XAML doesn't support x:ClassModifier or x:Subclass.
Learn how to implement read-write, read-only, and write-only class properties using property accessors and access modifiers, and how to implement methods and extension methods for a class.