views:

220

answers:

1
+2  A: 

Just add Foreground="{TemplateBinding TextElement.Foreground}" to the elements in the template like this

<DataTemplate DataType="{x:Type l:City}">
    <Expander 
        Header="Click to Expand" 
        Foreground="{TemplateBinding TextElement.Foreground}"
        >
        <TextBlock 
            Text="{Binding Name}" 
            Foreground="{TemplateBinding TextElement.Foreground}"
            />
    </Expander>
</DataTemplate>
Cameron MacFarland
This is what i was looking for. Thanks
Ngm