{"id":624,"date":"2016-11-17T09:51:17","date_gmt":"2016-11-17T09:51:17","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=73"},"modified":"2016-11-17T09:51:17","modified_gmt":"2016-11-17T09:51:17","slug":"add-elements-to-a-window","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/windows-and-pages\/add-elements-to-a-window","title":{"rendered":".Add Elements To A Window"},"content":{"rendered":"<p>\n\t&nbsp;\n<\/p>\n<h4>\n\tAdjusting Properties Of An Element<br \/>\n<\/h4>\n<p>\n\tSelect it in the window and look at the properties panel.\n<\/p>\n<p>\n\tProperties \/ Events\n<\/p>\n<p style=\"margin-left: 40px\">\n\tUse the spanner \/ Lightning bolt buttons next to the name\n<\/p>\n<p>\n\tAccessing all of the properties\n<\/p>\n<p style=\"margin-left: 40px\">\n\tIf you have arrange by category selected you are only shown the basic properties. &nbsp;To see all of the properties (e.g. max and min width as well as width, press the down arrow at the bottom of the category to reveal the rest.\n<\/p>\n<h5>\n\tMargins, padding etc<br \/>\n<\/h5>\n<p>\n\tFour values &#8211; left, top, right, and bottom edges<br \/>\n\tTwo values &#8211; 1st number is left and right edges, 2nd number is top and bottom edges<br \/>\n\tSingle value &#8211; used for all four sides\n<\/p>\n<p>\n\tNegative values &nbsp;&#8211; may be used for margins, but are not allowed for padding.\n<\/p>\n<h4>\n\tWhat is the unit of measurement?<br \/>\n<\/h4>\n<p>\n\tThe length type properties use units of pixels, although they are considered logical pixels and do not always map directly to physical pixels on the screen. Windows automatically scales content based on the size and resolution of the screen.&nbsp;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Adjusting Properties Of An Element Select it in the window and look at the properties panel. Properties \/ Events Use the spanner \/ Lightning bolt buttons next to the name Accessing all of the properties If you have arrange by category selected you are only shown the basic properties. &nbsp;To see all of the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-windows-and-pages"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/624","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=624"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}