{"id":892,"date":"2019-06-26T16:36:44","date_gmt":"2019-06-26T15:36:44","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=892"},"modified":"2019-06-26T16:36:44","modified_gmt":"2019-06-26T15:36:44","slug":"overlay-a-canvas-on-a-grid","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/grid\/overlay-a-canvas-on-a-grid","title":{"rendered":"Overlay a Canvas on a Grid"},"content":{"rendered":"\n<p>Just treat the canvas like any other object you place on the grid and set it to span the entire grid<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    &lt;Canvas Grid.ColumnSpan=\"999\" Grid.RowSpan=\"999\"&gt;\n        &lt;Button Canvas.Left=\"200\" Canvas.Top=\"100\" Width=\"100\" x:Name=\"btnMyButton\" Click=\"btnMyButton_Click\" Background=\"#77ffffff\" BorderThickness=\"1\" BorderBrush=\"#77000000\"&gt;My Button&lt;\/Button&gt;\n    &lt;\/Canvas&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Just treat the canvas like any other object you place on the grid and set it to span the entire grid<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102,74],"tags":[],"class_list":["post-892","post","type-post","status-publish","format-standard","hentry","category-canvas","category-grid"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/892","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=892"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}