How can I fix this?

As a learning resource, I want to convert the Page.Resources and Grid.DataContext to a class structure. Unfortunately I have no idea what route to take. I have looked at the MSDN documentation and found 3 possible ways I could approach this, although each
one confuses me for varous reasons. One, databinding using IObservableCollection<>, two, databinding using the INotifyPropertyChanged interface, and three, creating a class to convert the xml to string objects.
There is also the IValueConverter interface that could be used as well, but I think that is well outside of my current scope of knowledge.
       <Page.Resources>
            <XmlDataProvider x:Key="XmlData"
                       Source="DictionaryData.xml"
                       XPath="WordList/Word"/>
        </Page.Resources>
        <Grid>
            <Grid.DataContext>
                <XmlDataProvider x:Name="XmlData" Source="DictionaryData.xml" XPath="WordList/Word"/>
            </Grid.DataContext>
So far, I have tried using Observable collection and have yielded a result of the C# programming gods telling me NO!
My listbox is completely empty when I run the program.
Here is the code from what i've done so far:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Xml.Linq;
    using System.Xml.Serialization;
    namespace EJCReWrite
        public class Data : INotifyPropertyChanged
            private string chinese;
            private string pinyin;
            private string english;
            private const string filePath = @"https://onedrive.live.com/redir?resid=20c5e1cad5eac97f!22900&authkey=!AAjCLv_ozEqrdAY&ithint=file%2cxml";
            public string Chinese
                get
                { return this.chinese; }
                set
                    if (this.chinese != value)
                        this.chinese = value;
                        this.NotifyPropertyChanged("Chinese");
            public string Pinyin
                get { return this.pinyin; }
                set
                    if (this.pinyin != value)
                        this.pinyin = value;
                        this.NotifyPropertyChanged("Pinyin");
            public string English
                get { return this.english; }
                set
                    if (this.english != value)
                        this.english = value;
                        this.NotifyPropertyChanged("English");
            public event PropertyChangedEventHandler PropertyChanged;
            public void NotifyPropertyChanged(string propName)
                if (this.PropertyChanged != null)
                    this.PropertyChanged(this, new PropertyChangedEventArgs(propName));
            public void deserializeXML()
                if (File.Exists(filePath))
                    XmlSerializer deserializer = new XmlSerializer(typeof(Data));
                    TextReader reader = new StreamReader(filePath);
                    object obj = deserializer.Deserialize(reader);
                    Data XmlData = (Data)obj;
                    reader.Close();
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.ComponentModel;
    using System.Collections.ObjectModel;
    using System.Xml.Linq;
    namespace EJCReWrite
        /// <summary>
        /// Interaction logic for MainWindow.xaml
        /// </summary>
        public partial class MainWindow : Window
            private ObservableCollection<Data> calledData = new ObservableCollection<Data>();
            public MainWindow()
                InitializeComponent();
                Data data = new Data();
                data.deserializeXML();
                listBox.ItemsSource = data.Chinese;
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <!--This is a generated XML File-->
    <WordList>
      <Word>
        <English>able</English>
        <Pinyin>Néng</Pinyin>
        <Chinese>能</Chinese>
      </Word>
      <Word>
        <English>aboard</English>
        <Pinyin>Chuánshàng</Pinyin>
        <Chinese>船上</Chinese>
      </Word>
      <Word>
        <English>about</English>
        <Pinyin>Dàyuē</Pinyin>
        <Chinese>大约</Chinese>
      </Word>
      <Word>
        <English>above</English>
        <Pinyin>Yǐshàng</Pinyin>
        <Chinese>以上</Chinese>
      </Word>
      <Word>
        <English>accept</English>
        <Pinyin>Jiēshòu</Pinyin>
        <Chinese>接受</Chinese>
      </Word>
      </WordList>
So, as it stands right now, I am at a loss for what I am doing wrong with the code. Any pointers (ha! I crack myself up with puns) in the right direction would be greatly appreciated.

Hello Sozee and welcome to the BlackBerry Support Community Forums.
Sorry to hear you're having an issue downloading applications.
Did you check the requirement at www.blackberry.com/blackberryworld for each application to ensure your device model, software version, mobile service provider and country of origin are all met?
Can you provide the name of one the apps in question? Who's your mobile provider? In what country do you live?
Thanks!
-HMthePirate
Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Similar Messages

  • When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder". How can i fix this?

    When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder. How can i fix this problem?

    Anyone can help to advice how to solve this issue ?

  • How can I put my mp3 files into my iTunes library? Every time I download a song from a website and try to drag it to my library, it won't add on. How can I fix this?

    Back then when I had the older update with iTunes i never had this problem with trying to put my mp3 files of music into my iTunes library. Now it doesn't want to be put into the library. Once I try to drag the music file to the iTunes library nothing happens, it just keeps showing a cancellation sign with my mouse. So how can I fix this?

    Hi William.
    The problem is probably that the index is corrupt and you need to completely re-create it rather than rebuilding individual mailboxes. I have no idea what the situation really is now after having tinkered with the contents of ~/Library/Mail/, though, so the following procedure may or may not work.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, and making sure that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong -- e.g. by dragging it to the Desktop while holding the Option (Alt) key down.
    3. Locate Envelope Index and move it to the Trash. If you see an Envelope Index-journal file there, delete it as well.
    4. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index -- Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • My Outlook/iCloud calendar invites to others appear to work on my end and sync with my PC and mobile, but when other people "accept" the invite, it will not populate/add in to their calendar. How can i fix this without turning off iCloud?

    My Outlook/iCloud calendar invites to others appear to work on my end and sync with my PC and mobile, but when other people "accept" the invite, it will not populate/add in to their calendar. How can I fix this without turning off iCloud?
    I am at a new office that uses Outlook (not Outlook Exchange) which does not sync with my mobile... I just got iCloud set up on my PC to sync my contacts, calendar, reminders, etc... The sync worked (not without flaws, but the other issues seem solvable... I think), so that i can now see all my appointments on both my phone and on my PC. The problem I am having is that iCloud moved all of my calendar items from Outlook into iCloud calendar and now when I send out meeting/calendar invites the recipients may accept them, but the meeting does not get added to their calendar. This is a huge problem and may mean that i need to turn off iCloud.
    Does anyone know how to fix this?
    Thanks!

    I am replying to my own post here as I seem to have fixed the problem.
    I do have some calendars that are shared. Some of those are shared with users who have time zone support turned on. So i activated time zone support on my iphone, then deleted my icloud subscription. I then signed in to icloud again and voila... problem solved.
    It is a weird one as the other calendar views were always fine and when you opened an event that appeared in the wrong day (on list view), the correct date of the event was shown in the information...
    one more bug in a complicated system I guess

  • My wife's nano no longer is recognized by Windows but my ipod touch is?  How can I fix this?

    My wife's nano no longer is recognized by Windows but my ipod touch is?  How can I fix this?

         My iPod touch is always recognized by my Vista Box...using the same USB cable and port my wife's nano isn't detected anymore.  Since Vista can't see the nano iTunes can't see it either.  When I try my wife's nano I get the message:
         "One of the USB devices attached to this computer has malfunctioned, and Windows doesn't recognize it.  For assistance in solving this problem, click this message"
         I thought her nano wasn't charged enough but I've charged it for hours and this doesn't make a difference.  It used to synch like my ipod touch but it stopped working about a week ago.  My wife's nano still holds songs and works it just can't be recognized by Windows.  I even checked if the Apple Mobile Device app was running and it was and I stopped it and restarted it.  Didn't make any difference.  Any ideas?

  • I have recently updated my CC programs to the latest version and now all of my files wont open by default into their respective programs, only if I open the program and go to file open and open the file from there. How can I fix this?

    I have recently updated my CC programs to the latest version (CC2014) and now all of my files wont open by default into their respective programs, only if I open the program and go to file>open and open the file from there. How can I fix this?
    I have tried 'Open with' and the version of the program now installed on my computer isn't even suggested as an option and when I browse for it, the file wont open with it anyway

    On Windows (don't know about Mac), the latest version will always take over the file association, and become the default for indd files. It's impossible to change it.
    But there is a plugin for ID that makes this possible. Never tried it myself.
    https://www.rorohiko.com/wordpress/downloads/lightning-brain-soxy/

  • On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • I put songs onto my IPhone 4, and they show up under the "On This Phone" section in itunes, but when I go to play the songs on my phone, they aren't there. How can I fix this?

    I put songs onto my IPhone 4, and they show up under the "On This Phone" section in itunes, but when I go to play the songs on my phone, they aren't there. How can I fix this?

    When you look at your iPhone, are you looking in the Music app or in the iTunes app?  Be sure you are looking in the Music app, and look in the Songs category.  If your songs are not here, you may want to try syncing your information again through iTunes.  To do this, uncheck "Sync Music" and then click apply or sync in the bottom right corner of iTunes, and then recheck "Sync Music" and then click apply or sync again. 
    I hope this helps!

  • Apple loops for garageband pack doesn't show the folder content (loops, files...)  in ableton live suite 8 library browser, but I can see all the loops in the folder from finder. how can i fix this? help please.

    apple loops for garageband pack doesn't show the folder content (loops, files...)  in ableton live suite 8 library browser, but I can see all the loops in the folder from finder. how can i fix this? help please.

    Thanks Barney, I tried that but all that comes up in Spotlight are the log files that show the file paths! I don't know how Steam works. Are all the files held by Steam on their server perhaps?

  • My weather app doesn't show the feels like temp or wind, etc.  How can I fix this?  I am running iOS 8.1.2

    My weather app doesn't show the feels like temp or wind, etc.  How can I fix this?  I am running iOS 8.1.2.

    is that really what it is?  this is the native iphone weather app.  the funny part is that when i use the actual weather channel app, it does provide it.
    is this an api issue with the weather channel and the iphone then?  i guess there's no fix?
    thanks for your help by the way.

  • How can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    how can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    You must contact iTunes support to get the problem resolved.
    http://www.apple.com/support/itunes/contact/
    If there is a problem with your account or payment info, you cannot
    download anything (including free apps or updates) until the matter
    is resolved.
    In countries where the iTunes Store only sells apps, the accepted payment methods are Visa, MasterCard, and American Express. Other payment types such as gift cards, store credit, monthly allowances, ClickandBuy, and PayPal are not accepted. Depending on your App Store country, prices may be listed in your local currency, US Dollars, or Euros.    http://support.apple.com/kb/HT5552

  • HT204266 my iphone wont let me make an in app purchases how can i fix this?

    My iphone 3Gs wont let me make an in app purchases
    How can i fix this?
    The restrictions are off
    It keeps saying purchase could not be completed cannot connect to itunes store
    but i can still buy music and other apps in the store on my iphone
    just wont let me do it in apps
    Any help be much appreciated
    Thanks

    Read http://support.apple.com/kb/ts1702

  • When I go to my iMessage it has me log in, and I never logged out, but it takes me to where it says verifying and then will take me back to where I sign in with it saying nothing is wrong. how can I fix this?

    When I go to my iMessage, it has me long in. I never logged out, but I can get to the part where it says "next" and I click that. then it will say verifying, but then take me back to the log in page and it doesn't tell my my username or password is wrong. how can I fix this?

    iOS: Troubleshooting FaceTime and iMessage activation
    FaceTime, Game Center, Messages: Troubleshooting sign in issues

  • HT1871 Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Could it be because the SIM card got damaged while I cut it to fit the IPhone?
    Very likely. Hard to believe the carrier in Mexico doesn't have a micro-SIM card available.
    Or somehow the Chinese carrier found out and locked it?
    No, which is not possible.
    What can I do? Get a new SIM and see if it works again?
    Get a micro-SIM from the carrier in Mexico that you don't have to manually cut down. If that carrier doesn't provide one, switch to another carrier that is not so low-budget.

  • I just brought a brand new Macbook pro retina display, when i connect it to my apple tv through airplay its too slow and when it try to play a movie apply tv is always a minute or 2 behind. How can i fix this?

    I just brought a brand new Macbook pro retina display, when i connect it to my apple tv through airplay its too slow and when it try to play a movie apply tv is always a minute or 2 behind. How can i fix this?

    Hello HanaAmer1,
    We've an article which provides troubleshooting steps that can help get AirPlay workign correctly.
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS5209
    Cheers,
    Allen

  • My MacBook screen is stuck in "presentation" mode after using my "Mini DisplayPort to VGA Adapter." How can I fix this?

    My MacBook screen is stuck in "presentation" mode (I don't know the correct term) after using my Apple Mini DisplayPort to VGA Adapter - meaning the screen fonts and windows are larger than usual. How can I fix this? I've changed the display settings to modify it a little, but it still doesn't look right. I reinserted the adapter numerous times and restarted my computer, it still hasn't worked. Help!

    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

Maybe you are looking for

  • How do i export photos from iphoto to a disk

    i have tried to export from file-export but i get this message UNABLE TO CREATE /users/sammym/Desktop/untitled can someone please help me export this Pictures i need to make them compatable with Windows

  • How to log messages in Java class

    How to get interface to logger in a Java class? I need to access a log method that is available for a PageBean.

  • Accesing Oracle 8i Database from iPlanet (Sun ONE) web server

    Hi all, I am trying to set up basic authentication mechanism on an iPlanet web server hosted web application. Instead of using the iPlanet LDAP directory, I would like to access the Oracle RDBMS for userid/password authentication. Does Oracle provide

  • Spots (tiny white ones) on iPhone 4 screen....

    Has anyone seen this? It's gotten progressively worse... (it's hard to photograph, but the "spots" you see in this picture cover the whole front panel of the phone.) If I try to wipe it off with a microfiber cloth, they fade a little, but then become

  • Received texts/calls display name

    Hi I have a Nokia 2310 and would like to know I can get the phone to display the caller's name and not just their phone number. I have phone numbers/names recorded in my contacts and saved, so why doesn't the name appear when I receive a text from on