Overriding system controls background property RRS feed

  • Question

  • I have created a user control which has border as its base.

    when the user changes the background of usercontrol, I want to change the color of the border. Inshort I want to set a property named Background in usercontrol which set the color of the border. I tried but background of the usercontrol is not affecting the border color at all.

    Code for Background property is as below:

    public brush Background
          get {return bdrControl.Background;}
          set {bdrControl.Background=value;}


    Any help would be highly appreciated.
    Saturday, November 1, 2008 10:36 AM