windows-store-apps

How to implement AES Encrypt (AesManaged Rfc2898DeriveBytes) in Windows Runtime

瘦欲@ 提交于 2019-12-12 03:07:07
问题 I met a blocking issue when I tried to immigrate my project from Windows Phone Silverlight 8.1 to Windows Runtime. In Windows Runtime the AES-encrypted string is not the same as the one on Silverlight before. In Silverlight: public static string EncryptAES(string encryptString) { AesManaged aes = null; MemoryStream ms = null; CryptoStream cs = null; string encryptKey = "testtest123"; string salt = "abcabcabcd"; try { Rfc2898DeriveBytes rfc2898 = new Rfc2898DeriveBytes(encryptKey, Encoding

Publishing desktop applications to windows store

こ雲淡風輕ζ 提交于 2019-12-12 03:06:44
问题 I need to know is there any way to publish traditional desktop applications to windows store. The link, http://blogs.msdn.com/b/windowsstore/archive/2012/06/08/listing-your-desktop-app-in-the-store.aspx says we cannot upload the desktop app, but we can give a url for the customers to download. I need to know, is there any way to directly upload the exe (or whatever). 回答1: Microsoft works on a tool for this aka Project Centennial which is not available for public yet. Officially from here:

AdControl not show ads

和自甴很熟 提交于 2019-12-12 03:05:33
问题 in my application I have the following code: <UI:AdControl x:Name="ban2" Grid.Row="1" ApplicationId="xx" AdUnitId="xx" HorizontalAlignment="Center" Height="80" VerticalAlignment="Center" Width="480"></UI:AdControl> When using the test aplicationid and adunitId working properly, but when I go to replace with aplicationid and adunitId of my application created in the dev center no longer displays advertising. thank you 回答1: If you don't publish your app in the store, the Application Id and

Dispose of a BitmapImage

主宰稳场 提交于 2019-12-12 02:44:00
问题 I have a Windows Universal App which uses several BitmapImage s. I'm used to wrapping Bitmap s (in Winforms) in using s or using Dispose , but I've discovered that BitmapImage doesn't have a Dispose method. Is there any way to release their resources earlier than waiting for the GC to do that? 回答1: Here's a good solution : Memory consumption of BitmapImage/Image control in Windows Phone 8 . it's like a extension ' Dispose ' method for the BitmapImage And yes, GC.Collect() is good way .. 来源:

Outputting the number of entities in an Azure table

孤街浪徒 提交于 2019-12-12 02:26:35
问题 I'm having this issue that I've been going crazy over for a few hours now. I've got a table stored in Azure that holds tasks a user wants to accomplish. Each task has a status which can be an integer value of either 1, 2 or 3 corresponding to to do, in progress or completed respectively. I'm trying to create three separate gauges which tell the user how many tasks they have in each of those three categories, but everything I've tried throws a MobileServiceInvalidOperation error and I can't

Uploading files to Onedrive using REST API

孤人 提交于 2019-12-12 02:15:56
问题 I am trying to upload a file into OneDrive using its REST API. This is what I am trying to accomplish based on documentation available at OneDrive Rest API: POST https://apis.live.net/v5.0/me/skydrive/files?access_token=ACCESS_TOKEN Content-Type: multipart/form-data; boundary=A300x --A300x Content-Disposition: form-data; name="file"; filename="HelloWorld.txt" Content-Type: application/octet-stream Hello, World! --A300x-- This is what I have: Uri destination = new Uri(string.Format("https:/

How to do relative binding for button flyout in universal windows store app

廉价感情. 提交于 2019-12-12 02:07:47
问题 I want to bind my button flyout width and height with some other control but it not working <Grid > <Popup IsOpen="True" Name="popup"> <Grid Name="popupBorder" Background="Red" Height="100" Width="100" > </Grid> </Popup> <Button Content="check flyout" Name="btn" Click="Button_Click" > <Button.Flyout> <Flyout> <Border Name="flyoutBorder" Height="{Binding Path=Height, ElementName=popupBorder, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" Width="{Binding Path=Width, ElementName=popupBorder,

Universal app in windows : In Windows RT app not displayed transparent tile

佐手、 提交于 2019-12-12 02:02:50
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. I have a transparent Image as Icon but still it display white background check below images I - > Package.appxmanifest II - > Display in start menu . 回答1: You can't have transparent tiles in Windows Store apps. 来源: https:

Is “Assigned Access” [Windows 8.1 feature] possible in Windows 8 app?

点点圈 提交于 2019-12-12 01:51:26
问题 I want to create an app which will be deployed on tablets as a kiosk in a mall. I searched around for creating app with some restriction like it will be always open, only authenticated uses can close with swipe gesture or Alt+F4. I got one solution but it's related to Win 8.1 and I can't wait till that. So what I want is the app will be always on. Normal users will use the app, they can't close it. App can be close by only authenticated users with password. Anybody have any ideas to do these

Access to serial port for windows store apps

早过忘川 提交于 2019-12-12 01:44:42
问题 I am looking for a solution to send an escape sequence to a serial port in a windows store app. Maybe my understanding of windows store apps is wrong. I don't want to run this app on a windows RT device, but on a normal windows 8 PC. I know, that windows RT devices do only support very less communication with connected devices, but not serial ports. 回答1: Well, as I know it's not possible to do something like that by using WinRT library. It's sandboxed and you can't access lots of features