windows-phone-7

WP 8: How to deploy/export Application from Visual Studio

感情迁移 提交于 2020-01-01 10:13:43
问题 in android, we right click to our project, click export and get the apk. For windows phone 8 , in visual studio 2012, how can i export my application into my desktop or somewhere ? Anyone can help about it ? Thanks ! 回答1: Each time when you build you project - Visual Studio builds XAP file, which is actual package for uploading it to Windows Phone Store or deploying to the real device. This may help Submit your app 回答2: For Windows Phone you get a XAP file instead of an APK file. The XAP in

Javascript Interpreter for .NET

给你一囗甜甜゛ 提交于 2020-01-01 10:07:34
问题 I've got a scenario where I need to run a Javascript interpreter in a .NET application. This is going to be running on Windows Phone 7, so it needs to be Compact Framework-compliant and because it probably won't be pre-packaged for Windows Phone source could help there. Also the licensing can be an issue. We looked at using Jint which is under an MIT license, but it uses Antlr, which is under a BSD license (as I understand it Jint is in non-compliance for not redistributing the Antlr

How to organize Windows Phone code base to target both 7.x and 8 platforms

家住魔仙堡 提交于 2020-01-01 09:58:11
问题 I took over a Windows Phone project which was previously targeting WP 7.1 platform, and with the recent announcement of the new platform it should target WP 8 as well. My VS 2010 solution consists on several projects (Data access, Model, Tests and WP7 client app) and i am wandering on how to include support for WP8. I have to note that the code-base is not compatible with WP8, due to usage of Toolkit controls and other 3rd party libraries targeted for WP7.1 specifically. Also there is another

Binding ListPicker.SelectedIndex problem

时光总嘲笑我的痴心妄想 提交于 2020-01-01 09:15:19
问题 I'm trying to do a two way binding of the SelectedIndex attribute of a ListPicker in a Windows Phone 7 UserControl. It raises the following exception when I set the DataContext: SelectedIndex must always be set to a valid value. This is the XAML code <Grid x:Name="LayoutRoot"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <toolkit:ListPicker Grid.Row="0" x:Name="List1" SelectionChanged="Picker_SelectionChanged" SelectedIndex="

How can you prevent the ApplicationBar flickering on the WP7 white theme?

心已入冬 提交于 2020-01-01 08:59:11
问题 I have a Windows Phone 7.1 Mango application where I have mostly successfully overridden the built in theme colors. However, if the user has the white theme selected and the page has a dark background and dark application bar, the application bar gets rendered and animated with a white background which causes an annoying flicker. After it gets done animating the background color gets sets to a dark color appropriately. Is there a way to either disable the app bar animation or set its initial

Async XML Reading in Windows Phone 7

江枫思渺然 提交于 2020-01-01 07:12:58
问题 So I have a Win Phone app that is finding a list of taxi companies and pulling their name and address from Bing successfully and populating a listbox that is being displayed to users. Now what I want to do is, to search for each of these terms on Bing, find the number of hits each search term returns and rank them accordingly (a loose sort of popularity ranking) void findBestResult(object sender, DownloadStringCompletedEventArgs e) { string s = e.Result; XmlReader reader = XmlReader.Create

How to read/write byte[] into Isolated storage

▼魔方 西西 提交于 2020-01-01 06:50:15
问题 Can anyone tell me how to read and write byte array into Isolated Storage file in WP7? 回答1: IsolatedStorageFileSystem has a method for writing byte arrays: public override void Write(byte[] buffer, int offset, int count); It can be used as follows: byte[] myByteArray = ... using (var store = IsolatedStorageFile.GetUserStoreForApplication()) using (var stream = new IsolatedStorageFileStream("filename.txt", FileMode.Create, FileAccess.Write, store)) { stream.Write(myByteArray, 0, myByteArray

Disable scrolling in browser control for WP7?

痞子三分冷 提交于 2020-01-01 05:42:06
问题 Is it possible to disable the scrolling in a web browser control in Windows Phone 7.1? I have seen quite a few questions ask around it (Windows Phone 7.0, Silverlight) but an answer has yet to come up. Any ideas? 回答1: There is a blog post here explaining how to suppress the zoom and scroll functionality of the WebBrowser control. Quote from that post: The visual tree is quite simple, composed of a few grids and borders. The significant parts are the TileHost, which is the native IE9 component

WCF + Windows Phone 7

左心房为你撑大大i 提交于 2020-01-01 05:33:08
问题 Is it possible to work with WCF service for Windows Phone 7 applications? Any link would be really helpful. Thanks 回答1: Here's a quick walkthrough of hooking a WP7 app up to a WCF service. Scroll right to his first tutorial. AfricanGeek Silverlight 3 Video Tutorials Joel Johnson's also started a series here. Begining WCF for Windows Phone Developers 回答2: Accessing WCF Data Services from WP7 Reddit WP7 回答3: yes it is possible and there are many ways to do this. a simple solution would be to

ListBox Style Selected item on windows phone

我与影子孤独终老i 提交于 2020-01-01 04:31:46
问题 i would like know how can i add a style when a item of the listbox is selected. I have the following listbox: <ListBox x:Name="ListBoxDays" VerticalAlignment="Top" ItemTemplate="{StaticResource WeekDayTemplate}" ItemsSource="{Binding WeekDayList}" /> And i also have a DataTemplate to the listbox. <phone:PhoneApplicationPage.Resources> <DataTemplate x:Key="WeekDayTemplate"> <StackPanel x:Name="stackPanel" Orientation="Horizontal" Width="400" Margin="12,0,0,10" Height="100" > <StackPanel