I could only find xaml specifiy solutions to this problem using TextElement.Foreground="..."
.
But I'd like to set the Foreground of a ContentPresenter in C#.
Can you tell me how that works?
Thank you very much!
Asked
Active
Viewed 480 times
1

Noel Widmer
- 4,444
- 9
- 45
- 69
-
http://stackoverflow.com/questions/249671/changing-the-foreground-colour-of-a-contentpresenter-in-a-listbox – malkam Feb 04 '15 at 10:38
-
@malkam Thanks, but this is an xaml solution as well... – Noel Widmer Feb 04 '15 at 10:39
-
Have you chacked attahed properties out? https://msdn.microsoft.com/en-us/library/ms749011%28v=vs.110%29.aspx – Alex K. Feb 04 '15 at 10:42