I want to remove "DataRecord" word from CarouselBreadcrumbControl. How can I do ? I attached to below, an image for clear explanation. Could you help please ?
Settings its Visibility property to Collapsed will hide the BreadCrumb navigator
<Style TargetType="{x:Type igDP:CarouselBreadcrumbControl}"><Setter Property="Visibility" Value="Collapsed"/></Style>
Hope this helps.
Dear Alex,
I dont want to hide th BreadCrumb navigator. I want to remove just "DataRecord 0" word from breadCrumb navigator. What can I do ?
I am not sure if there is an easier way, but you can use a converter to format the content of the BreadCrumb. In the default style for the BreadCrumb, I see that the content presenter is template bound to the Content property. You can see the default xaml files that we ship in the DefaultStyles directory and create a converter(IValueConverter) for the ContentPresenter inside the Template.
It's been a while since this was posted so I'm hoping for a nicer fix.
I have tried what was said and many variations of it but it doesn't seem to be working:
<Style TargetType="{x:Type igDP:CarouselBreadcrumb}"> <Style.Setters> <Setter Property="Content"> <Setter.Value> <DataTemplate> <Grid Background="Aqua"> <TextBlock Text="hello"></TextBlock>
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style.Setters>
</Style>
I've tried converters but it doesn't hit the convert functions in the IValueConverter
Thanks, Grant
Hi Grant,
Rather than adding a setter for the Content property, add one for the ContentTemplate. The DataContext for that template will be the Content which in this case will be a DataRecord object. From here you can have a converter that takes in this DataRecord and returns the appropriate text. I posted an example of this here.