Cells Selection Context Menu Text colors

Posted by: sk.0911749090 on 27 June 2018, 9:50 pm EST

    • Post Options:
    • Link

    Posted 27 June 2018, 9:50 pm EST - Updated 29 September 2022, 6:09 am EST

    Hello,

    there is a way how to manipulate with text color for context menu that appears when cells are selected in GcSpreadSheet? Please see pictures. In our project when we change the theme (we are using Actipro Software fot themes) from light to dark theme so then the text in context menu also changes from black to white, what is not good visible in context menu with background white.

  • Posted 28 June 2018, 9:04 pm EST

    Hello,

    I have asked the development team to look into this isssue further. I will let you know as soon as I get an update on this.

    The tracking id for this issue is 260113.

    Thanks,

    Deepak Sharma

  • Posted 10 July 2018, 6:31 am EST

    Thanks. There is some new about this isuue?

  • Posted 10 July 2018, 4:56 pm EST

    Hello,

    We have not got any update on this issue yet. I have asked for the same from the development team. I will let you know as soon as I get any news on this.

    Thanks,

    Deepak Sharma

  • Posted 11 September 2018, 9:57 pm EST

    Hi, do you know if issue with ID 260113 is solved in v11?

  • Posted 12 September 2018, 5:08 pm EST

    Hello,

    This issue is still with the development team, I have asked the dev team for an update on this. I will let you know as soon as hear from them.

    Thanks,

    Deepak Sharma

  • Posted 17 January 2019, 9:18 pm EST

    Hello,

    we have now version 12 but the issue is still there. Are you planning to fix in some further version?

  • Posted 20 January 2019, 6:23 pm EST

    Hello,

    This case is still with the development team. I have asked the dev team to provide an update at earliest. I will inform you as soon as I hear anything on this.

    Thanks,

    Deepak Sharma

  • Posted 9 May 2019, 7:20 pm EST

    Hello,

    As per the development team you can reference the below XAML code and write your own template:

    
    <Style TargetType="local:DragFillContextMenuItem">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="local:DragFillContextMenuItem">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CheckHoverStates">
                                    <VisualState x:Name="Normal">
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_MouseOverBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="0" />
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="0" />
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_MouseOverBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="0" />
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Checked">
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_MouseOverBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="0" />
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                                            <ColorAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Duration="0" To="#FFFFBD69" />
                                            <ColorAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Duration="0" To="#FFFFAB3F" />
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="CheckedAndMouseOver">
                                        <Storyboard>
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_MouseOverBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                                            <DoubleAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1" />
                                            <ColorAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Duration="0" To="#FFFFAB3F" />
                                            <ColorAnimation Storyboard.TargetName="DragFillContextMenuItem_CheckedBackground" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Duration="0" To="#FFFB8C3C" />
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Rectangle Grid.ColumnSpan="2" />
                            <Rectangle Fill="#FFEFEFEF" />
                            <Rectangle Grid.ColumnSpan="2" x:Name="DragFillContextMenuItem_MouseOverBackground" Fill="#FFFFE7A2" Stroke="#FFFFBD69" Margin="1" Opacity="0" />
                            <Grid Margin="3,2,2,2">
                                <Rectangle Fill="#FFFFBD69" Stroke="#FFFFAB3F" x:Name="DragFillContextMenuItem_CheckedBackground" Opacity="0" />
                                <RadioButton Margin="3" Padding="0" IsHitTestVisible="False" IsChecked="{Binding RelativeSource={RelativeSource Mode=TemplatedParent }, Path=IsChecked}" />
                            </Grid>
                            <TextBlock Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3, 0, 6, 0" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent }, Path=Text }" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    
    

    Hope it helps!

    Thanks,

    Deepak Sharma

  • Posted 7 November 2022, 8:25 pm EST

    Hello, I have the same issue as reported above. There is already some solution? Or have to follow your workaround with our own template?

  • Posted 8 November 2022, 9:15 pm EST

    Hi,

    You need to implement your own template to customize the DragFill MenuItems.

    You can implement the workaround provided earlier in this thread. If you will face any issues while implementing this template. You can ask here. We will try to respond ASAP.

    Best Regards,

    Nitin

  • Posted 8 November 2022, 9:17 pm EST

    Hello, in the meantime I re-templated the style to fit my requirement and is working fine. Thanks!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels