How can I make a WPF Image disableable?

前端 未结 5 1190
野趣味
野趣味 2021-01-21 04:54

I need an Image that is grayed out when disabled (IsEnabled=False). A grayed out version of the image can be produced by reading the BitmapImage into a FormatConvertedBitmap whi

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 05:05

    Have a look at this link

    EDIT: Or this one (all you need is the AutoGreyableImage class)

提交回复
热议问题