Brush_Control.BrushData.SetValue(BrushClass.BrushProperty, 5);
public Brush BrushData
{
get { return (Brush)GetValue(BrushProperty); }
set { SetValue(BrushProperty, value); }
}
<ControlBrush:BrushClass
x:Name="Brush_Control"
BrushData="{Binding ElementName=canvas1,Path=Background}">
</ControlBrush:BrushClass>