I have a WPF list box control in which two buttons are placed. I want to find these buttons from code behind,how can i find them and hide,shows them.
my code :
<ListBox Grid.Row="1" IsSynchronizedWithCurrentItem="True" Name="listAppointment" Background="#95BFE4" VerticalAlignment="Top" BorderBrush="{x:Null}"
BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Margin="1,0,0,5" ItemsSource="{Binding}" AlternationCount="0">
<ListBox.ItemContainerStyle >
<Style TargetType="ListBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="MinHeight" Value="36" />
<Setter Property="Borde ...
Go to the complete details ...