12:53 PM
0
A: Button weird background on over?

mm8Override the MahApps.Brushes.Gray8 resource that is used in the template: <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MahApps.Styles.Button}"> <Style.Resources> <SolidColorBrush x:Key="MahApps.Brushes.Gray8" Color="Orange" /> </Style.Resources> ...

 
Where do I see its used MahApps.Brushes.Gray8? So in future I can got where the style come/begin from?
 
mm8
You'll find the default templates on GitHub.
 
Yes but in this case how do you catch I'm using that specific property? :O where is set that Button use it on (some event I don't know) over? Wouldn't set the trigger/property a new color instead of overwrite a color variable?
note man: the -1 is not mine, so to speak :)
anyway: now over is ok, but when I "press" it, I can still see gray. Tried to override IsPressed, still no success. Also, once clicked, it seems to keep "selected", even if its not a toggle button (it should be "IsClicked" only for the moment where i click). Can you help also on this?
 
mm8
The "press" colour is defined by the MahApps.Brushes.Gray7 brush so you should define this one as well then.
 
It works, thanks! Now, why when clicked, until I click on another zone on the app, it keep "pressed"?
 
mm8
12:53 PM
I cannot reproduce this based on the information your have posted. Your question contains a Button and this one is not "pressed" when you release the mouse.
 
I've update the question adding the complete Button style: once I just click with mouse (so mouse down/up, simple click) it remains black :O
 
mm8
Still not reproducible. Try to create a blank project and copy the code you have posted here into it and you'll see what I mean.
 
Its ok for now. I'll open a new question in the future if needed. Thanks
Hey dude
I was able to create an empty project
where you can recreate this
Where can I upload it?
open the solution and just run! once you click on the button, it stay "black", doesn't return "orange" after click (and of course release it = mouse up)
it seems basic code, nothing special!
it seems the problem is "IsFocused", which remains focused once I press mouse up
if I remove it, it works as expected :)