How can I get the Text from a Label inside a ListView?

后端 未结 2 569
清歌不尽
清歌不尽 2021-01-26 04:26

I\'m using Xamarin.forms in visual studio. The problem that I have is that I don\'t know how to get the Text that is shown on a Label inside a List view in the xaml file, becaus

2条回答
  •  無奈伤痛
    2021-01-26 05:11

    For example for the label

    In the .cs file you can directly use the name that you set as x:Name(in this case PrecioProducto) as a variable. The text of that label would be

    var tx = PrecioProducto.Text;
    

提交回复
热议问题