CheckBox and IsChecked property

2 posts, 1 answers
  1. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 08 Nov 2012 Link to this post

    Hello all,

    The 'IsChecked' property in CheckBox is of bool? type. What is it for? I would have thought that it is of bool type.

    if (checkBox.IsChecked.HasValue && checkBox.IsChecked.Value)
        checkBox.Check(true);

    Is it really worth it?

    Kind Regards,
    Stanislav Hordiyenko
  2. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 09 Nov 2012 Link to this post

    Hello Stanislav,

    When the IsThreeState property is set to true, a user can click a CheckBox to pick three possible states: checked with value of the IsChecked true, unchecked with value of the IsChecked false and indeterminate with value of the IsChecked null.

    For more information please read this article.

    Hope this helps.

    Regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top