How can i reach a button in a Cell view

How can i reach a button in a view cell using x:name
in the code page cant see it
pls i want 2 change the text dynamically

Best Answer


  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    You can't. x:Name is meaningless on a template since there are multiple instances of the object: one for each item in the source collection.

    You shouldn't be trying to change UI elements from code anyway - that's very bad practice.

    To do what you want you'll need to bind the text value to a property on the model or ViewModel.

  • ibrahimnadaibrahimnada USMember ✭✭

    i want to change the language of that button
    thats all how can i do that please help me Out

  • ibrahimnadaibrahimnada USMember ✭✭

    cant i use via a property or something ?

Sign In or Register to comment.