我正在使用WPF,并且我有DataTemplate,这是我想访问的代码隐藏如何使用它?我正在使用WPF,并且我有DataTemplate,我想访问代码隐藏如何使用它?
<DataTemplate x:Name="PersonDateTemplate">
<StackPanel Orientation="Horizontal">
<Label x:Name="lblhr" Height="40px" Width="50px"
Content="{Binding Path=hrvalueinitially}" FontSize="20px"
HorizontalAlignment="Left" Background="#555555" Foreground="White"
FlowDirection="LeftToRight"></Label>
<TextBlock x:Name="items" Text="{Binding}" Margin="35,0,0,0"></TextBlock>
</StackPanel>
</DataTemplate>
你为什么要这么做? – Clemens
@logeshwari提供适当的问题标题.. konjam theliva irukalaam :) .. – WPFUser