You can change the background color of the list itself when the list is locked, simply by changing the colors used by the built-in template. You can do this through style resources. Just paste the code below into your Listbox element and the background will be transparent when you disable this field.
<ListBox.Style> <Style TargetType="{x:Type ListBox}"> <Style.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent"/> </Style.Resources> </Style> </ListBox.Style>
It is also very often required to change the background color of one element when it is highlighted and when the field loses focus. To change them, you can refer to this post: fooobar.com/questions/1394032 / ...
source share