I am facing problem in Extracting the elements which are present in the Datatemplate from code.
<DataTemplate x:Name="PickerItemTemplate"><StackPanel Orientation="Horizontal"><Rectangle x:Name="selectcolor" Fill="{Binding color}" Width="65" Height="65" Margin="0 0 0 0"></Rectangle></StackPanel></DataTemplate>