MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

ToolBar Overflow Button background

Open WarpSpeed99 opened this issue 1 year ago • 2 comments

Hello everybody, this is my first feature request so please be kind if I am writing something stupid.

I have noticed that in using the ToolBar, if I change the background the overflow button background does not change because in the style definition, the background property (for both vertical and horiziontal overflow buttons) is defined as

<Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.ToolBar.Background}" />

A workaround to this is to define this property as

<Setter Property="Background" Value="{Binding Background, RelativeSource={RelativeSource AncestorType=ToolBar}}" />

In this way, any background colo I will set to the toolbar (or if I do not explicitly set one) the overflow button background will be "consistent" with the rest of the toolbar.

I hope that what I am requested is not stupid (and in this case I apologize).

thanks in advance for Your attention Kind Regards Fabio

WarpSpeed99 avatar Oct 14 '24 16:10 WarpSpeed99