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!
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
Thank you for the reply. I was able to get the style to work but I lost the drag & drop function. My button is not visible in code so I'm not sure the best way to go here.