Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Doesn't have access to setVisibility to a button

$
0
0

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!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>