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
290
How do I change the content in the label of a GroupByField
posted

How do I change the content of a single GroupByFieldLabel without affecting the rest of the fields or affecting the DataItem Field?

I don't see anything I can use in the GroupByArea.AvailableFieldLabels[index]

Thanks!

Parents
No Data
Reply
  • 2426
    Verified Answer
    posted

    Hello MagellanTX,

    This is by no means a complete solution but it may point you in the right direction. You can set a style in XAML and set the ControlTemplate of the GroupByAreaFieldLabel and assign to the appropriate label in code:

            <Style x:Key="myStyle" TargetType="{x:Type igDP:GroupByAreaFieldLabel}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Button Content="Hi, I'm a Button!"/>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

                grid.GroupByArea.AvailableFieldLabels[0].Style = (Style)this.Resources["myStyle"];

    Hope that helps

Children