Here how i retrieve my button in my Fragment
` class clsFragmentConnection : Fragment {
private EditText _editUser;
private EditText _editPass;
private Button _btnLogin;
public override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
}
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View vConnection = inflater.Inflate(Resource.Layout.FragmentConnectionLayout, container, false);
_btnLogin = (Button)vConnection.FindViewById(Resource.Id.btnLogin);
_editUser = (EditText)vConnection.FindViewById(Resource.Id.editUser);
_editPass = (EditText)vConnection.FindViewById(Resource.Id.editPass);
_btnLogin.Click += (sender, args) => LogIn();
// ----> Dont have access _btnLogin.setV
return vConnection;
} ... `
i don't know why but i can't have access to setVisibility why ?
Thanks!