windows-8

Know when a file changes on windows 8

回眸只為那壹抹淺笑 提交于 2019-12-11 01:23:54
问题 I know that the class FileSystemWatcher does not work on windows 8. Why are FileSystemWatcher Attribute changes detected on Windows 7 but not Windows 8? Anyways I need to know when a file is changed within a directory. For example I have dropbox installed on my computer and the moment I update a file it starts synchronizing. How does dropbox knows when a file has changed in windows 8? I already tried this solution in c++ http://msdn.microsoft.com/en-us/library/aa365261 and I have the same

Windows 8 Metro App (Grid Application) transition with black flickering

a 夏天 提交于 2019-12-11 01:12:06
问题 I'm building a Windows 8 Metro App based on the Grid Application template. Everything was going smoothly until I tried to change the Theme and Background of the App. I applied an Image Background to all 3 XAML Page's Grid. Also, I changed the Theme to "Light" in the Application Package Manifest, but it didn't do anything. After searching I found a solution, setting RequestedTheme="Light" in the App.xaml Now, I have a Light themed Application with the background I want, but every time I

Use Sencha Touch in Windows 8 metro app

坚强是说给别人听的谎言 提交于 2019-12-11 01:09:48
问题 I want to know how to use Sencha Touch Frame in windows 8 metro app project with Windows JS project. When i try to add sencha Touch to html page i receive exception Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements

Windows Installer “This action is only valid for products that are currently installed” - “MSI_DBG: Provided descriptor less than minimum size”

时光怂恿深爱的人放手 提交于 2019-12-11 01:04:51
问题 I've encountered a strange issue running a WiX installer on a windows 8 machine. When I click the msi I get the message "This action is only valid for products that are currently installed". Running the msi with logging shows the following: === Verbose logging started: 3/11/2014 9:46:49 Build type: SHIP UNICODE 5.00.9600.00 Calling process: C:\WINDOWS\system32\msiexec.exe === MSI (c) (20:C4) [09:46:49:933]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg MSI (c)

WinRT StorageFile DisplayName strange behavior

淺唱寂寞╮ 提交于 2019-12-11 01:04:10
问题 In a Windows 8 app on Windows 8.1 I use the DisplayName property of StorageFile to get a 'friendly' file name. In the majority of the cases the result is the name of the file without the extension but sometimes the result is the name of the file with the extension. This second case seems to happen when I create a new folder and immediately create a file in it. Does anyone know if there is a consistent rule for this behavior? Thanks! 回答1: It is a strange but You can create extension method

Play audio in background by use BackgroundCapableMedia

梦想的初衷 提交于 2019-12-11 00:56:46
问题 In the windows8 Developer preview we can use this code to play audio in background: mediaElement.AudioCategory = AudioCategory.Media; In the windows8 Customer perview, It seems that we should use AudioCategory.BackgroundCapableMedia instead of AudioCategory.Media mediaElement.AudioCategory=AudioCategory.BackgroundCapableMedia; and I also Declare a background task in appxmanifest <Extension Category="windows.backgroundTasks" EntryPoint="TestApp.App"> <BackgroundTasks> <Task Type="audio" /> <

$.Ajax doesnt work in windows8 metro app

送分小仙女□ 提交于 2019-12-11 00:49:48
问题 I am trying to migrate my existing html5 app into a metro app, and finding two major hurdles: .innerHtml is not supported due to security reason $.Ajax just doesn't work (I am using jsonp for data exchange from server) Questions: How do I bypass the security issue for .innerHtml? What other alternative do I have to make $.Ajax work? 回答1: Q2: I had the similar problem, and I changed my $.get to: function getJSON(url, data, callback, errorCb) { if (data != null) { var params = []; for (var key

RichTextBlock paragraphs background color

坚强是说给别人听的谎言 提交于 2019-12-11 00:48:48
问题 I have a RichTextBlock with a couple of paragraphs. I need some paragraphs to have a background color. I cannot find the Background property on Paragraph or Run. How do I do this? In WPF there is a Block but it does not seem to be present in WinRT. 回答1: It is not possible but it is Possible to insert a InlineUIContainer with a StackPanel with a background. 回答2: You'll need to get the index for the start of the paragraph and for the end of the paragraph and then use: //Select the line from it

Remove an item from a list box causes a Catastrophic Failure?

你。 提交于 2019-12-11 00:30:28
问题 I am trying to clear a list box's items in my Windows RT App. To add the items, I use: List<string> list1; ... foreach(string s in list1.Items) { listBox1.Items.Add(s); } To clear the items, I use: listBox1.Items.Clear(); However, this throws this exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) If I try to use: int at = 0; while (at < listBox1.Items.Count) { listBox1.Items.RemoveAt(at); at += 1; } I get the same exception at the RemoveAt method. 回答1: I

How to access the Windows.Management.Deployment namespace?

☆樱花仙子☆ 提交于 2019-12-11 00:29:51
问题 I have an integration test suite that I'm trying to extend to allow testing a version of a program for Windows 8. My target work flow is simple: Create appx package, install, run appcert.exe, uninstall package, clean up other stuff So, I'm trying to access the Windows.Management.Deployment namespace which should allow me to do all of the installation and management of the package. Problem is that this namespace apparently requires using the WinRT version of .Net, which won't fly for us