Suppose that I have this XAML code :
<StackPanel>
<s:SurfaceTextBox Name="A" />
<s:SurfaceTextBox Name="B" />
</StackPanel>
<s:ScatterView>
<s:SurfaceTextBox Name="C" />
<s:SurfaceTextBox Name="D" />
</s:ScatterView>
How can I hide all those TextBoxes in the code behind, exept the one nammed A.
I'm not asking for this response :
B.Visibility = Visibility.Hidden;
C.Visibility = Visibility.Hidden;
D.Visibility = Visibility.Hidden;
I want something generic which can do it for all, without knowing their names ?