Open Saleca opened 2 months ago
Verified this issue with Visual Studio 17.10.0 Preview 3 (8.0.20 & 8.0.0-rc.2.9530).I can repro this issue on windows machine
I wanna just add that if the shadow has a AppThemeBinding
and at runtime you change the theme of windows it fixes the issue
<Shadow
x:Key="Shadow"
Brush="{AppThemeBinding Light=Blue, Dark=Red}"/>
Run the app with the Shadow
changed, the issue is still present if you press the button, but if you change to Dark mode or Light mode on Windows the issue fixes itself. Probably not a solution but maybe helpfull for who tries to fix the issue.
sorry i didnt know "close with comment" was a button
Description
When I click a button the color changes to the color of shadow property.
Steps to Reproduce
Style
forButton
that has aShadow
property and aVisualState
forNormal
,Pressed
andReleased
definingBackgroundColor
property. (I used same color forNormal
andReleased
to create thePressed
effect)Button
onMainPage.xaml
withClicked
event. (I also triedPressed
andReleased
with the same outcome)MainPage.xaml.cs
Clicked
event change theText
of theButton
.Expected behavior:
Actual behavior:
On Styles.xaml:
On MainPage.xaml:
On MainPage.xaml.cs
Link to public reproduction project repository
https://github.com/Saleca/DebugFeatures
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
windows 10.0.17763.0
Did you find any workaround?
Removed
Shadow
from theButton
Relevant log output
No response