locked
checkbox

    Question

  • Hi,

    How can I change the background of a checkbox ? I didn't succeed to do it in the c# code.

    Thursday, October 23, 2014 6:51 PM

Answers

  • Hi sara_ss,

    What is your code?

                this.InitializeComponent();
                checkbox.Background = new SolidColorBrush() { Color = Colors.Blue };

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by sara_ss Tuesday, October 28, 2014 11:18 AM
    Friday, October 24, 2014 1:49 AM
    Moderator

All replies

  • Hi sara_ss,

    What is your code?

                this.InitializeComponent();
                checkbox.Background = new SolidColorBrush() { Color = Colors.Blue };

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by sara_ss Tuesday, October 28, 2014 11:18 AM
    Friday, October 24, 2014 1:49 AM
    Moderator
  • Thank you!
    Tuesday, October 28, 2014 1:18 PM