{"id":656,"date":"2016-12-01T21:20:10","date_gmt":"2016-12-01T21:20:10","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=195"},"modified":"2016-12-01T21:20:10","modified_gmt":"2016-12-01T21:20:10","slug":"checkbox","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/checkbox\/checkbox","title":{"rendered":".Checkbox"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Checkbox xaml <\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\t&lt;CheckBox Grid.Row=\"6\" Grid.Column=\"1\" Click=\"chkOp_Click\" x:Name=\"chkOp1\"&gt;OP1&lt;\/CheckBox&gt;\n\n\t&lt;CheckBox Grid.Row=\"1\" Grid.Column=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\" x:Name=\"CheckBox1\"&gt;My Checkbox&lt;\/CheckBox&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Click Handler Method For Multiple Checkboxes Example <\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\t\t\/\/*********************************************\n\t\t\/\/*********************************************\n\t\t\/\/********** OUTPUT CHECKBOX CHANGED **********\n\t\t\/\/*********************************************\n\t\t\/\/*********************************************\n\t\tprivate void chkOp_Click(object sender, RoutedEventArgs e)\n\t\t{\n\t\t\tUInt32 BitMask = 0;\n\t\t\tControl CallingControl = (Control)sender;\n\t\t\tCheckBox CallingCheckbox = (CheckBox)CallingControl;\n\t\t\tString CallingControlName = CallingControl.Name;\n\n\n\t\t\tswitch (CallingControlName)\n\t\t\t{\n\t\t\tcase \"chkOp1\":<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Checkbox states<\/h4>\n\n\n\n<p>checked (IsChecked == true)<br>unchecked (IsChecked == false)<br>indeterminate (IsChecked == null) (only available if IsThreeState property = true)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Checkbox xaml Click Handler Method For Multiple Checkboxes Example Checkbox states checked (IsChecked == true)unchecked (IsChecked == false)indeterminate (IsChecked == null) (only available if IsThreeState property = true)<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-656","post","type-post","status-publish","format-standard","hentry","category-checkbox"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=656"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/656\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}