Can not disable screen from auto locking

Windows Phone 8.1 Project in VS 2013.
I try the following:
using Microsoft.Phone.Shell;
PhoneApplicationService phoneAppService = PhoneApplicationService.Current;
phoneAppService.UserIdleDetectionMode = IdleDetectionMode.Disabled;
The Microsoft.Phone.dll must be referenced. No problem so far.
Compilng the Project leads to a missing System.Windows.dll Version 2.something.
Error 1 The type 'System.Windows.IApplicationService' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.6.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
If I try to reference a System.Windows.dll VS tell me, that this dll is referenced automatically.
How can I get around this? Or is there a different way in 8.1?

I have it. I need to use a "Silverlight" project. I took a normal windows store app project before.
Well.... now I have to rewrite a lot of things, hope it is working. If anybody find out to do this in a normal None-Silverlight app I would be happy.
FOUND IT:
http://msdn.microsoft.com/en-us/library/windows/apps/br241816.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1
Micha

Similar Messages

  • Why I can not see messages from Messenger on lock screen?

    I can not see messeges from Messenger on the lock screen, when my mobile data is on, also there is no sound, even I make ringer and volume louder. In Notification Centre>"Messenger" I setted it  to show on lock sreen, but I can not see messages anyway... What I need to do, can You please help me?

    hello,
    yes you are correct in all the above points...
    as the third one is referring to data element directly the refer check box is not coming...
    to maintain your own text for the other two..you have to uncheck that.... 
    you can also use Go->Translation to maintain text in other languages instead of SE63...
    Thanks.
    K.

  • I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    Its possible the App is not available in the Canadian store if the link doesn't work for you.
    https://itunes.apple.com/us/app/xfinity-connect/id320788270?mt=8

  • In iOS 7 you can still make calls from the locked screen. Just swipe the missed call numbers to the right. Is this a bug?

    In iOS 7 you can still make calls from the locked screen. Just swipe the missed call numbers to the right. Is this a bug?

    How is it a security breach? You're free to turn off lock screen notifications for the phone app so that no one can do that.... even if they can, they can only call the number that called you... nothing else. (well, except for 900 or whatever the emergency services number is where you are, but that's required by law).

  • How do i disable copy and paste so a reader can not copy text from my pdf document?

    how do i disable copy and paste so a reader can not copy text from my pdf document? i have gone into my security preferences but can not find out how to change the settings so i can disable the copying option.

    See http://www.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-protect-p df-file-with-permissions-tutorial-ue.pdf

  • HT1212 Can I access my iPhone 5 remotely that has a damaged screen that can not be unlocked from the actual phone itself?

    Can I access my iPhone 5 remotely that has a damaged screen that can not be unlocked from the actual phone itself?

    No.

  • Hello, I purchased design premium 4.0 German Windows  (LIZ 390232 from 22.02.2010) from my friend and wanted to installation it. However, the key code does not work. He has the PC is no longer, so he can not  disable the product key. He loaded it, but onl

    Hello, I purchased design premium 4.0 German Windows  (LIZ 390232 from 22.02.2010) from my friend and wanted to installation it. However, the key code does not work. He has the PC is no longer, so he can not  disable the product key. He loaded it, but only in Englisch (trial version?) Please help me for the next step. I have the license agreement in my hand.

    Moving this discussion to the Downloading, Installing, Setting Up forum.
    Jakobh53157856 before you begin the installation process please complete the transfer of license process to transfer the Adobe Creative software license you wish to utilize to your possession,  You can find details regarding the transfer process at Transfer an Adobe product license.

  • How can I disable screen lock without entering a passcode?

    How can I disable screen lock without entering a passcode? I accidentally clicked on screen lock and I can't get out of it, and I didn't know I had a passcode, I even reset the ipod and it's still there. Any help??

    I'd try restoring through iTunes.

  • Is there a Siri command to get to the home screen from the lock screen?

    Here is the situation - an elderly friend of mine (94 years old) was in a panic because there were text messages on the lock screen and try as he might he could not "slide to open."
    He has no passcode set.
    Anyway, I had him try this and it worked:
    1. Use Siri to "open calendar."
    2. After it opened, press the Home button to get to the home screen.
    That way he was able to get in.
    Is there a Siri command to go directly to the Home Screen from the lock screen? I tried various things I could think of, but couldn't figure out anything that worked.
    What would be best is being able to bypass the lock screen altogether. I have another elderly friend who is blind and it is a source of constant confusion for him.
    As for voiceover - he is finding it impossible to figure out. I can see, and I am also finding it impossible to figure out. We tried to use it to get into the TED app and select, play and stop videos and all sorts of weird UI elements starting popping up and it was frustrating him so we turned voiceover off. But that's for another discussion thread.
    In the meantime, is there an easy way to get home if somebody is having trouble sliding?
    Thanks,
    doug

    Doug Lerner2 wrote:
    I think the more "assistive" features are turned on the harder it is for both my sighted and blind friend to use.
    Yes, that can sometimes be true.
    Unless your older but sighted friend has difficulty with fine motor movements, I suspect that the slide to open is a matter of practice. If you can convice your friend that they are capable of learning it and get them to work with it a bit that might help. I've found that older learners can become frustrated very quickly with technology. They either have themselves convinced they can't learn technolgy or that get annoyed because iPhones are supposed to be "intuative". The challenge is getting them to feel okay about being a beginner at something.
    You're a good friend to take on this teaching task.
    Best of luck.

  • Can not transfer contacts from Nokia 1020 Windows ...

    Can not transfer contacts from Nokia 1020 Windows Phone to Mercedes C. Windows Phone states that it is only voice connection when trying to transfer data, and if sharing, Mercedes will not show up as bluetooth device at all. However Merceds show Noika as a device. I tried other phones and they work, smart phones and not smart phones. What to do?

    Hi! Can't upload contacts from my nokia n8 to SkyDrive via nokia suite 3.8.48. i choose Instruments - upload to skydrive. then i log in my live.com account, then click "yes" for accses to my data and... nothing happens. initail "copying to skydrive" blue screen with only "later" button available. reinstalling nokia suite, rebootng my phone doesn't help.
    Thanks!

  • I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &T cellular data plan?

    I can not send email from my iPad .  Have been using it for over a year, all of a sudden I can only receive email.  I have a wifi connection in my home and have a A T &T cellular data plan?

    I have a 1st gen iPhone that I just updated the software to 2.0.2
    Now whenever I press the mail icon it goes to the mail app for about 4 seconds, does nothing, no loading of folders, old messages, nothing.
    Then it reverts back to the home screen. Tried restarting, haven't tried restoring, thought I'd look here first.
    Anyone???

  • How can i stop iTunes from Auto rating my songs??

    How can i stop iTunes from auto rating my songs in my library?? I have my library very organized and 90% of the time when i listen to music i play "My Top Rated" Playlist on shuffle. The only time i give stars ratings to my songs is for my favourite songs which i give 5 star and every other song is just left with no stars. For some reason iTunes is giving songs i have never played or i dont like 5 Stars and rewining my playlists. I have tried erasing all the stars from my entire library and since doing this a week ago, again (for the 4th time in a year) having a library with not 1 song with any star ratings, all of a sudden i now have 329 random songs with 5 stars again??????
    This is really getting to me as i love my music and love iTunes and everything apple but seriously there has to be away to stop this so i can have my old playlists back!
    Thanks hope some one can help

    One reason itunes will start "at regular intervals" will be if you have an iphone that has sync via wifi enabled. I had the problem following an upgrade to iOS 5.

  • Unchecked show icon preview but still showed icon preeviews / ikon preview (thumbnail) can not disable,

    Systems and Network
    2 iMac Intel i5, 8 GB Ram, 1 TB SATA HDD, Mountain Lion (10.8.5 or 10.8.4 )
    1 iMac Snow Leopard (10.6.8)
    1 Mac pro Intel Xeon, 6 GB Ram, 1 TB HDD, Tiger (10.4.11)
    A few power PC G4 Tiger (10.4.11)
    1 Linux SME Server 7.5 (Samba Server)
    We are works on the Server(Linux). There ara many pictures and Text Files  (tif, jpeg, rtf, doc, txt etc.) in server folders.
         On the 2 iMac (Mountain Lion)
              Text files in the folder have viewed normal(optimum) time. But Pictures in the folder have viewed very slow and very long time.Because showing pictures icon (show icon preview) very slow on the Mountain Lion. We tried List View/ColumnView.We have waited very long time(for pictures in the folder) when we selected a folder every time.
              We unchecked show icon preview but still showed icon previews, icon preview (thumbnail) can not disable, We tried "Finder preferences", "View > Show View Options > Show icon preview(unchecked)" and  "Show icon column(unchecked)" but still "Show icon preview(checked)" and  "Show icon column(checked)"
         On the Power PC G4, Mac pro or iMac (Leopar/snow Leopar or Tiger)   
              Everythings ok. There isn't any problem.  Text files and Pictures in the folder have viewed normal(optimum) time
    This problem only on the Mountain Lion, on the other OS (Leopar/snow Leopar or Tiger) no problem.
    How to resolve this problem?
    Best Regards

    Good news: I found a solution.
    Start iTunes, remove all your voice memos from your library (back them up if you need them), quit iTunes. Restart Finder. Done. I hope that helps!

  • How can I disable imessage from old phone?

    how can I disable imessage from old phone number / iphone I no longer have?

    iMesssage to old phone
    If you move to another phone and forget to turn off iMessage then read “if you no longer have the device in http://support.apple.com/kb/HT5661  If you still cannot resolve it call Apple http://support.apple.com/kb/HE57
    To deactivate iMessage http://support.apple.com/kb/ts5185
    Read http://m.samsung.com/us/support/SupportOwnersFAQPopup.do?faq_id=FAQ00053450&fm_s eq=62995

  • How can i disable imessage from automatically starting up when i turn on macbook air?

    how can i disable imessage from automatically starting up when i turn on macbook air? i dont know my imessages to pop up on my laptop when it turns on. But i dont want to disable imessage totally on my macbook.

    Welcome to the Apple Support Communities
    First of all, check that Messages is closed when you turn off your MacBook. This is so important because, by default, OS X will reopen all opened apps the next time you start your Mac.
    Apart from that, when you go to  > Shut Down, or  > Restart, in the window you see to restart or turn off your MacBook, unmark "Reopen windows when logging back in". This will avoid that your Mac opens all opened apps the next time you start the MacBook, so Messages won't start automatically at startup

Maybe you are looking for

  • GRR reference not getting updated in J1IEX

    Hi All, We are capturing part 1 entry at our factory gate through j1iex_c.Then doing Goods receipt at stores through MIGO. Now when we see vendor excise invoice in j1iex grr reference is not getting updated. Awaiting responses. Sandeep

  • HTMLLoader not working event with Adobe's example

    Hi! What could be the problem? I'm testing HTMLLoader class. But it seem that Flash does nothing when I use Adobes example with Flash CS5 and AIR for iOS: package  {           import flash.display.Sprite;     import flash.html.HTMLLoader;     import

  • What's the deal with FP update doesn't work!

    What's up with Update FP player?

  • First boot up CTO MBP

    So I just received my CTO MBP with 4 GB ram and iWork pre installed. I pressed the power button and heard the start up sound and looked away for a moment. When I turned around it restarted again and made the startup sound again. Is that normal for it

  • G460 and function-c​trl key remap / swap :(

    I'd like to swap Function (Fn) and left Ctrl keys. Or map both to Ctrl, that would work as well. I just bought G460 (m-520 / 4gb / 500gb / nvidia 310). Unfortunately I didn't know about the keyboard issue and I bought my laptop refurbished -- no retu