Hi,
first let's assume, there is a property like:
public Settings Settings {get; set;}
somewhere in the
DataContext
of the
ListBox
control.
This property should be defined where the
TagValueOfPriority1
property is defined.
Then you could write:
<Button.Background>
<SolidColorBrush x:Name="ButtonBrush" Color="{Binding Path=DataContext.Settings.band1TextColor", RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}} />
</Button.Background>
Hope this helps,
Thomas.