Making a call when the user clicks on a listboxitem-Collection of common programming errors


  • 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 “Contact” button that the user is pressing (or something else that works the same way), I would add a new Page (called something like “ContactPage.xaml”) to the project and on that page add the option to either call or email (it could be as simple as having a “Call” button and an “Email” button), then when the user presses the “Contact” button, navigate to that page.

    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 ) 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.


  • msdn3 Hi again!

    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?

    Thanks!


  • msdn4 Assuming you have some kind of “Contact” button that the user is pressing (or something else that works the same way), I would add a new Page (called something like “ContactPage.xaml”) to the project and on that page add the option to either call or email (it could be as simple as having a “Call” button and an “Email” button), then when the user presses the “Contact” button, navigate to that page.

    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 ) 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.


  • msdn5

    Thanks again

    Now i’m trying to solve the Navigation problem, when i solve it, i will create another page to call or email an user

    THANK YOU!