Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Export to excel : Template column
posted

I have a template column displaying the button with color and text on it. How do I export to excel? At least the text.


Template:

<Style x:Key="CreditAlertButtonTemplate" TargetType="{x:Type igDP:CellValuePresenter}">

<Setter Property="Template">

<Setter.Value>

<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">

<Button x:Name="CreditAlertButton" Content="{Binding DataItem.CreditAlert, Converter={StaticResource CreditAlertToContextConverter}}" Style="{StaticResource CircleButton}" Width="20" Height="auto"

Background ="{Binding DataItem.CreditAlert, Converter={StaticResource CreditAlertToColorConverter}}"

</ControlTemplate>

</Setter.Value>

</Setter>

</Style>


Please advise.