Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Accesing Elements from a Data Template to code

$
0
0

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>


Iwant toaccess thecodename selectcolor.

Viewing all articles
Browse latest Browse all 18858

Trending Articles