MenuItemAdv Background not change

Hello,

When I want to change the background color of a MenuItemAdv it doesn't work.

Sample:

<syncfusion:MenuItemAdv Header="{x:Static resources:UC_Ressources.Operation}" Background="Red" HorizontalAlignment="Center" VerticalAlignment="Center">


6 Replies

SA Sulthan Amanu Syncfusion Team February 9, 2022 01:59 PM UTC

Hi Brief,


We are able to reproduce are reported "MenuItemAdv Background not change" issue and we need some more time to validate the reported issue on our end. So we’ll provide the further details on 10th February 2022. We appreciate your patience until then.


Regards,

Sulthan amanu



SA Sulthan Amanu Syncfusion Team February 10, 2022 10:08 AM UTC

Hi Brief,


We should be able to reproduce the problem at our end. We have considered this a bug “MenuItemAdv background property not working properly" and logged a defect report on our end. We’ll provide the patch file for the reported issue on February 24th, 2022. We appreciate your patience until then.


Please follow the below feedback link for further details.


Feedback link


https://www.syncfusion.com/feedback/32566/menuitemadv-background-property-not-working-properly


Please let us know if you need any further assistance.


Regards,

Sulthan amanu



SA Sulthan Amanu Syncfusion Team February 24, 2022 09:31 PM UTC

Hi Brief,


Sorry for the inconvenience caused


We are checked you are reporting a "MenuItemAdv background property not working properly" issue. And we need to ensure the stability of the fix, We’ll provide the patch file for the reported issue on March 1st, 2022. We appreciate your patience until then.


Regards,
Sulthan amanu



SA Sulthan Amanu Syncfusion Team March 2, 2022 09:38 AM UTC

Hi  Brief,


We are sorry to inform you that, we are still facing complexities in some cases to fix this generically. Can you please confirm whether you are using our theme support or just using the default rendering of our control. Based on this, we will check and provide a solution asap.


Please find the link below for documentation on how to apply the theme to controls.

UG - https://help.syncfusion.com/wpf/themes/skin-manager


In the meantime, we are checking this with high priority about the possible solutions to fix this for all the cases.


Regards,
Sulthan amanu




BF BRIEF Frederic March 2, 2022 07:27 PM UTC

Hi Sulthan,


I want to be able to have a presentation like this.



Regards,



SA Sulthan Amanu Syncfusion Team March 3, 2022 11:33 PM UTC

Hi Brief,


Due to some difficulties in fixing this at the control level, we have achieved your requirement at the application level. We have explained below what we have done in the sample and how you can integrate this workaround in your application.


We have created a custom style for MenuItemAdv. You can refer to the sample for the complete style. You can copy and paste this into your application.


We have provided two keys MenuItemAdvBorderBrushPointerOver and MenuItemAdvBackgroundPointerOver. If needed you can customize them based on your application.


Please find the complete sample.



Code Snippets:


 

Apply the style in MenuItemAdv

 

 

Style

 

   <Border x:Name="MenuItemBorder" BorderBrush="Transparent" Background="{TemplateBinding Background}" Grid.ColumnSpan="5"/>

 

Brushes

 

<SolidColorBrush x:Key="MenuItemAdvBackgroundPointerOver" Color="LightGreen"/> <SolidColorBrush x:Key="MenuItemAdvBorderBrushPointerOver" Color="OrangeRed"/>

 

Style Trigger

 

<Trigger Property="IsMouseOver" Value="True">

                                <Setter Property="BorderThickness" Value="2" TargetName="MenuItemBorder"/>

                                <Setter Property="BorderBrush" Value="{DynamicResource MenuItemAdvBorderBrushPointerOver}" TargetName="MenuItemBorder"/>

                                <Setter Property="Background" Value="{DynamicResource MenuItemAdvBackgroundPointerOver }" TargetName="MenuItemBorder"/>

                            </Trigger>

 


Regards,

Sulthan amanu


Attachment: Style_MenuAdv_1015fb49.zip

Loader.
Up arrow icon