windows-phone-8

Windows phone - Avoid scrolling of Web browser control placed inside scroll viewer

↘锁芯ラ 提交于 2019-12-22 11:25:02
问题 I have to show a web browser inside a scroll viewer in windows phone application, with these requirements : Web browser height should be adjusted based on its content . Web browser scrolling should be disabled , ( when user scrolls within web browser, scrolling of scroll viewer should take place ) Web browser can do pinch-zoom and navigate to links inside its content. How can I implement that? Any links or samples is greatly appreciated. 回答1: I'm using code like this. Attach events to the

WP8 - Facebook Login Issue

假装没事ソ 提交于 2019-12-22 10:39:37
问题 I am trying to authenticate a user on Facebook using the Facebook C# SDK on Windows Phone 8. To do so I am following the code here: FacebookLoginPage.xaml.cs But the problem I am facing is that, whenever I input my username and password into the dialog that opens to authenticate the user, I just get the following page: After this, my program does not redirect to the Landing page which is a separate view. The other solutions I have seen that suggest hiding the WebView are not applicable since

Windows Phone 8 SDK running in Visual Studio 2010

◇◆丶佛笑我妖孽 提交于 2019-12-22 09:56:52
问题 I know that the SDK is not finished, yet a few lucky developers have got their hands on it already, so here's my question: when you installing Windows Phone 8 SDK, did it install the SDK in Visual Studio 2010 also, or just on the 2012 edition (including 2012 Express)? 回答1: After posting my question, two different developers that had access to the SDK contacted me directly stating that there is no integration of the Windows Phone 8 SDK in Visual Studio 2010, just on the 2012 version. 回答2: No,

Don't know how to refer to a file in my project using ms-appx (wp8)

烂漫一生 提交于 2019-12-22 09:49:51
问题 I want to refer to a grammar file in my project(Rootfile->folder named grammar->the file named NumbersGrammar) I used this line of code but it tells me the 0x80070002 error (the system cannot find the file specified): Uri Numbers = new Uri("ms-appx:///Grammar/NumbersGrammar.grxml" ,UriKind.Absolute); 回答1: Make sure that the file exists in the specified location, and it's Build Action property is set to Content : 回答2: Have you tried using appdata instead? In your case the full path would be

Multivalue converter in windows phone

点点圈 提交于 2019-12-22 09:30:43
问题 I have a windows phone application. Lets's say I have a CustomersViewModel class that exposes the list of customers. I have a list in xaml that binds to that list: <ListBox ItemsSource="{Binding Path=Data}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <Text="{Binding Converter={StaticResource userIdToNameConverter}" /> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> So each item in the list box will bind to a single customer object. CustomersViewModel has an additional

IpOverUsbSvc error Windows Phone Developer Registration [duplicate]

北战南征 提交于 2019-12-22 09:17:24
问题 This question already has answers here : IpOverUsbSvc error (3 answers) Closed 6 years ago . When I try to register my windows phone device with Windows Phone Developer Registration I get 'unable to connect to a phone' . The message also says 'For Windows Phone 8 phones make sure that the Windows phone IP Over USB Transport ( IpOverUsbSvc ) service is running. I followed the instructions on this site and this service is running. I still get the same problem. What can I do? 回答1: Sometimes,

Windows Phone 8.1 & Admob SDK for WP8

半世苍凉 提交于 2019-12-22 08:59:56
问题 i wanted to ask if it's just me not getting any adds (NoFill error) or the admob sdk should actually be update to wp8.1? <GoogleAds:AdView AdUnitID="ca-app-pub-XXXXXXXX/YYYYYYYY" Format="Banner" FailedToReceiveAd="OnFailedToReceiveAd" VerticalAlignment="Bottom" Margin="0,0,-23,86" /> What might be alternative ad platform solutions that do work on wp 8.1 ? 回答1: Maybe you can use Microsoft Advertising SDK for Windows Phone (Updated 09/05/2014) http://visualstudiogallery.msdn.microsoft.com

How to convert a string into a Color? For windows phone c#

心已入冬 提交于 2019-12-22 08:27:54
问题 I have a user control where I have bounded a string to the xaml path. This makes it possible for me to choose colors like "Black" "Blue" and also use hexa numbers as a string to choose the color. But I am not able to use the same string in the C# code. Which is shown in the example below: SolidColorBrush blackBrush = new SolidColorBrush(); SolidColorBrush mySolidColorBrush = new SolidColorBrush(); mySolidColorBrush.Color = shieldGearModelRec.Gear.Color; So the last string shieldGearModelRec

Phone.Maps- Items collection must be empty before using ItemsSource

纵然是瞬间 提交于 2019-12-22 08:06:04
问题 I have had a look through similar errors, but cannot find one matching my scenario. I am using the example from here: http://wp.qmatteoq.com/maps-in-windows-phone-8-and-phone-toolkit-a-winning-team-part-2/ Quite often, but not every time.. I receive the following exception: An exception of type 'System.InvalidOperationException' occurred in Microsoft.Phone.Controls.Toolkit.DLL but was not handled in user code Items collection must be empty before using ItemsSource. Stacktrace: at Microsoft

Programmatically changing the appbar icons

不问归期 提交于 2019-12-22 07:00:04
问题 In my C# Windows Phone 8 app, I have an AppBar. I have two icons on this AppBar, one new icon, and one edit icon. I want to change the edit icon, to the back icon whenever it is pressed, and then back to the edit icon whenever it is pressed again. I have tried this code, but I get a nullReferenceException: public static Uri addIcon = new Uri("/Assets/AppBar/new.png", UriKind.Relative); public static Uri backIcon = new Uri("/Assets/AppBar/back.png", UriKind.Relative); //Edit the projects if