Slacker Active Member Licensed User Longtime User Dec 18, 2013 #1 Hello Folks! I'm using CustomListView type as Children of Panel. I need to check if the first children (panel.GetView(0)) is a CustomListView type and getting it to work in. I've failed using various kind of conversion as the casting seems to be impossible. Do you have some good tips ? Thank you !
Hello Folks! I'm using CustomListView type as Children of Panel. I need to check if the first children (panel.GetView(0)) is a CustomListView type and getting it to work in. I've failed using various kind of conversion as the casting seems to be impossible. Do you have some good tips ? Thank you !
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2013 #2 The actual view in the case of CustomListView is a ScrollView. You can add this line in DesignerCreateView (assuming that you are adding it with the designer): sv.Tag = Me You will then be able to access it with: Code: Copy Dim clv As CustomListView = Panel.GetView(0).Tag Upvote 0
The actual view in the case of CustomListView is a ScrollView. You can add this line in DesignerCreateView (assuming that you are adding it with the designer): sv.Tag = Me You will then be able to access it with: Code: Copy Dim clv As CustomListView = Panel.GetView(0).Tag
Slacker Active Member Licensed User Longtime User Dec 18, 2013 #3 Thank you Erel, but i'm adding it by code, not through designer... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2013 #4 So add this line to the Initialize sub. Upvote 0
Slacker Active Member Licensed User Longtime User Dec 18, 2013 #5 Yes, i've done so. Thank you Erel. Upvote 0