{"id":881,"date":"2019-06-20T14:52:13","date_gmt":"2019-06-20T13:52:13","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=881"},"modified":"2019-06-20T14:52:13","modified_gmt":"2019-06-20T13:52:13","slug":"page-objects","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/windows-and-pages\/pages\/page-objects","title":{"rendered":"Page Objects"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Show \/ Hide<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\t\/\/Hide it\n\tMyPageObject.Visibility = Visibility.Collapsed;\n\t\/\/Show it\n\tMyPageObject.Visibility = Visibility.Visible;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Enable (allo user to interact with)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\tMyPageObject.IsEnabled = false;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Change XML Properties<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tmyImage.SetValue(Canvas.LeftProperty, \"10\");\n\tmyImage.SetValue(Canvas.TopProperty, \"10\");<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Get XAML element by name stored in a string<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\t&lt;TextBlock x:Name=\"mytextblock\" \/&gt;\n\n\tTextBlock txt = this.FindName(\"mytextblock\") as TextBlock;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Show \/ Hide Enable (allo user to interact with) Change XML Properties Get XAML element by name stored in a string<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[],"class_list":["post-881","post","type-post","status-publish","format-standard","hentry","category-pages"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/881","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=881"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}