windows-8

How to implement “AES/CFB/NoPadding” Encryption/Decryption in WinRT C#?

五迷三道 提交于 2019-12-14 03:18:29
问题 We are porting the existing code to Windows 8 now, the data file downloaded from the server is encrypted in "AES/CFB/NoPadding", and we cannot change the data encryption mode because the data file is used by a lot of existing clients. In WinRT , the [SymmetricAlgorithmNames][1] doesn't contains a name to match "AES/CFB/NoPadding". And from the [SymmetricKeyAlgorithmProvider][2] document, the NoPadding algorithms don't contain "CFB" No padding: DES_CBC DES_ECB 3DES_CBC 3DES_ECB RC2_CBC RC2_ECB

Why does the People app show no contacts / doesn't allow me to pick contacts?

耗尽温柔 提交于 2019-12-14 03:13:47
问题 I'm trying to allow the user to select a contact from the People app this way: private async Task<System.Collections.Generic.KeyValuePair<string, string>> SelectAContactForASlot() { KeyValuePair<string, string> kvp; // = new KeyValuePair<string, string>(); var contactPicker = new Windows.ApplicationModel.Contacts.ContactPicker(); contactPicker.CommitButtonText = "Select"; var contact = await contactPicker.PickSingleContactAsync(); if (contact != null) { kvp = new KeyValuePair<string, string>

Localization of NaN in deDE returns “NaN” rather than “n. def.” in Windows 8/Server 2012

£可爱£侵袭症+ 提交于 2019-12-14 01:26:29
问题 Sometime between Windows 7 and Windows 8, Microsoft changed the localization of NaN in de-DE (aka German (Germany) ) from: n. def. to NaN Background There are people on Earth who speak a language other than English; and who speak English in a country other than the United States. As a result, different cultures have different ways to display a value that is "Not a number" . For example: English: NaN Arabic: ليس برقم Greek: μη αριθμός Alsatian: Ohne Nummer Basque: EdZ Breton: NkN Catalan: NeuN

How to programmatically close a MessageDialog in Win8 app using WinJS?

久未见 提交于 2019-12-14 01:24:00
问题 Here is a similar question to mine regarding how to programmatically close a MessageDialog in a Win8 app, but the author of the question is using C#. I'm curious about how to solve the issue with WinJS. Is there any way to cancel a MessageDialog programmatically with WinJS without have access to the CommanUI objects within the dialog itself? I cannot simply invoke the handler associated with an appended CommandUI button since, in some cases, I wouldn't know which button index has that

How to convert Base64 string to image, then bind it to GridView in a Metro Style App?

試著忘記壹切 提交于 2019-12-14 00:32:36
问题 I have collection of products from web service, I preview this product in Grid View, but I get the images of the products as Base64 strings. How can I convert it to images and bind it to the images in the Grid View? Any piece of code that will help me in this issue. 回答1: In WPF/Metro/Silverlight, Image is a UI control. Its source is set to BitmapSource. BitmapSource is a data structure to hold image data. Following is the code to retrieve BitmapImage from byte array. public BitmapImage

Installing SQL Server 2005 on Windows 8 [duplicate]

╄→гoц情女王★ 提交于 2019-12-14 00:02:21
问题 This question already has answers here : How to install SQL Server 2005 Express in Windows 8 (6 answers) Closed 6 years ago . How to install SQL Server 2005 on Windows 8 64 bit? 回答1: Perform these steps:- Extract sqlncli.msi / sqlncli_x64.msi from SP3 or SP4. I did it from SP4 Install sqlncli Start SQL Server 2005 Setup During setup I recieved an error The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, “How to: View SQL Server 2005 Setup Log

Why is my Visual Studio (VB.NET) layout different in Design View vs. at run-time on my home computer, but identical on my work computer?

走远了吗. 提交于 2019-12-13 22:34:26
问题 I've been developing a program with Windows Forms on my work computer in VB.NET using Visual Studio 2013. When I run it on my work computer, the forms at run-time look identical to the forms in design view - the same overall size, the same layout, etc. Here is what it looks like on my work computer - AND when I access my work computer over remote desktop from my home computer. However, on my home computer, it looks different in design view than at run-time. The form in design view is smaller

Toast notifications only pop up if the app is being activated

落爺英雄遲暮 提交于 2019-12-13 21:21:30
问题 I have this problem with toast notifications, my app shows toast notifications only when it is activated (I.e: when I am using it). Here is my code for the toast notifications: private void ShowToastNotification(string text) { var xml = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText01); xml.GetElementsByTagName("text")[0].AppendChild(xml.CreateTextNode(text)); ToastNotificationManager.CreateToastNotifier().Show(new ToastNotification(xml)); } My application is simply a

Activate a textbox automatically when user starts typing

*爱你&永不变心* 提交于 2019-12-13 19:45:36
问题 I want to activate a textbox when users starts typing in my Windows 8.1 Store app. I tried handling KeyDown event of Page , something like this code: private void pageRoot_KeyDown(object sender, KeyRoutedEventArgs e) { if (SearchBox.FocusState == Windows.UI.Xaml.FocusState.Unfocused) { string pressedKey = e.Key.ToString(); SearchBox.Text = pressedKey; SearchBox.Focus(Windows.UI.Xaml.FocusState.Keyboard); } } But the problem is e.Key.ToString() always returns capital english character of the

IBM Worklight - How do I patch Cordova?

不羁的心 提交于 2019-12-13 19:43:19
问题 While adding support for the Windows 8 environment, I've hit a Cordova bug. The folders are being reported as files when I get the directory listing: https://issues.apache.org/jira/browse/CB-5774 I want to apply the patch in my project as I understand you cannot upgrade the Cordova version in a Worklight project. I am using Worklight 6.1.0. 回答1: I figured out a way to patch (JavaScript patch).. I am sure this is not a permnant solution - but a adhoc one till the patched Cordova is available