{"id":3687,"date":"2014-03-29T07:57:36","date_gmt":"2014-03-29T07:57:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/making-a-call-when-the-user-clicks-on-a-listboxitem-collection-of-common-programming-errors\/"},"modified":"2014-03-29T07:57:36","modified_gmt":"2014-03-29T07:57:36","slug":"making-a-call-when-the-user-clicks-on-a-listboxitem-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/making-a-call-when-the-user-clicks-on-a-listboxitem-collection-of-common-programming-errors\/","title":{"rendered":"Making a call when the user clicks on a listboxitem-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn Hi<\/p>\n<p>Does anyone know how to do this?<\/p>\n<p>I know how to capture the item, i only want to know how to dial<\/p>\n<p>Thanks<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn2 Assuming you have some kind of &#8220;Contact&#8221; button that the user is pressing (or something else that works the same way), I would add a new Page (called something like &#8220;ContactPage.xaml&#8221;)\u00a0to the project and on that page add the option to either call or email (it could be as simple as having a &#8220;Call&#8221; button and an &#8220;Email&#8221; button), then when the user presses the &#8220;Contact&#8221; button, navigate to that page.<\/p>\n<p>If you need to set data (like the phone number and email address) at runtime, you could do so either by passing parameters (see: http:\/\/msdn.microsoft.com\/en-us\/library\/ff626521(VS.92).aspx\u00a0) or by creating class members in the new contact page class that are static (C#)\/Shared (VB) that you can then just set before navigating to the contact page. I personally like the second method better, but either way should work fine.<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn3 Hi again!<\/p>\n<p>Does anyone knows how can i display a message to let the user select if he wants to make a call or send an email?<\/p>\n<p>Thanks!<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn4 Assuming you have some kind of &#8220;Contact&#8221; button that the user is pressing (or something else that works the same way), I would add a new Page (called something like &#8220;ContactPage.xaml&#8221;)\u00a0to the project and on that page add the option to either call or email (it could be as simple as having a &#8220;Call&#8221; button and an &#8220;Email&#8221; button), then when the user presses the &#8220;Contact&#8221; button, navigate to that page.<\/p>\n<p>If you need to set data (like the phone number and email address) at runtime, you could do so either by passing parameters (see: http:\/\/msdn.microsoft.com\/en-us\/library\/ff626521(VS.92).aspx\u00a0) or by creating class members in the new contact page class that are static (C#)\/Shared (VB) that you can then just set before navigating to the contact page. I personally like the second method better, but either way should work fine.<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn5<\/p>\n<p>Thanks again<\/p>\n<p>Now i&#8217;m trying to solve the Navigation problem, when i solve it, i will create another page to call or email an user<\/p>\n<p>THANK YOU!<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>msdn Hi Does anyone know how to do this? I know how to capture the item, i only want to know how to dial Thanks msdn2 Assuming you have some kind of &#8220;Contact&#8221; button that the user is pressing (or something else that works the same way), I would add a new Page (called something [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3687","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3687"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3687\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}