When I create an outlet in Xcode, MonoTouch creates identical properties in the *.designer.cs file for that particular view.
namespace MyApp
{
[Register ("CustomCell")]
partial class CustomCell
{
[Outlet]
MonoTouch.UIKit.UISwitch Toggle { get; set; }
void ReleaseDesignerOutlets ()
{
if (Toggle != null) {
Toggle.Dispose ();
Toggle = null;
}
}
}
}
but as you can see, scopes those properties as private.
Is there a way through XCode or MonoTouch to tell the system these should be generated as public, protected or internal?
Granted I could expose properties in the implementation side of this partial class that act as proxies to these properties but I am hoping there is a cleaner way.