{"id":683,"date":"2017-01-14T13:35:44","date_gmt":"2017-01-14T13:35:44","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=413"},"modified":"2017-01-14T13:35:44","modified_gmt":"2017-01-14T13:35:44","slug":"text-box-general-2","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/text\/text-box-general-2","title":{"rendered":".TextBox General"},"content":{"rendered":"\n<p>Use TextBox for use text entry text box<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\t&lt;TextBox Grid.Row=\"1\" Grid.Column=\"1\"  Grid.ColumnSpan=\"1\" x:Name=\"MyTextBox\" Header=\"My Text Box\" Background=\"White\" &gt;&lt;\/TextBox&gt;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\tMyTextBox.Text = \"Hi\";<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Hidden TextBox<\/h4>\n\n\n\n<p>You can\u2019t set a text box to not visible and have it still take focus \/ text entry, but you can achieve the same thing by setting its opacity to 0:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MyTextBox.Opacity = 0;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Options<\/h4>\n\n\n\n<p>Wrap text \/ multiline<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>TextWrapping=\"Wrap\" <\/code><\/pre>\n\n\n\n<p>Read only<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>IsReadOnly=\"True\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Use TextBox for use text entry text box Hidden TextBox You can\u2019t set a text box to not visible and have it still take focus \/ text entry, but you can achieve the same thing by setting its opacity to 0: Options Wrap text \/ multiline Read only<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-683","post","type-post","status-publish","format-standard","hentry","category-text"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/683","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=683"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/683\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}