windows-phone-8.1

The component cannot be found. (Exception from HRESULT: 0x88982F50)

左心房为你撑大大i 提交于 2020-03-21 11:37:46
问题 The above exception occurs at line await bitmapImage.SetSourceAsync(fileStream); whenever I tried to retrieve image from local file. This is the method I'm using for storing and retrieving the image file. public async Task<BitmapImage> RetrieveImageFromFile(String fileName) { try { StorageFile localFile = await _storageFolder.GetFileAsync(fileName + "Img"); BitmapImage bitmapImage = new BitmapImage(); using (IRandomAccessStream fileStream = await localFile.OpenAsync(FileAccessMode.Read)) {

FlipView SelectionChanged event occurs only when touch manipulations are complete

主宰稳场 提交于 2020-02-03 04:05:26
问题 From the docs: Note When a user flips through FlipView content using touch interaction, a SelectionChanged event occurs only when touch manipulations are complete. This means that when a user flips through content quickly, individual SelectionChanged events are not always generated for every item because the manipulation is still occurring. Is there a way to configure the FlipView control to fire SelectionChanged for each flip? This behavior makes implementing paging interesting as the user,

New Live tiles don't work in Windows Phone Silverlight 8.1 apps?

瘦欲@ 提交于 2020-02-02 03:08:13
问题 So when I was watching this video from BUILD I thought it's gonna be easy... But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following. const string xml = "<tile>" + "<visual>" + "<binding template='TileSquareText01'>" + "<text id='1'>testing 123</text>" + "</binding> " + "</visual>" + "</tile>"; var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml); var tileNotification = new TileNotification(xmlDoc); TileUpdateManager.CreateTileUpdaterForApplication()

New Live tiles don't work in Windows Phone Silverlight 8.1 apps?

好久不见. 提交于 2020-02-02 03:08:07
问题 So when I was watching this video from BUILD I thought it's gonna be easy... But I can't seem to get the tile of my WP Silverlight 8.1 app to change by doing the following. const string xml = "<tile>" + "<visual>" + "<binding template='TileSquareText01'>" + "<text id='1'>testing 123</text>" + "</binding> " + "</visual>" + "</tile>"; var xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml); var tileNotification = new TileNotification(xmlDoc); TileUpdateManager.CreateTileUpdaterForApplication()

Binding SelectedItems in ListView to a ViewModel in Windows Phone 8.1

可紊 提交于 2020-01-31 17:58:24
问题 I have the following code: <ListView SelectionMode="Multiple" ItemsSource="{Binding MyList}" ItemTemplate="{StaticResource MyListTemplate}"> <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="IsSelected" Value="{Binding Mode=TwoWay, Path=IsSelected}"/> </Style> </ListView.ItemContainerStyle> </ListView> With the following DataTemplate: <Page.Resources> <!-- Data Template for the ListView --> <DataTemplate x:Key="MyListTemplate"> <Grid> <Grid.ColumnDefinitions>

In-app product - FormattedPrice with many decimal places

◇◆丶佛笑我妖孽 提交于 2020-01-25 17:35:24
问题 I implemented in-app purchases inside universal app and for testing I use my own XML file with list of in-app products. On Windows 8.1 it works very well but on Windows Phone 8.1 FormattedPrice property is returning price with many decimal places. Am I able to somehow fix it because it looks really strange? Sample: http://1drv.ms/1yVNhRw <Product ProductId="product2" ProductType="Consumable"> <MarketData xml:lang="de-de"> <Name>Product Title 2</Name> <Price>49.99</Price> <CurrencySymbol>€<

In-app product - FormattedPrice with many decimal places

穿精又带淫゛_ 提交于 2020-01-25 17:34:43
问题 I implemented in-app purchases inside universal app and for testing I use my own XML file with list of in-app products. On Windows 8.1 it works very well but on Windows Phone 8.1 FormattedPrice property is returning price with many decimal places. Am I able to somehow fix it because it looks really strange? Sample: http://1drv.ms/1yVNhRw <Product ProductId="product2" ProductType="Consumable"> <MarketData xml:lang="de-de"> <Name>Product Title 2</Name> <Price>49.99</Price> <CurrencySymbol>€<

How to change the label of shared App bar in windows phone 8.1

℡╲_俬逩灬. 提交于 2020-01-25 11:39:54
问题 Im developing an windows phone 8.1 app. I have used shared app bar across the pages. At some point of time, I need to change the label or the icon of the global app bar. Is this possible? your thoughts will be helpful. 回答1: BottomAppBar at WP8.1 is CommandBar, there you will find PrimaryCommands property, in which you probably have AppBarButtons. If you want to change for example a Label ( Icon or anything else), you should be able to do it like this: // change the label of the first button (

How to check status of bluetooth in Windows Runtime?

天涯浪子 提交于 2020-01-25 03:55:30
问题 There are some odd ways, like checking for pair devices and catching exceptions to see it if is on or not. if ((uint)ex.HResult == 0x8007048F) { var result = MessageBox.Show("Bluetooth is turned off.\nTo see the current Bluetooth settings tap 'ok'", "Bluetooth Off", MessageBoxButton.OKCancel); } But I see there is a new BluetoothConnectionStatus api but don't know how to use it. How to check bluetooth status in Windows Phone Runtime apps? 回答1: It's probably something like this: using Windows

Have no page transition in Windows Phone runtime

我是研究僧i 提交于 2020-01-24 06:44:44
问题 I'm trying to disable Windows Phone runtime's default page navigation animation. All I could achieve, is to change it to either continuum, turnstile or slide, but I'd like the page to change instantaneously. So when I call this.Frame.navigate() it should navigate to the new page without any animation. In Silverlight, this was the default case, no page transitions out of the box. Now I can't get rid of them. The reason why I am trying to accomplish this, is because I'd like to add my own