Setting background color on a WPF ContentView

It seems like setting the background color on a custom ContentControl has no effect. If I change the ContentControl to UserControl background color property works fine,

Is there a workaround to change the background of a content control?

Answers


For custom controls the Background needs to bound in the Template, otherwise it is not used.


Need Your Help

Select columns from 4 tables

select sql-server-2012 multiple-columns

First thing, I am totally new to SQL, saw some tutorials, vidoes, tried searching but didn't find what I needed. I know it has asked before, but I couldn't find it.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.