Possible Duplicate:
C# keyword usage virtual+override vs. new
I'm trying to hide my UserControl
Content property in the following way:
public partial class Tile : UserControl
{
public new object Content
{
get { ... }
set { ... }
}
}
But when I set the Content of my UserControl it does not do anything (if I set a breakpoint it is never reached):
<my:Tile Content="The content"/>
or
<my:Tile>The content</my:Tile>
Why? How can I solve this problem?