windows-phone

Rotating webbrowser from current orientation is stretching(zooming) the webbrowser contents Windows phone

本秂侑毒 提交于 2020-01-15 05:49:27
问题 I have a webbrowser which is in portrait mode. I am loading the webbrowser using this.webBrowserControl.Source = new Uri("http://google.com"); When the content is loaded the view looks like this there is rotate button provided, so if user is in portrait mode and user presses rotate button then I am rotating the webview using transform and setting its height and width so that it can occupy the whole screen pageWidth = 480; pageHeight = 800; RotateTransform transform = new RotateTransform();

GetRequestToken is not working in TweetSharp on Windows Phone

拜拜、爱过 提交于 2020-01-13 06:42:06
问题 I can't use GetRequestToken in TwitterService anymore and also GetAccessToken! TwitterService service = new TwitterService("ConsumerKey", "ConsumerKeySecret"); service.GetRequestToken(Constants.CallbackUri, (request, response) => { if (response.StatusCode == HttpStatusCode.OK) { Request = request; var uri = service.GetAuthorizationUri(request); Dispatcher.BeginInvoke(() => AuthBrowser.Navigate(uri)); } }); it gives me: 'TweetSharp.TwitterService' does not contain a definition for

Lazy Loading with LongListSelector in LayoutMode=Grid

ぃ、小莉子 提交于 2020-01-13 05:30:33
问题 I'm displaying a collection of images in a LongListSelector on WP8 and I've implemented the well known lazy loading pattern utilizing LLS's ItemRealized event. In the code below OnItemRealized is called for each and every item in the Pictures collection - even for items which are clearly off-screen. In this scenario 24 items fit on screen yet the LLS realizes 40 items and this triggers the ResumeGetPictures() of the ViewModel. When the Pictures collection changes (INotifyCollectionChanged),

get windows phone user accounts

若如初见. 提交于 2020-01-13 05:09:27
问题 I'm trying to get windows phone user accounts (live, facebook, twitter, linkedin...) in c# for windows phone, so i found this: http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.userdata.account(v=vs.105).aspx and I wrote this code: public MainPage() { InitializeComponent(); Account account = new Account(); account.Kind = StorageKind.Facebook; MessageBox.Show(account.Kind.ToString()); account.Name = EmailAddressKind.Personal.ToString(); MessageBox.Show(account.Name);

Multiple language support in Universal App

人走茶凉 提交于 2020-01-13 02:43:09
问题 This is not a question about standard localization - I know how to localize the app, use resources, Uid 's and so on - this works perfectly. The problem is that the app comes within a bundle , therefore when the user installs the app it covers only languages that are selected in device/phone settings. But I would like to provide an option in settings that would allow choosing a language regarding the settings. For this purpose, I can use ApplicationLanguages.PrimaryLanguageOverride, which

How can i add AppBar in Windows Phone 8.1

╄→гoц情女王★ 提交于 2020-01-12 13:41:54
问题 In windows phone 8, its very easy to add an App Bar and manage it, but now i test new windows phone 8.1 SDK to build a project with new Geofencing feature but i don't know how to add an App Bar in the App. 回答1: In Windows Phone 8.1, We can use BottomAppBar to add App Bar. Usually we use CommandBar to create basic BottomAppBar. CommandBar contains two collection: PrimaryCommands and SecondaryCommands , It's similar with shell:ApplicationBar.Buttons and shell:ApplicationBar.MenuItems in Windows

What are the fees to develop on iOS, Android and WP? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 15:15:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I know this is not the perfect place to ask this question, but it is so hard to find a good answer and I prefer to ask experienced professionals. What are the fees we must pay to publish an application on: Windows Store (for WP and W8) Google Play iTunes And what is the percentage these companies keep? 回答1:

Windows Phone 8 Emulator returning Redmond location only

心不动则不痛 提交于 2020-01-11 12:21:13
问题 I am using the following code Geolocator myGeolocator = new Geolocator { DesiredAccuracy = PositionAccuracy.High }; Geoposition myGeoposition = await myGeolocator.GetGeopositionAsync(); Geocoordinate myGeocoordinate = myGeoposition.Coordinate; while running the simulator each time i get the location as Redmond, is this a bug, if yes then how can we get rid out of it? 回答1: There is location sensor simulator available for Windows Phone emulator (both 7.5 and 8): How to test apps that use

Launching PDF reader on windows phone 8

偶尔善良 提交于 2020-01-11 11:18:02
问题 I'm trying to launch pdf reader with the code below but it does not work. Can somebody help me? private async Task<StorageFile> WriteData(string fileName, byte[] data) { StorageFolder folder = ApplicationData.Current.LocalFolder; StorageFile file = await folder.CreateFileAsync(fileName, CreationCollisionOption.ReplaceExisting); using (Stream s = await file.OpenStreamForWriteAsync()) { await s.WriteAsync(data, 0, data.Length); s.Close(); } return file; } private async Task<bool> OpenPdf

How to change start page at startup?

狂风中的少年 提交于 2020-01-11 06:41:48
问题 my application, currently, goes to the MainPage.xaml at startup (I don't know where it has configured though). I want to be able to start with another page in some conditions. I think I can add this code to Application_Launching() in App.xaml.cs page: NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative)); but NavigationService is not available in App.xaml.cs. How can I start the application with another page if foo == true ? 回答1: Changing start page in App.Xaml.cs :