windows-runtime

Invalid PDF digital signature in WinRT app

橙三吉。 提交于 2019-12-25 00:52:23
问题 I am trying to port a working solution for signing PDFs from a standard C# class library to portable class library (or windows store app 8.1). iTextSharp version: 5.5.3.0 The logic is as follows: I create a signature appearance in iTextSharp, hash it (SHA256, it's a third party requirement), send the hash to a webservice which returns me the signed content. As mentioned, the solution is working fine e.g. in ASP.net web applications, but all the attempts to implement it in the WinRT

ReadTextAsync in Windows Store app with multibyte file and JavaScript

拟墨画扇 提交于 2019-12-24 17:40:33
问题 I would like to read a CSV file in my javascript written windows store app. If I use readTextAsync I get an error when using some german umlauts. No mapping for the Unicode character exists in the target multi-byte code page. I found a solution in C# here ReadText from file in ANSII encoding but I have no idea how to solve it in JavaScript? Is there someting like the Encoding class in JavaScript? If I convert the file to UTF8 it works fine, but my customer would like to use a file saved by

UWP/WinRT: How to use VisualState Triggers to change the styling of all controls of a certain type?

巧了我就是萌 提交于 2019-12-24 17:28:04
问题 In my UWP app, I have a series of AppBarButtons separated by AppBarSeparators . When the window size drops below a certain amount, I want to hide the AppBarSeparators to save space. I tried something like this, but it didn't work: <VisualState.Setters> <Setter Target="AppBarSeparator" Value="Collapsed"/> </VisualState.Setters> I understand it's not possible to give each of the AppBarSeparators labels so I can target them directly, because they are dynamically generated as part of a binding.

RenderTargetBitmap works fine on Windows 8.1, but not on Windows Phone 8.1

大兔子大兔子 提交于 2019-12-24 17:06:04
问题 I'm making a universal app. In my app I need to use RenderTargetBitmap to convert an Image and a TextBlock over the image into a JPEG photo. On the Windows 8.1 project, everything works as expected, but not on the Windows Phone 8.1 one. Could you help me with that? Thank you. My code is as follows: async Task SaveVisualElementToFile(FrameworkElement element, StorageFile file, int imageWidth, int imageHeight) { var renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap

Where is Frame.Navigate(Uri uri) method?

懵懂的女人 提交于 2019-12-24 16:29:44
问题 Im trying to create custom navigation manager for my WinRT app. All I want is a simple class I can use in MVVM that would enable me creation of navigation logic within XAML. My idea looks like this: <Button Content="Details" Command="{Binding Navigate}" CommandParameters="Page2.xaml"/> In order to do this I found out there is Navigate(Uri uri) in the Frame class. With this method my dream would come true. The problem is there is no such method. The only method I can call on Frame is Navigate

Using XSD files in WinRT Projects

这一生的挚爱 提交于 2019-12-24 15:32:45
问题 I'm trying to use some existing C# code in a WinRT (Windows Store/Metro) project. This code relied on some xml files generated using XSD. Unfortunately it seems the old XmlDocument classes aren't available in WinRT... there are some alternatives, but they don't seem to be quite the same - so I need to generate some new files for WinRT. Is there a way to import an XSD file into a WinRT project so that all the data classes, and enums are generated and can be used in the Metro project? I've

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 store app date picker null date

感情迁移 提交于 2019-12-24 13:47:31
问题 i need datepicker in window store app , windows 8, but i am not able to find any control, so i used this : jasonmitchell / WinRT-XAML-DatePicker https://github.com/jasonmitchell/WinRT-XAML-DatePicker/blob/master/Samples/WinRTDatePicker.Samples.sln but my problem is , by default it shows today date, that i don't want, i don't want to show any date, if user did not apply any date if anybody have idea to working with date-picker in windows metro application, that will be great, i know windows 8

Navigating to another html in Windows store app

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 13:19:47
问题 I am trying to find a way to navigate to another html in my app. I tried window.location and WinJS.Navigation.navigate but none works. 回答1: Although you can get document.location and navigation to work (and note that it's document.location, not window.location), the recommended approach is to implement the app like a single-page web application, meaning that you "navigate" by dong DOM replacement inside default.html/index.html. That is, you're page context is always the default HTML page, so

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