windows-8

How to play YouTube videos in a Windows8 html/javascript app?

那年仲夏 提交于 2019-12-18 04:24:22
问题 How can I play YouTube videos in a Windows 8 html/javascript app? I have the clip's id and I just want to play it. Perhaps via html5's video tag? I've tried the iframe api, but failed to get it to work. I've also made a try on the javascript api, but it failed to load javascript from anther location. Any help on the subject would be very appreciated! 回答1: I developed a YouTube class for Windows Phone which gets the MP4 link of a YouTube movie. Maybe you can use this code and start the video

Upload file to skydrive through SkyDrive API

巧了我就是萌 提交于 2019-12-18 04:23:39
问题 I try to upload a text file to my skydrive or at least create new text file in SD and edit it's content, through SkyDrive API in my Windows 8 application. How can I do that? I tried to do something like that: LiveConnectClient client = new LiveConnectClient(session); var fileData = new Dictionary<string, object>(); fileData.Add("name", "new_file.txt"); try { LiveOperationResult fileOperationResult = await client.PutAsync("me/skydrive", fileData); this.infoTextBlock.Text = fileOperationResult

Creating Bitmap Image from xaml control using WritableBitmapEx

自闭症网瘾萝莉.ら 提交于 2019-12-18 04:21:33
问题 How I can create bitmap image from xaml control using WritableBitmapEx. In my winRT application I need to create a snapshot of my window for implementing Pin to Tile(pinning secondary tile). I found WritableBitmap.render() is missing in winRT. How can I achieve this functionality by using WritableBitmapEx. 回答1: Somehow they missed implementing WriteableBitmap.Render() and while from what I have been hearing it might come in a later version of the SDK, for now your options are to either use

Creating Bitmap Image from xaml control using WritableBitmapEx

守給你的承諾、 提交于 2019-12-18 04:21:33
问题 How I can create bitmap image from xaml control using WritableBitmapEx. In my winRT application I need to create a snapshot of my window for implementing Pin to Tile(pinning secondary tile). I found WritableBitmap.render() is missing in winRT. How can I achieve this functionality by using WritableBitmapEx. 回答1: Somehow they missed implementing WriteableBitmap.Render() and while from what I have been hearing it might come in a later version of the SDK, for now your options are to either use

Windows 8 theme color - accessing it programmatically

无人久伴 提交于 2019-12-18 03:33:18
问题 In windows 8 consumer preview you can personalize your experience, including setting a 'background color' which is then also used as the background for selected tiles, app bar etc. So selecting orange will mean that orange accents are visible in the Windows 8 Metro UI. I am currently authoring some custom controls, and I would like to have access to this color in my styling, so as the user changes color so my applications accents are re-colored accordingly. I cannot find a way of getting at

Microsoft.ACE.OLEDB.12.0 Provider can no longer open .mdb under Windows 8

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 02:47:28
问题 I have an x64 application which uses Microsoft.ACE.OLEDB.12.0 provider to read an MS Access Database on Windows 7 (x64) and it works fine (Office 2010 installed). The same application running under Windows 8 with Office 2013 installed, fails with a message saying that the provider cannot open previous versions. Under Windows 8 with Office 2013 installed, there is also Microsoft.ACE.OLEDB.15.0, but I have double checked my code and certain that it is specifying the 12.0 in the connection

Microsoft.ACE.OLEDB.12.0 Provider can no longer open .mdb under Windows 8

守給你的承諾、 提交于 2019-12-18 02:47:09
问题 I have an x64 application which uses Microsoft.ACE.OLEDB.12.0 provider to read an MS Access Database on Windows 7 (x64) and it works fine (Office 2010 installed). The same application running under Windows 8 with Office 2013 installed, fails with a message saying that the provider cannot open previous versions. Under Windows 8 with Office 2013 installed, there is also Microsoft.ACE.OLEDB.15.0, but I have double checked my code and certain that it is specifying the 12.0 in the connection

Cannot get ant installed properly for phonegap using eclipse and windows 8

巧了我就是萌 提交于 2019-12-17 22:31:45
问题 Trying to use Phonegap in Eclipse on windows 8. I've created a project at C:\Development\HelloWorld. In the command line, when I type: phonegap local build android I get the following error: An error occurred during creation of android sub-project. ERROR : executing command 'ant', make sure you have ant installed and added to your path. My PATH: C:\Program Files\nodejs\;C:\Development\adt-bundle\sdk\platform-tools;C:\Development\adt-bundle\sdk\tools;%JAVA_HOME%\bin;%ANT_HOME%\bin; Whats going

Windows 8 - Fancy Progress Bars API?

烈酒焚心 提交于 2019-12-17 22:14:52
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 7 years ago . Does anyone know if the new 'fancy' file transfer progress bar that Windows 8 uses for its file transfer progress is available via some API (preferably C#)? I could think of some useful places for it in our application but can't seem to find out if it's consumable or internally available only to Windows. EDIT My answer below now includes a WPF implementation

String.Intern() method missing in metro c#

淺唱寂寞╮ 提交于 2019-12-17 21:10:31
问题 How to get string intern method in Metro c#. if not found in windows 8 c#, is there any equivalent method to maintain system's reference to the specified String. 回答1: This is an inevitable side-effect of the language projection built into the CLR that enables the ".NET for Metro style apps" api. That projection maps a string that was obtained from a WinRT api call to System.String. The underlying string is not a managed string at all and doesn't live on the garbage collected heap. It is an