'Xamarin.Forms How to make x:Name= available for several files?

in one of the xaml files I have a Collection View that has the name x:Name="name_colec" and I can s refer to this name in the cs file that belongs to the current xaml file in which I defined this name. but how to make this name available not only for the current cs file, but also for other project files? because I ran into a problem that I can't refer to this name in other cs files.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source