I\'ve my own User Control including a few buttons and etc.
I use this code to bring that UC to screen.
You may not have declared your DependencyProperty
s correctly. You can find out full details about how to create DependencyProperty
s in the Dependency Properties Overview page on MSDN, but in short, they look something like this (taken from the linked page):
public static readonly DependencyProperty IsSpinningProperty =
DependencyProperty.Register(
"IsSpinning", typeof(Boolean),
...
);
public bool IsSpinning
{
get { return (bool)GetValue(IsSpinningProperty); }
set { SetValue(IsSpinningProperty, value); }
}
You can find further help in the DependencyProperty Class page on MSDN.