我想从Silverlight Toolkit自定义ValidationSummary控件的HeaderTemplate并显示本地化的 Header。但我不知道如何在标题文本中显示错误计数器......
有人可以帮我吗?
我当前的 XAML 代码...
<sdk:ValidationSummary Grid.Row="3">
<sdk:ValidationSummary.HeaderTemplate>
<DataTemplate>
<Grid Background="Red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock UseLayoutRounding="False"
Foreground="White"
Text="Editing Errors:" />
<TextBlock UseLayoutRounding="True"
Foreground="White"
FontWeight="Bold"
Text="{Binding DisplayedErrors.Count}"
Grid.Column="1" />
</Grid>
</DataTemplate>
</sdk:ValidationSummary.HeaderTemplate>
提前致谢!