I have a question about Custom UserControl binding properties. To be more specific, I've created a simple class like this one.
public partial class LinearGradBrush : UserControl
{
public LinearGradBrush()
{
InitializeComponent();
}
class LinearGradBrushProp : DependencyObject
{
public static DependencyProperty _background;
static void BackgroundBrush()
{
_background = DependencyProperty.Register("_background", typeof(Brush), typeof(LinearGradBrushProp));
}
[Description("CuloareBG"), Category("Z")]
public Brush Background
{
get { return (Brush)GetValue(_background); }
set { SetValue(_background, value); }
}
}
}
After I've searched all over the Internet I couldn't find the right answer so please, I want to ask you why I don't see in my DesignView the category Z with a brush in it.

New Topic/Question
Reply



MultiQuote



|