I have public class MyControl : ContentControl
in wchich i have definitions of control and events corresponding with it.
This control works fine, but when is disabled it looks still like enabled. I would like to do something like if control.isenabled = false
then control.opacity = 0.5;
How can i do it?