【发布时间】:2023-03-31 09:03:01
【问题描述】:
我有一个每次用户执行操作时都会触发的方法,在这个方法中,我想在每次调用该方法时触发图像的颜色来改变颜色/照亮。
有没有一种简单的方法来以编程方式更改图像的颜色?我看不到任何明显的方法或属性可以附加到图像上。
所以下面的方法如下,只是不知道如何设置BoxBagImage的图像颜色
void matcher_GestureMatch(Gesture gesture)
{
lblGestureMatch.Content = gesture.Name;
scoreCntr++;
boxBagImage. // <-- don't see any color or background property belonging to the image
lblScoreCntr.Content = scoreCntr;
}
【问题讨论】:
标签: c# wpf image background-color