windows-phone-8.1

Are there any Database solutions for Windows Runtime other than SQLite?

二次信任 提交于 2019-12-25 01:39:26
问题 I have around 1000 - 5000 records and want to save them in a database for a fast access. I used SQLite in Windows Phone Runtime, but it is VERY slow, only 2-3 inserts in a second. I'm wondering if there even exists any other database solutions faster than SQLite? 回答1: I think the answer is - in short - no. Microsoft has dropped the good old LINQ to SQL when they introduced Windows Store apps. That feature remains available only for Silverlight apps. So far SQLite is the only way to go (imo).

Windows Phone 8.1 Toast Notification not playing custom sound

我的未来我决定 提交于 2019-12-25 00:29:57
问题 I am in dire need of your help. I am a Windows app developer and I need my app to play an alarm sound when a toast notification is received. I have tried many different loadouts and everything works fine (Even applying silent='true' in the audio tag), except, ofcourse, for the custom sound. I have tried my dev server and I have tried with a local toast sent from the app, and nothing seems to work. My current XML loadout is as follows (I got it from an example in MSDN): string audio = "ms

Change default tile image url

半腔热情 提交于 2019-12-25 00:08:40
问题 Is there any way I could change the Uris of the default tile images in the WMAppManifest.xml at runtime? For example I would like to enable an option for users to select the tile image in the settings of my app. This is not the problem because I can then update the main tile with the new image if the app is pinned to the start, but if the app is not pinned and the user wants to pin the app another time then the default image will be used, and this is not the behavior I want, I want the tile

Retrieve Inner Text from WebView HTML in Windows/Windows Phone 8.1

▼魔方 西西 提交于 2019-12-24 23:25:43
问题 I'm creating a universal app and need to be able to pull plain text from a HTML page. I know that in WPF you can utilize the IHTMLDocument2 interface to achieve this. IHTMLDocument2 document = webBrowser1.Document as IHTMLDocument2; string data = document.body.innerText; Is there something similar for Windows Runtime? Thanks, 回答1: I would use something like HtmlAgilityPack. The HTML then becomes queryable through Linq. Then you can do something like this: HtmlDocument htmlDoc = webBrowser1

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

LongListSelector Windows Phone 8.1

别来无恙 提交于 2019-12-24 16:23:07
问题 I wanted to Develop a similar layout like Longlist Selector Wp8 in Windows phone 8.1. I came across a issue, my list is not appearing. XAML page <Grid > <Grid.Resources> <CollectionViewSource x:Name="MainGrps" IsSourceGrouped="True"/> </Grid.Resources> <ListView ItemsSource="{Binding Source={StaticResource MainGrps}}" Margin="50"> <ListView.ItemTemplate> <DataTemplate > <Grid Background="Gray"> <StackPanel> <TextBlock Foreground="White" FontSize="20" Text="{Binding ItmName}"/> <TextBlock

Hyperlink in RichTextBlock makes the application crash on clicking

烂漫一生 提交于 2019-12-24 16:10:28
问题 in my Windows Phone 8.1 application I have a RichTextBlock with Hyperlinks in it. I've added some block of code in the click event of the Hyperlink. The problem is that whenever I click on the Hyperlink, my application crashes with an 'Access Violation' exception. This only happens when the keyboard is visible. If the keyboard is resigned then I do not get the exception. Also, this only happens on a WP8.1 device and not a W10 device. Below is my code. XAML <StackPanel> <RichTextBlock FontSize

Retrieve the request data from URI in Webview Windows 8.1

可紊 提交于 2019-12-24 15:41:49
问题 I'm developing a Windows phone 8.1 app and there's this scenario where I should open the webview for the user to enter the card details. Once the card details are entered and processed, the payment API will send the transaction details back as a POST request to the webview. I'm not able to get the POST data, tried so many methods. How do I get the post data returned back from the server? Thanks in Advance 回答1: If you have access to webpage code then you can use WebBrowser.ScriptNotify for

Windows Phone 8.1 Background task: crashes when debugging

一曲冷凌霜 提交于 2019-12-24 15:23:14
问题 I'm trying to develop I background task, that simply updates a badge on a tile in Windows Phone. I think I implemented everything correctly, but when I fire of the back ground task in debug mode, the app simply crashes. Here is my code: The Background class public sealed class TileBadgeUpdate : IBackgroundTask { public void Run(IBackgroundTaskInstance taskInstance) { BackgroundTaskDeferral deferral = taskInstance.GetDeferral(); updateBadge(); deferral.Complete(); } private void updateBadge()

How to access file inside of IsolatedStorageFileStream Windows phone 8.1

北城余情 提交于 2019-12-24 13:54:01
问题 In my project I want to create a xml file and save it,and then retrieve the xml file. that is my code : XDocument doc = new XDocument(new XDeclaration("1.0", "iso-8859-1", "yes"), new XElement("checkout", new XElement("currency", "BRL"), new XElement("items", new XElement("item", new XElement("id", "0001"), new XElement("description", "Dízimo"), new XElement("amount", _amount), new XElement("quantity", "1"))), //new XElement("weight", "50"), new XElement("reference", _reference), new XElement