I want to use dependency property which will represent ICarRepository
instance.
So I've found this post and based on acc. answer I tried with my example
public static readonly DependencyProperty RepositoryProperty = DependencyProperty.Register(
null,
typeof(ICarRepository ),
typeof(TreassureControl),
**new PropertyMetadata(??????)** what to put here?
);
public ICarRepository Repository
{
get { return (ICarRepository)GetValue(RepositoryProperty); }
set { SetValue(RepositoryProperty, value); }
}