windows-8

How to remove the app name from a Windows Store App tile?

天涯浪子 提交于 2019-12-24 17:27:36
问题 My tile already contains the title of my application. How can I set the title of the tile to nothing? When I just put a space or nothing in the DisplayName (Appmanifest) I get the following error: App manifest validation failed. Value of attribute '/Package/Applications/Application/VisualElements/@DisplayName' cannot start or end with whitespace. (The guidelines say it is possible: http://msdn.microsoft.com/en-us/library/windows/apps/hh465403.aspx#using_default_tiles) 回答1: Got it! In the

Read The Registry Using Win 8 App?

跟風遠走 提交于 2019-12-24 16:42:43
问题 I'm trying to see if it's possible to read the registry from a Windows 8 app. I can usually use Registry.GetValue() but I don't have that option when creating the Win 8 app. Doing some digging shows that the Registry.GetValue() belongs to the Microsoft.Win32 namespace which isn't available in the Win 8 app references properties tab. I did some googling but I couldn't find any concrete evidence that you cannot read the registry. I fear that I won't be able to do this because of sandboxing Win

Upload File with .NET for Windows Store Apps

穿精又带淫゛_ 提交于 2019-12-24 15:40:03
问题 Now that I have come to the realization that I can not use the normal .NET to write my Windows Store apps, I am trying to wade through the mess that is .NET for Windows Store apps. My latest discovery is that the System.Net.WebClient class is missing, and I needed to use it to upload a file. Had this class been there, I would have done something along the lines of: webClient.UploadFile("http://my.website/upload.php?a=" + someParam, "POST", filepath); Unfortunately, I can't do this in .NET for

change Tile background color by Start Screen Color

北城以北 提交于 2019-12-24 14:49:19
问题 I am developing a Windows 8 Metro UI app. How can I set my app Tile background to Start Menu Color? 回答1: I am fairly certain you cannot programmatically access the Start screen color programmatically, though I cannot seem to find a clear reference to that newer than the Release Preview. You can set the tile background color explicitly via the app manifest 来源: https://stackoverflow.com/questions/12239357/change-tile-background-color-by-start-screen-color

How to skip a bootstrapper or ignore fail in Windows 8?

南笙酒味 提交于 2019-12-24 14:32:21
问题 I have a WiX installer and a number of bootstrappers. We recently added SQL LocalDB support and found we needed to package .Net 4.0.2 to get it to work. I am now testing on Windows 8, and find that this patch fails and isn't actually needed for this OS. However, my installer fails because .Net 4.0.2 fails. I am trying to find a way of either skipping this patch in Windows 8 or just ignoring a fail for this patch? I have " InstallConditions " and " ExitCodes " in my package.xml , but I don't

Simulating MySql's PASSWORD() encryption using .NET in Windows 8

心不动则不痛 提交于 2019-12-24 14:15:26
问题 PASSWORD() according to MySQL documentation is a double SHA1 algorithm. In Win32 I was using this method: public string GenerateMySQLHash(string key) { byte[] keyArray = Encoding.UTF8.GetBytes(key); SHA1Managed enc = new SHA1Managed(); byte[] encodedKey = enc.ComputeHash(enc.ComputeHash(keyArray)); StringBuilder myBuilder = new StringBuilder(encodedKey.Length); foreach (byte b in encodedKey) myBuilder.Append(b.ToString("X2")); return "*" + myBuilder.ToString(); } SHA1Managed object is not

Windows 8 Metro cryptography - using SignedCms Pkcs7

…衆ロ難τιáo~ 提交于 2019-12-24 14:12:45
问题 SignedCms is not supported in Windows 8 Metro. Is there an equivalent/replacement for it in WinRT? Sample of the code i need to convert to Metro below: message.Data = new SignedCms(new ContentInfo(Encoding.ASCII.GetBytes(toDigest)), true); message.Data.Decode(part.BinaryContent); 回答1: Found what i was looking for here: http://dotnetspeak.com/index.php/2011/11/encrypting-and-decrypting-data-in-winrt-2/ 来源: https://stackoverflow.com/questions/14272579/windows-8-metro-cryptography-using

Windows 8 App with Share contract only

百般思念 提交于 2019-12-24 13:32:34
问题 Is it possible to create an app that "only" shows while using Share charm? I do not want the fullscreen app to be opened via live tile as there is no content to be displayed. I want it to be displayed only through Share charm. 回答1: No, it is not possible for an app to be shown only as a Share target. All Windows Store apps have a tile on the Start Screen that can be used to launch the app. 来源: https://stackoverflow.com/questions/13504624/windows-8-app-with-share-contract-only

Drag and Drop Items in desired position Listview WinRT

一笑奈何 提交于 2019-12-24 13:17:46
问题 I am able to implement drag and drop from one ListView to the other ListView with the help from this blogpost Windows 8 Drag Drop I am also able to reoder items in the same ListView CanReorderItems="True" But I am not able to drop an item from one ListView control to the other ListView control in the desired location. Is there any way to find out the position where the drop occurred so that I can insert at that location using Insert method. 回答1: http://www.codeproject.com/Articles/536519

How to get files from the directory under Picture Library?

老子叫甜甜 提交于 2019-12-24 12:44:08
问题 I want to know how to get files from the directory under Picture Library.(C:\Users\username\Pictures\MyFoler) I know how to get files and folders from PicturesLibrary. StorageFolder picturesFolder = KnownFolders.PicturesLibrary; IReadOnlyList<StorageFile> fileLists = await picturesFolder.GetFilesAsync(); IReadOnlyList<StorageFolder> folderLists = await picturesFolder.GetFoldersAsync(); 回答1: Using the same general mechanism, StorageFolder exposes GetFoldersAsync and GetFilesAsync. This code,