windows-phone

How to detect default pdfviewer and open PDF in windows phone

纵饮孤独 提交于 2019-12-25 03:55:33
问题 I am trying to working on download and open pdf file in windows phone 8. Where the code is successfully working when any pdf viewer (Adobe, MS PDF Reader etc.) presents on phone. protected async void openPDFFile(string path) { try { // Access isolated storage. StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder; // Access the bug query file. StorageFile pdfFile = await local.GetFileAsync(path); if (pdfFile != null) { // Launch the pdf file. IAsyncOperation<bool> success

ListBox Navigation Page MVVM Light in Windows Phone

大城市里の小女人 提交于 2019-12-25 03:40:14
问题 I am Building location based services Windows Phone App and this is my first app. I have a difficulty in page navigation by using MVVM Light. I am following Jesse Liberty Tutorial and so far, when I click the item on my ListBox in the FirstPage, it can navigate to SecondPage. What I want to do is, what user select from ListBox in the FirstPage bind with my ListPicker in the SecondPage . So user can easily change what they want to search from SecondPage . MainPage.xaml <ListBox x:Name=

Upload video on Facebook using Graph REST API on Windows Phone 8.1

瘦欲@ 提交于 2019-12-25 02:53:51
问题 I want to upload video on Facebook using Graph REST API on Windows Phone 8.1, below given is my code, which doesn't throw exception but not working, just stuck the execution. var backgroundUploader = new BackgroundUploader(); //var fs2 = await videoFile.OpenAsync(Windows.Storage.FileAccessMode.Read); backgroundUploader.SetRequestHeader("Content-Type", "multipart/form-data; boundary=" + "8af25ae9-b1b4-4ff7-908d-27c3fbe7d78a"); backgroundUploader.Method = "POST"; UploadOperation uploadOperation

WP8 copy SharedStorge file directly into IsolatedStorage

我只是一个虾纸丫 提交于 2019-12-25 02:41:28
问题 I am developing a Windows Phone 8 application but am having a lot of issues with file access permission exceptions hindering the approval of my application when ever I try accessing files in the "local" folder (this only happens after the application has been signed by the WP store, not when deployed from Visual Studio). To solve this I have moved all file operations to IsolatedStorage and this seems to have fixed the problems. I only have one problem left though. My application needs to make

Windows phone listbox - Hold item event

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 01:46:26
问题 My app has a two ListBoxes. I need, when the user hold a item from my ListBox1 , the same item should appear in ListBox2 . My current code works, but I need select item (touch item) before hold item. I know that reason is i'm using SelectedItem , but how do for hold event? My code: private void holdListAdd(object sender, System.Windows.Input.GestureEventArgs e) { if (List1.SelectedItem != null) { Fields fi = (Fields)this.List1.SelectedItem; // fi.Quantity = txtQuantity.Text; if (List2.Items

How to add Microsoft Advertising on WP7 App

你。 提交于 2019-12-25 01:44:50
问题 I'm trying to insert a Microsoft Advertising on my WP7 app but without success. Of course i'm registered at pubCenter. I've put in MainPage.xaml this code: <UI:AdControl Grid.Row="1" ApplicationId="MY APP ID" AdUnitId="MY UNIT AD" HorizontalAlignment="Left" Height="80" VerticalAlignment="Top" Width="480"/> Of course i've replaced MY APP ID and MY UNIT AD with my personal codes. In the top of MainPage.xaml i've added this code: xmlns:UI="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly

Windows Phone 7 in-app purchases

匆匆过客 提交于 2019-12-25 00:25:46
问题 What is the status of Windows Phone 7 regarding in-app purchases? Is it accessible for developers yet? Additionally is any plug-in for PhoneGap available? 回答1: You can implement yourself already, if you already have the relevant infrastructure in place for handling card payments - in fact Pizza Hut do have quite a good app for ordering and paying for pizza all on the phone (at least in the UK market) - it's just ironic that the quality of their pizzas isn't as high as the app... 来源: https:/

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

On item selection, changing the color of a rectangle which is part of a ListBoxItem in Windows Phone

时间秒杀一切 提交于 2019-12-24 19:23:44
问题 I have a ListBox with the following XAML: <ListBox.ItemTemplate> <DataTemplate> <Grid Name="listItemGrid"> <Grid.ColumnDefinitions> <ColumnDefinition MaxWidth="20" MinWidth="20" Width="20" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Rectangle Name="listItemSideBar" Height="85" HorizontalAlignment="Left" Margin="0, 0, 0, 0" Stroke="{StaticResource PhoneAccentBrush}" StrokeThickness="1" VerticalAlignment="Top" Fill="{StaticResource PhoneAccentBrush}" MinHeight="85" Width="25"/>

How to use Horizontal Orientation in WP8 ListBox?

♀尐吖头ヾ 提交于 2019-12-24 17:16:28
问题 I'm using the following xaml code to display a list horizontally, <ListBox x:Name="List" HorizontalAlignment="Left" Height="429" Margin="18,83,0,0" VerticalAlignment="Top" Width="424" SelectionChanged="List_SelectionChanged_1"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" Width="420" Height="80"> <TextBox x:Name="tbName" IsHitTestVisible="False" Height="70" Background="Green" Foreground="White" FontSize="22" BorderThickness="0" Text="{Binding Name}" /> <