How can we use Custom MessageBox in SelectionChangedEvent of LongListSelector for Windows Phone 8

Dear Sir/Madam,
How can we use Custom MessageBox in SelectionChangedEvent of LongListSelector for Windows Phone 8.
Actually my problem is that When i am using Custom  MessageBox in SelectionChangedEvent of LongListSelector,when i am click Open(Left Button) it's working fine and navigated correctly,But when i am Click the No(Right Button) then it stayed in same page
but all that page is in stuckup i mean that page is not working and not doing any event.
My C#.net Code
private async void userPageLongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
if (e.AddedItems.Count > 0)
if (userPageLongListSelector.SelectedItem == null)
return;
if (dbTenMin == null)
dbTenMin = new Database(ApplicationData.Current.LocalFolder, "tenMInDBSchema.db");
await dbTenMin.OpenAsync();
var res = (sender as LongListSelector).SelectedItem as _10Min._10MinClass.minUserPages;
var resIndex = (sender as LongListSelector).ItemsSource.IndexOf(userPageLongListSelector.SelectedItem);
string selectedPageName = res.userPages.ToString();
string selectedPageDesignUser = res.pageDesignUser.ToString();
int selectedIndex = resIndex;
CustomMessageBox messageBox = new CustomMessageBox()
Caption = "Message...!",
Message = "This form need offline datalist,Please load now.",
LeftButtonContent = "Open",
RightButtonContent = "No"
messageBox.Dismissed += (s1, e1) =>
switch (e1.Result)
case CustomMessageBoxResult.LeftButton:
string uidAndpwd = _10MinClass._10MinStaticClass.csUidAndPwd.ToString();
_10MinClass._10MinStaticClass.csDataListPageDetails = selectedPageDataDetailsForSchema.ToString();
_10MinClass._10MinStaticClass.csAllDataLists = offlineDataBaseDataListNam;
_10MinClass._10MinStaticClass.csNotCreatedSchemaNameOfDBList = notCreatedDataLists;
userPageLongListSelector.SelectedItem = null;
if (dbTenMin != null)
dbTenMin.Dispose();
dbTenMin = null;
NavigationService.Navigate(new Uri("/10MinformDataList.xaml", UriKind.Relative));
else
NavigationService.Navigate(new Uri("/10MinformDataList.xaml", UriKind.Relative));
break;
case CustomMessageBoxResult.RightButton:
break;
case CustomMessageBoxResult.None:
break;
default:
break;
messageBox.Show();
Same custom messagebox code working in Phone_BackKeyPress event i am writing the code in Right Button that e.OriginalSource.ToString(); then it is working fine.
But It is not working in Selection Changed Event in LongListSelector control in Windows Phone 8.
Please help me,as soon as possible.
Thanks & Regards,
SrinivaaS.

What happens if you leave the implementation for LeftButton empty as well , does the page gets stuck in that case also, if you press left button?
i.e.
CustomMessageBox messageBox = new CustomMessageBox()
Caption = "Message...!",
Message = "This form need offline datalist,Please load now.",
LeftButtonContent = "Open",
RightButtonContent = "No"
messageBox.Dismissed += (s1, e1) =>
switch (e1.Result)
case CustomMessageBoxResult.LeftButton:
break;
case CustomMessageBoxResult.RightButton:
break;
case CustomMessageBoxResult.None:
break;
default:
break;
messageBox.Show();
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

Similar Messages

  • How can I use my computer as a Headset device for my phone with Bluetooth?

    Hello, Both my laptop and my phone support A2DP but for some reason the service (from the phone) does not show up while I add a new connection and the phone does not let me initiate a connection with any other profile except FTP, even though it detects other services in the service list like A2DP and works perfectly fine with other profiles like DUN, HID, OPP, SSP if the connection is started through the computer. I am currently using the latest version of the Toshiba stack [v8.00.12(T)], I have tried using WIDCOMM but it refuses to install drivers for both the internal Bluetooth and the USB Bluetooth that I use on my desktop. The standard Microsoft stack (generic driver) does install but it does not seem to communicate with my internal and external (USB) Bluetooth. With BlueSoleil (the default stack that came with the USB Bluetooth) I could set my device as "headset" instead of only "laptop/desktop", and this allowed both my phones to detect my laptop as a device they can use as a headset, but the problem with this stack was that only the older phone could actually connect to my laptop and that the internal Bluetooth could not be used. Basically, I want to set the device type as a "headset" for my phone using the Toshiba stack like I did with BlueSoleil. Is there any way this could be done? Thanks. Attached: Device type selection
    Attachments:
    Untitled.jpg ‏120 KB

    It's not possible. You can use the iMac as a display for the MBP,  but the reverse is not possible. The MBP does not have Target Display Mode as a feature and no third-party app nor hack can enable something that doesn't exist. The only way to accomplish this will be one of the network solutions.
    Regards.

  • How can I use custom repeating event in my iPad Air calendar iOS 8.0.2

    How can I use custom repeating event in my iPad Air calendar iOS 8.0.2?

    Unless something has changed, you can't. The iPad has limited ability to make repeats. However if you make the custom repeats in another program you can send them to or import them into your calendar and the iPad will respect the custom repeat.

  • How can I use an American credit card to pay for a membership from outside the US?

    How can I use an American credit card to pay for a membership from outside the US? My payment page is set up for Japanese credit cards. I can't change to the US store, because the "Select a Store" page just jumps to the "Products" page.
    Has anyone else had this problem? Any help would be much appreciated!

    Hi Batt5721,
    Welcome to Adobe Forums.
    The address and the country on the Credit Card should match the billing address then only payment would be possible.
    Thanks
    Garima

  • HT4437 How can i use the tv as a wireless monitor for my computer?

    I can move my pics and music into itunes to watch and hear on tv, but how can i use my tv as a wireless monitor for my computer?

    Unfortunately, no mechanism for this exists for Windows. If you had a Mac, you could get AirParrot...

  • How can I download a Generic Post Script printer Driver  for Windows 7 .

    How can I download a Generic Post Script printer Driver  for Windows 7

    We used to install this PostScript printer  for previous Windows releases from
    (winsteng) and run it to install the driver from the below location
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=1500
    This doesnt work with Win 7 (The install crashes ) , Basically looking to do the same process with Win 7

  • Can I use the same icloud username and password for multiple phones?

    I have 6 iphones and wanted to use Apple Configurator to install the same apps on all 6 phones.  Some of the apps though, also require further installation by email.  Can I use the same iCloud username and password for all 6 phones to download the apps and also to configure email or do I need to create 6 different Apple IDs?

    If different people will be using these phones, you might be better off using the same Apple ID for the iTunes content...apps, music, etc. on each of these devices, but create different ID's for iCloud on each device. You can use one ID for the iTunes/App store, & a different ID for iCloud. That way, messages, notes, contacts, calendars, etc will be kept separate on each device.

  • How can I use custom WLST commands for Oracle SOA Suite in Weblogic

    Hi There,
    I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
    I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.
    However, my WLST shell is not recognizing the commands and giving me the NameError!
    wls:/devDomain1/domainRuntime> listLogs()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: listLogs
    I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!
    I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below
    - Launched the WLST shell from Oracle Home.
    cd ORACLE_HOME/common/bin
    ./wlst.sh
    - Tried to run the listLogs command from domainRuntime()
    I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
    I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
    There is no SOA Suite installed.
    Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.
    Please advise if this is possible and how?
    Cheers.
    Satish

    I have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:
    CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::
    The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh
    I hope this can help

  • How can I use custom sizes with the hp deskjet 3050a

    Why can't I find a place to cusomize card stock sizes in my printer

    The driver that is used for the Deskjet 3050a does not support custom sizes. It has a pre-set of choices and this is all the driver supports.
    You may be able to use an alternate driver, such as the HP Deskjet 9800 driver, that supports using custom paper sizes. Check the thread located here for information on how to use an alternate driver.
    Hope this helps.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • How can I use my iMac6.1 as a display for my MacBook Pro

    I have a relatively old iMac 6.1 that I would like to use as a diplay for my MacBook Pro:  any idea of how I can do that and what connecting cables I would need?
    Thanks.
    Vittorio

    Unless the MBP has Thunderbolt you can't use the iMac as an external monitor unless you get ScreenRecycler. If the MBP does have Thunderbolt you need a Thunderbolt cable. Because Thunderbolt is so new finding a cable could be quite a challenge, you may want to contact Lacie and see if they can sell you one other than that I have no idea where to find one now. 

  • How can I use my Dx7 as a MIDI controller for Logic Pro  9? I'm using MIDI/USB cable but Dx7 doesn't appear in the 'set-up' list, what am I doing wrong?

    I'm using Logic Pro 9 -  9.1.8
    MacBook Pro Retina OSX 10.9.3
    DX7 2 FD connected to my laptop with a MIDI/USB cable
    When I click the 'scan all models' search in the 'Control Surfaces Set Up' there is no Yamaha DX7 in the list so how can I make Logic 'see' the DX7?

    As Colin pointed out, you have to look first in the Audio MIDI Setup. If your MIDI Device doesn't show up there, then Logic cannot see it either (unless you are using Logic Remote on your iPad to play over Wi-Fi).
    I'm curious about the "MIDI/USB cable you mention. If the DX7 has a standard 5-pin DIN MIDI out jack, then you have to connect that to a MIDI Interface first that converts the MIDI signal to send it over the USB jack out. Please note that you would see the MIDI Interface in the Audio MIDI Setup  app and not the DX7 itself. Also, in Logic you would see the MIDI Interface in the Environment as a valid MIDI input device.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How can I use the iPad as a sound source for my Mac?

    I would like to be able to record sound off my iPad, onto my Mac.  (I'm using a musical app that only allows me to save short recordings, so I would like to plug my iPad into my Mac and record the music into my Mac, into Audacity or something.)
    I know you can't just connect the iPad from the headphone jack, so I'm wondering what equipment I would need.
    I've heard that the iPad camera connector can be used to export audio out, does anyone know how that works?
    Or, are there any iPad apps available that will make exportable sound recordings of any sounds your iPad is making (from any other app?)  You know, like a screen shot, but for sound instead?
    (BTW, I am not interested in streaming music from my iPad.  I already know how to do that.  I'm trying to export audio from a musical instrument app I'm using.)

    Unfortunately that link doesn't provide the info I'm looking for...
    Answering part of my own question: it ISN'T possible to record audio on the iPad from one app to another. Technically not possible, so there are no apps that serve this purpose.
    So, I'm still looking for details on how to connect my iPad to my Mac and use it as a sound source.  I would like to record directly onto my Mac whatever sounds my iPad is outputting, by connecting the iPad to the Mac's audio input in some way.

  • How can I use my rMBP as a secondary display for my iMac using thunderbolt?

    Based on this thread, it's not possible: https://discussions.apple.com/message/19207767
    But, I'm stubborn and refuse to believe that. Maybe they've released a software update (e.g., in Mountain Lion) that has since made this possible? Maybe there is an app that allows for this?
    Note that I don't want a solution that involves network hacks... this is at work, and I'd rather not slow down the network for others. And I'm not interested in the reverse setup (i.e., using my iMac as a secondary display for my rMBP).
    iMac: 27-inch, Late 2012. NVIDIA GeForce GTX 660M 512 MB. OS X 10.8.4.
    rMBP: Retina, Mid 2012 (15" I think). NVIDIA GeForce GT 650M 1024 MB. OS X 10.8.4.

    It's not possible. You can use the iMac as a display for the MBP,  but the reverse is not possible. The MBP does not have Target Display Mode as a feature and no third-party app nor hack can enable something that doesn't exist. The only way to accomplish this will be one of the network solutions.
    Regards.

  • How can i use 3d pdf on my mac? Under windows i can open my pdf with 3d animation but under mac it is not possible. İ also check the web site of adobe, but there are no information about it. Please help.

    Hello who can help me?
    İ need to open the 3d animation pdf. But my mac is not able to open it and my friends have also the same problem.
    İ need this information for my work. İt would be very nice if someone could tell me how i can open the 3 d animation .pdf files. Under windows it is no problem, because adope reader is open it. İ also check the site of adobe to find answers, but no results.

    If there is no info on Adobe about it, this is probably a case where there is a special 3D plugin that Adobe has access to on your PC.    You need to find out what software generated the 3D.  Then you can find out if there is an equivalent Mac compatible plugin.    That said, you can always run Windows on an iMac Intel if push comes to shove:
    https://discussions.apple.com/docs/DOC-2741

  • How can I use an old Mac as a monitor for a Mini?

    My sister has an old iMac, circa 2006, that can no longer be updated, so she's considering getting a Mini and somehow using the old iMac as a monitor. Is this possible? I found a very old post that referred to ScreenRecycler, but this appears to be a defunct or out of date product. She has a wifi network, so I'm wondering if that can be used, both for initial setup of the Mini and for normal use, or if an ethernet connection is preferable.

    so she's considering getting a Mini and somehow using the old iMac as a monitor. Is this possible?
    No.

Maybe you are looking for