Greetings Infragistics!
I am having a problem with hiding the Sigma character on columns who have summary rows enabled. My problem is that I can't do it.
I have the summary row enabled because my customer requires sums across all dollar columns. I have a custom style for the summary row and I have added the summary operand tags in the individual columns.
Everything is working fine, except that the grid refuses to hide the Sigma character no matter what I try. I've tried overriding the styles listed at http://help.infragistics.com/Help/Doc/Silverlight/2012.1/CLR4.0/html/Designers_Guide_Styling_Points_for_xamGrid.html with no luck, and I've searched all of the properties that I can think of and still no luck.
I'd sure appreciate your help!
Thank You,
William Raiford
Hello William,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Stefan, that did the trick! Thank you very much!!
For anyone out there in internet land who wants to avoid the process of picking out which resources are required, here is a copy of my final xaml necessary (the formatting is apparently hideous but you can copy and paste into notepad then into VS):
[code]
<!--Required for override of Default XamGrid HeaderCellControl--> <LinearGradientBrush x:Key="HeaderNormalBackgroundBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFfefefe"/> <GradientStop Offset="0.5" Color="#FFeff1f2"/> <GradientStop Offset="1" Color="#FFd0d6db"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <SolidColorBrush x:Key="HeaderNormalForegroundBrush" Color="#FF444444"/> <SolidColorBrush x:Key="HeaderHoverForegroundBrush" Color="#FF444444"/> <LinearGradientBrush x:Key="HeaderHoverBackgroundBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFfefefe"/> <GradientStop Offset="0.35" Color="#FFf4f9fc"/> <GradientStop Offset="1" Color="#FFa9cae6"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <SolidColorBrush x:Key="HeaderNormalBorderBrush" Color="#FFC9CACA"/> <SolidColorBrush x:Key="HeaderMovingBackgroundBrush" Color="#FF000000"/> <LinearGradientBrush x:Key="HiddenColumnIndicatorBrush" EndPoint="-2,17" StartPoint="-7,12" SpreadMethod="Repeat" MappingMode="Absolute"> <GradientStop Color="#FF708393" Offset="0.499"/> <GradientStop Color="#FFe9eced" Offset="0.500"/> </LinearGradientBrush> <LinearGradientBrush x:Key="PopupBackgroundBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFFFFFFF"/> <GradientStop Offset="1" Color="#FFFEFEFE"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <SolidColorBrush x:Key="FixedBorderFillBrush" Color="#FF8399A9"/> <SolidColorBrush x:Key="FocusBrush" Color="#FF6DBDD1"/> <SolidColorBrush x:Key="FilterSelectionItemBackgroundBrush" Color="#FFCAE4ED"/> <SolidColorBrush x:Key="FilterSelectionItemBorderBrush" Color="#FF6DBDD1"/> <SolidColorBrush x:Key="FilterSelectionVerticalBrush" Color="#FFF2F4F5"/> <LinearGradientBrush x:Key="FilterCustomDialogBackgroundBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFFFFFFF"/> <GradientStop Offset="1" Color="#FFeff1f2"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <LinearGradientBrush x:Key="GridBorderBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFa3aeb9"/> <GradientStop Offset="0.37" Color="#FF8399a9"/> <GradientStop Offset="0.370" Color="#FF718597"/> <GradientStop Offset="1" Color="#FF617583"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <Style x:Key="ColumnChooserDialogBtn" TargetType="Button"> <Setter Property="Background" Value="{StaticResource FilterSelectionItemBackgroundBrush}"/> <Setter Property="BorderBrush" Value="{StaticResource FilterSelectionItemBorderBrush}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid Background="Transparent"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal"/> <VisualState x:Name="MouseOver"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Bd" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Pressed"/> <VisualState x:Name="Disabled"/> </VisualStateGroup> <VisualStateGroup x:Name="FocusStates"> <VisualState x:Name="Focused"/> <VisualState x:Name="Unfocused"/> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Grid.ColumnDefinitions> <ColumnDefinition Width="24"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Rectangle x:Name="Bd" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" RadiusX="1" RadiusY="1" Visibility="Collapsed" Grid.ColumnSpan="2"/> <Grid x:Name="columnChooserIcon" Width="14" Height="14" VerticalAlignment="Center" HorizontalAlignment="Center"> <Path Fill="{StaticResource HeaderNormalBackgroundBrush}" Data="M 3,0 C3,0 3,4 3,4 3,4 0,4 0,4 0,4 0,14 0,14 0,14 7,14 7,14 7,14 7,10 7,10 7,10 14,10 14,10 14,10 14,0 14,0 14,0 3,0 3,0 z"/> <Path Fill="{StaticResource GridBorderBrush}" Data="M 1,5 C1,5 6,5 6,5 6,5 6,7 6,7 6,7 1,7 1,7 1,7 1,5 1,5 zM 1,8 C1,8 6,8 6,8 6,8 6,10 6,10 6,10 1,10 1,10 1,10 1,8 1,8 zM 1,11 C1,11 6,11 6,11 6,11 6,13 6,13 6,13 1,13 1,13 1,13 1,11 1,11 zM 7,7 C7,7 13,7 13,7 13,7 13,9 13,9 13,9 7,9 7,9 7,9 7,7 7,7 zM 7,4 C7,4 13,4 13,4 13,4 13,6 13,6 13,6 7,6 7,6 7,6 7,4 7,4 zM 4,1 C4,1 13,1 13,1 13,1 13,3 13,3 13,3 4,3 4,3 4,3 4,1 4,1 zM 3,0 C3,0 3,4 3,4 3,4 0,4 0,4 0,4 0,14 0,14 0,14 7,14 7,14 7,14 7,10 7,10 7,10 14,10 14,10 14,10 14,0 14,0 14,0 3,0 3,0 z"/> <Grid Margin="0,0,0,1"> <Border Width="6" Height="3" Margin="0,0,2,2" BorderBrush="Black" BorderThickness="0,0,1,1" CornerRadius="0,0,2,0"/> <Path Width="5" Height="3" Margin="3,1,0,0" VerticalAlignment="Top" Data="M 0,2 C0,2 0,3 0,3 0,3 5,3 5,3 5,3 5,2 5,2 5,2 4,2 4,2 4,2 4,1 4,1 4,1 3,1 3,1 3,1 3,0 3,0 3,0 2,0 2,0 2,0 2,1 2,1 2,1 1,1 1,1 1,1 1,2 1,2 1,2 0,2 0,2 z" Fill="Black" Stretch="Fill"/> </Grid> </Grid> <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Grid.Column="1"/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> <LinearGradientBrush x:Key="HeaderCellGlyphBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFa3aeb9"/> <GradientStop Offset="0.37" Color="#FF8399a9"/> <GradientStop Offset="0.370" Color="#FF718597"/> <GradientStop Offset="1" Color="#FF617583"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <LinearGradientBrush x:Key="FilterOperatorGlyphBrush" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Offset="0" Color="#FFa3aeb9"/> <GradientStop Offset="0.37" Color="#FF8399a9"/> <GradientStop Offset="0.370" Color="#FF718597"/> <GradientStop Offset="1" Color="#FF617583"/> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> <SolidColorBrush x:Key="MoveIndicatorBrush" Color="#FF6DBDD1"/> <SolidColorBrush x:Key="ResizeIndicatorBrush" Color="#59000000"/>
<!--Default XamGrid HeaderCellControl (Override default to remove sigma) --> <Style TargetType="igPrim:HeaderCellControl" x:Key="NoSigmaHeaderStyle"> <Setter Property="FontSize" Value="11" /> <Setter Property="Background" Value="{StaticResource HeaderNormalBackgroundBrush}" /> <Setter Property="Foreground" Value="{StaticResource HeaderNormalForegroundBrush}"/> <Setter Property="BorderBrush" Value="{StaticResource HeaderNormalBorderBrush}"/> <Setter Property="BorderThickness" Value="0,0,1,1"/> <Setter Property="HorizontalContentAlignment" Value="Left"/> <Setter Property="Padding" Value="8,4"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="igPrim:HeaderCellControl"> <igPrim:SimpleClickableContainer x:Name="NormalFill" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> <igBase:Commanding.Commands> <igBase:CommandSourceCollection> <ig:XamGridColumnCommandSource CommandType="Select" EventName="SimpleClick"/> <ig:XamGridColumnCommandSource CommandType="SortToggle" EventName="SimpleClick"/> </igBase:CommandSourceCollection> </igBase:Commanding.Commands> <Grid x:Name="Bd"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition ></ColumnDefinition> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <igPrim:HeaderDropDownControl Padding="0" Visibility="Collapsed" x:Name="HiddenLeftAdjacentColumnsElement" Grid.Column="0"> <ToolTipService.ToolTip> <ToolTip Content="{Binding Cell.Column.ColumnLayout.Grid.ColumnChooserSettings.HiddenColumnIndicatorToolTipText, RelativeSource={RelativeSource TemplatedParent}}"/> </ToolTipService.ToolTip> <igPrim:HeaderDropDownControl.OpenButtonContent> <Rectangle Fill="{StaticResource HiddenColumnIndicatorBrush}" Width="10" HorizontalAlignment="Left"/> </igPrim:HeaderDropDownControl.OpenButtonContent> <Grid> <Border x:Name="ColumnChooserBd" MaxHeight="200" Background="{StaticResource PopupBackgroundBrush}" BorderBrush="{StaticResource FocusBrush}" BorderThickness="1" CornerRadius="3" Padding="1"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition MinWidth="24" MaxWidth="24"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.RowSpan="2" Background="{StaticResource FilterSelectionVerticalBrush}"/> <ListBox DataContext="{x:Null}" ItemsSource="{Binding Cell.ColumnsHiddenToLeft, RelativeSource={RelativeSource TemplatedParent}}" BorderThickness="0" Padding="0" Margin="0" Grid.ColumnSpan="2"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding DisplayNameResolved}"/> </DataTemplate> </ListBox.ItemTemplate> <igBase:Commanding.Commands> <igBase:CommandSourceCollection> <ig:XamGridColumnCommandSource ParameterBinding="{Binding SelectedItem}" EventName="SelectionChanged" CommandType="Show"/> <igPrim:XamGridPopupCommandSource CommandType="ClosePopup" EventName="SelectionChanged"/> </igBase:CommandSourceCollection> </igBase:Commanding.Commands> </ListBox> <StackPanel Background="Transparent" Grid.Row="1" Grid.ColumnSpan="2"> <Rectangle x:Name="separator" Height="1" Fill="{StaticResource FocusBrush}"/> <Button Margin="0,1,0,0" Style="{StaticResource ColumnChooserDialogBtn}"> <igBase:Commanding.Commands> <igBase:CommandSourceCollection> <ig:XamGridColumnChooserCommandSource CommandType="Open" EventName="Click"/> <igPrim:XamGridPopupCommandSource CommandType="ClosePopup" EventName="Click"/> </igBase:CommandSourceCollection> </igBase:Commanding.Commands> <TextBlock Text="{Binding Cell.Column.ColumnLayout.Grid.ColumnChooserSettings.ColumnChooserDisplayText, RelativeSource={RelativeSource TemplatedParent}}" Foreground="{StaticResource HeaderNormalForegroundBrush}"/> </Button> </StackPanel> </Grid> </Border> </Grid> </igPrim:HeaderDropDownControl> <ContentPresenter Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> <Grid Grid.Column="2" x:Name="SortAndPinIndicators" HorizontalAlignment="Right" Margin="0,0,5,0" Background="{TemplateBinding Background}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Path x:Name="SortedDescending" HorizontalAlignment="Right" Margin="3,0" VerticalAlignment="Center" Data="M 0 0 L 4 4 L 8 0 Z" Fill="{StaticResource HeaderCellGlyphBrush}" Visibility="Collapsed"/> <Path x:Name="SortedAscending" HorizontalAlignment="Right" Margin="3,0" VerticalAlignment="Center" Data="M0,4 L8,4 L4,0 z" Fill="{StaticResource HeaderCellGlyphBrush}" Visibility="Collapsed"/> <Grid x:Name="PinnedIndicator" Grid.Column="3" Background="Transparent" Cursor="Hand" Visibility="Collapsed"> <Path Width="7" Height="10" Margin="3,0" Data="M 6,4 C6,4 8,4 8,4 8,4 8,9 8,9 8,9 6,9 6,9 6,9 6,4 6,4 zM 5,3 C5,3 5,9 5,9 5,9 4,9 4,9 4,9 4,10 4,10 4,10 7,10 7,10 7,10 7,13 7,13 7,13 8,13 8,13 8,13 8,10 8,10 8,10 11,10 11,10 11,10 11,9 11,9 11,9 10,9 10,9 10,9 10,3 10,3 10,3 5,3 5,3 z" Fill="{StaticResource HeaderCellGlyphBrush}" Stretch="Fill"/> <igBase:Commanding.Command> <ig:XamGridColumnCommandSource CommandType="Unfix" EventName="MouseLeftButtonDown"> </ig:XamGridColumnCommandSource> </igBase:Commanding.Command> </Grid> <Grid x:Name="UnpinnedIndicator" Grid.Column="3" Background="Transparent" Cursor="Hand" Visibility="Collapsed"> <Path Width="10" Height="7" Margin="3,0" Data="M 12,7 C12,7 12,9 12,9 12,9 7,9 7,9 7,9 7,7 7,7 7,7 12,7 12,7 zM 13,6 C13,6 7,6 7,6 7,6 7,5 7,5 7,5 6,5 6,5 6,5 6,8 6,8 6,8 3,8 3,8 3,8 3,9 3,9 3,9 6,9 6,9 6,9 6,12 6,12 6,12 7,12 7,12 7,12 7,11 7,11 7,11 13,11 13,11 13,11 13,6 13,6 z" Fill="{StaticResource HeaderCellGlyphBrush}" Stretch="Fill"/> <igBase:Commanding.Command> <ig:XamGridColumnCommandSource CommandType="Fix" EventName="MouseLeftButtonDown"> </ig:XamGridColumnCommandSource> </igBase:Commanding.Command> </Grid> <igPrim:HeaderDropDownControl x:Name="SummaryHeaderDropDownControl" Background="Transparent" Visibility="Collapsed" Grid.Column="1"> <igPrim:HeaderDropDownControl.OpenButtonContent> <Path Data="M 0,0 C0,0 5,0 5,0 5,0 5,1 5,1 5,1 2,1 2,1 2,1 4,3.5 4,3.5 4,3.5 2,6 2,6 2,6 5,6 5,6 5,6 5,7 5,7 5,7 0,7 0,7 0,7 0,6 0,6 0,6 2,3.5625 2,3.5625 2,3.5625 0,1 0,1 0,1 0,0 0,0 z" Fill="{StaticResource HeaderCellGlyphBrush}" Width="5" Height="7" x:Name="summarySigmaIcon" StrokeThickness="0"/> </igPrim:HeaderDropDownControl.OpenButtonContent> <igPrim:SummarySelectionControl Cell="{Binding Path=Cell,RelativeSource={RelativeSource TemplatedParent}}"></igPrim:SummarySelectionControl> </igPrim:HeaderDropDownControl> <igPrim:HeaderDropDownControl AllowResizing="true" x:Name="FilterHeaderDropDownControl" Visibility="Collapsed" Background="Transparent" Grid.Column="2"> <igPrim:HeaderDropDownControl.OpenButtonContent> <Grid Width="11" Height="8"> <Path x:Name="clearFilterGlyphStroke" Width="11" Height="8" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,0 C0,0 11,0 11,0 11,0 7,4 7,4 7,4 7,8 7,8 7,8 4,8 4,8 4,8 4,4 4,4 4,4 0,0 0,0 z" Fill="{StaticResource HeaderCellGlyphBrush}" Stretch="Fill"/> <Path x:Name="clearFilterGlyphFill" Width="7" Height="6" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,0 C0,0 7,0 7,0 7,0 4,3 4,3 4,3 4,6 4,6 4,6 3,6 3,6 3,6 3,3 3,3 3,3 0,0 0,0 z" Fill="#FFFFFFFF" Stretch="Fill"/> <Path x:Name="redFilterGlyphFill" Width="7" Height="6" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,0 C0,0 7,0 7,0 7,0 4,3 4,3 4,3 4,6 4,6 4,6 3,6 3,6 3,6 3,3 3,3 3,3 0,0 0,0 z" Fill="{StaticResource FocusBrush}" Stretch="Fill" Visibility="Collapsed" /> </Grid> </igPrim:HeaderDropDownControl.OpenButtonContent> <igPrim:FilterSelectorControl Height="370" Width="250" MinWidth="250" MinHeight="370" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Cell="{Binding Path=Cell,RelativeSource={RelativeSource TemplatedParent}}"></igPrim:FilterSelectorControl> </igPrim:HeaderDropDownControl>
<Grid x:Name="VisibilityToggleButton" Background="Transparent" Width="14" Visibility="Collapsed" Grid.Column="4" Cursor="Hand"> <Path Width="8" Height="7" Data="M 7,0 C7,0 7,1 7,1 7,1 6,1 6,1 6,1 6,2 6,2 6,2 5,2 5,2 5,2 5,3 5,3 5,3 4,3 4,3 4,3 4,4 4,4 4,4 5,4 5,4 5,4 5,5 5,5 5,5 6,5 6,5 6,5 6,6 6,6 6,6 7,6 7,6 7,6 7,7 7,7 7,7 8,7 8,7 8,7 8,5 8,5 8,5 7,5 7,5 7,5 7,4 7,4 7,4 6,4 6,4 6,4 6,3 6,3 6,3 7,3 7,3 7,3 7,2 7,2 7,2 8,2 8,2 8,2 8,0 8,0 8,0 7,0 7,0 zM 0,3 C0,3 0,4 0,4 0,4 1,4 1,4 1,4 1,5 1,5 1,5 2,5 2,5 2,5 2,6 2,6 2,6 3,6 3,6 3,6 3,7 3,7 3,7 4,7 4,7 4,7 4,6 4,6 4,6 4,5 4,5 4,5 3,5 3,5 3,5 3,4 3,4 3,4 2,4 2,4 2,4 2,3 2,3 2,3 3,3 3,3 3,3 3,2 3,2 3,2 4,2 4,2 4,2 4,1 4,1 4,1 4,0 4,0 4,0 3,0 3,0 3,0 3,1 3,1 3,1 2,1 2,1 2,1 2,2 2,2 2,2 1,2 1,2 1,2 1,3 1,3 1,3 0,3 0,3 z" Fill="{StaticResource HeaderCellGlyphBrush}"/> <igBase:Commanding.Command> <ig:XamGridColumnCommandSource CommandType="Hide" EventName="MouseLeftButtonDown"/> </igBase:Commanding.Command> </Grid>
</Grid> <igPrim:HeaderDropDownControl Padding="0" Visibility="Collapsed" x:Name="HiddenRightAdjacentColumnsElement" Grid.Column="4"> <ToolTipService.ToolTip> <ToolTip Content="{Binding Cell.Column.ColumnLayout.Grid.ColumnChooserSettings.HiddenColumnIndicatorToolTipText, RelativeSource={RelativeSource TemplatedParent}}"/> </ToolTipService.ToolTip> <igPrim:HeaderDropDownControl.OpenButtonContent> <Rectangle Fill="{StaticResource HiddenColumnIndicatorBrush}" Width="10" HorizontalAlignment="Right"/> </igPrim:HeaderDropDownControl.OpenButtonContent> <Grid> <Border x:Name="ColumnChooserBdRight" MaxHeight="200" Background="{StaticResource PopupBackgroundBrush}" BorderBrush="{StaticResource FocusBrush}" BorderThickness="1" CornerRadius="3" Padding="1"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition MinWidth="24" MaxWidth="24"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Border Grid.RowSpan="2" Background="{StaticResource FilterSelectionVerticalBrush}"/> <ListBox DataContext="{x:Null}" ItemsSource="{Binding Cell.ColumnsHiddenToRight, RelativeSource={RelativeSource TemplatedParent}}" BorderThickness="0" Padding="0" Margin="0" Grid.ColumnSpan="2"> <ListBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding DisplayNameResolved}"/> </DataTemplate> </ListBox.ItemTemplate> <igBase:Commanding.Commands> <igBase:CommandSourceCollection> <ig:XamGridColumnCommandSource ParameterBinding="{Binding SelectedItem}" EventName="SelectionChanged" CommandType="Show"/> <igPrim:XamGridPopupCommandSource CommandType="ClosePopup" EventName="SelectionChanged"/> </igBase:CommandSourceCollection> </igBase:Commanding.Commands> </ListBox> <StackPanel Background="Transparent" Grid.Row="1" Grid.ColumnSpan="2"> <Rectangle x:Name="separatorRight" Height="1" Fill="{StaticResource FocusBrush}"/> <Button Margin="0,1,0,0" Style="{StaticResource ColumnChooserDialogBtn}"> <igBase:Commanding.Commands> <igBase:CommandSourceCollection> <ig:XamGridColumnChooserCommandSource CommandType="Open" EventName="Click"/> <igPrim:XamGridPopupCommandSource CommandType="ClosePopup" EventName="Click"/> </igBase:CommandSourceCollection> </igBase:Commanding.Commands> <TextBlock Text="{Binding Cell.Column.ColumnLayout.Grid.ColumnChooserSettings.ColumnChooserDisplayText, RelativeSource={RelativeSource TemplatedParent}}" Foreground="{StaticResource HeaderNormalForegroundBrush}"/> </Button>
</StackPanel> </Grid> </Border> </Grid> </igPrim:HeaderDropDownControl> </Grid> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal"/> <VisualState x:Name="MouseOver"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="Bd" Storyboard.TargetProperty="Background"> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{StaticResource HeaderHoverBackgroundBrush}"> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="SortAndPinIndicators" Storyboard.TargetProperty="Background"> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{StaticResource HeaderHoverBackgroundBrush}"> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Moving"> <Storyboard> <DoubleAnimation BeginTime="00:00:00" Duration="00:00:00" Storyboard.TargetName="NormalFill" Storyboard.TargetProperty="Opacity" To=".4" /> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetName="Bd" Storyboard.TargetProperty="Background"> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{StaticResource HeaderMovingBackgroundBrush}"> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="FixedIndicatorStates"> <VisualState x:Name="NotFixable"/> <VisualState x:Name="Pinned"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PinnedIndicator" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Unpinned"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="UnpinnedIndicator" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <!--<VisualStateGroup x:Name="SummaryStates"> <VisualState x:Name="Summable"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SummaryHeaderDropDownControl" Storyboard.TargetProperty="(UIElement.Visibility)"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Unsummable"> </VisualState> </VisualStateGroup>--> <VisualStateGroup x:Name="SortedStates"> <VisualState x:Name="NotSorted"> </VisualState> <VisualState x:Name="Ascending"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SortedAscending" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Descending"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="SortedDescending" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="HeaderFilterStates"> <VisualState x:Name="NoIcon"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FilterHeaderDropDownControl" Storyboard.TargetProperty="(UIElement.Visibility)"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Collapsed</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="FilterIcon"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="FilterHeaderDropDownControl" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="HeaderFilterAppliedStates"> <VisualState x:Name="NotFiltered"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="clearFilterGlyphFill" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="redFilterGlyphFill" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Collapsed</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Filtered"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="clearFilterGlyphFill" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Collapsed</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="redFilterGlyphFill" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="VisibilityIconStates"> <VisualState x:Name="VisibilityIconHidden"/> <VisualState x:Name="VisibilityIconVisible"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="VisibilityToggleButton" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="LeftAdjacentColumnHiddenStates"> <VisualState x:Name="NoHiddenLeftAdjacentColumns"/> <VisualState x:Name="HiddenLeftAdjacentColumns"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HiddenLeftAdjacentColumnsElement" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> <VisualStateGroup x:Name="RightAdjacentColumnHiddenStates"> <VisualState x:Name="NoHiddenRightAdjacentColumns"/> <VisualState x:Name="LastVisibleColumnWithHiddenRightAdjacentColumns"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="HiddenRightAdjacentColumnsElement" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="00:00:00"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> </igPrim:SimpleClickableContainer> </ControlTemplate> </Setter.Value> </Setter> </Style>
[\code]
Thank you for your post. I have been looking into it and I can suggest you copy the default Style of the HeaderCellControl and the Resources used in it from here by default:
C:\Program Files (x86)\Infragistics\2013.2\Silverlight\DefaultStyles\XamGrid\generic.xaml file
Once you did this you can comment a VisualState called “SummaryStates”, which controls the “SummaryHeaderDropDownControl” element visibility. The control is collapsed by default. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Hello again!
I am just writing again to see if there is any update on this. Any help would be appreciated!