I can't seem to figure out how to style a component in an aggregate footer. I have a Style with a DataTrigger that works just fine for the RadProgressBar in a cell, but is completely useless when applies to the footer (see picture). What would be the correct methodology?
<
telerik:GridViewDataColumn
UniqueName
=
"Status"
Header
=
"Status"
DataMemberBinding
=
"{Binding Status}"
DataType
=
"{x:Type sys:Int32}"
Width
=
"200"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle1}"
CellStyle
=
"{StaticResource GridViewCellStyle1}"
FooterCellStyle
=
"{StaticResource GridViewFooterCellStyle1}"
HeaderTextAlignment
=
"Center"
TextAlignment
=
"Center"
FooterTextAlignment
=
"Center"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
>
<
telerik:RadProgressBar
Style
=
"{StaticResource RadProgressBarStyle1}"
Value
=
"{Binding Path=TSE_Status}"
Minimum
=
"0"
Maximum
=
"100"
Grid.Column
=
"0"
Grid.Row
=
"0"
/>
<
TextBlock
Text
=
"{Binding Path=Status, StringFormat={}{0:N0}%}"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Grid.Column
=
"0"
Grid.Row
=
"0"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:AverageFunction
/>
</
telerik:GridViewDataColumn.AggregateFunctions
>
<
telerik:GridViewDataColumn.Footer
>
<
telerik:AggregateResultsList
ItemsSource
=
"{Binding}"
>
<
ItemsControl.ItemTemplate
>
<
DataTemplate
>
<
Grid
>
<
telerik:RadProgressBar
Style
=
"{StaticResource RadProgressBarStyle1}"
Value
=
"{Binding FormattedValue, Mode=OneWay}"
Minimum
=
"0"
Maximum
=
"100"
Grid.Column
=
"0"
Grid.Row
=
"0"
/>
<
TextBlock
Text
=
"{Binding FormattedValue, Mode=OneWay, StringFormat={}{0:N0}%}"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Grid.Column
=
"0"
Grid.Row
=
"0"
/>
</
Grid
>
</
DataTemplate
>
</
ItemsControl.ItemTemplate
>
</
telerik:AggregateResultsList
>
</
telerik:GridViewDataColumn.Footer
>
</
telerik:GridViewDataColumn
>