windows-phone-7

How to add external non windows phone class library project reference to a windows phone project?

社会主义新天地 提交于 2020-01-04 08:57:19
问题 Hi there I am new to the windows phone development and I am trying to build a data driven application in which I have Created my BLL and EL and DAL ,which are all of windows phone class library type project. I have also an extra project of type class library in my solution in which I have added the Reference to "MyGeneration.dOOdads.dll" file . Now I want this project to be referenced in the windows phone app project.But when I try to add a reference ,The VS 2010 says... ."Unable to add the

Import picture and save to isolated storage WP7

筅森魡賤 提交于 2020-01-04 07:00:51
问题 I am currently working on a project where the user needs to select a image from there photo gallery and import it. Using the following code I am able to import the picture but I have a few questions. What is the image named upon import? Where is the image located once imported Is it possible to save that image and reload it when the app is opened again (ie using isolated storage) Heres the code from a tutorial using System; using System.Collections.Generic; using System.Linq; using System.Net

GeoCoordinateWatcher is not getting GeoCoordinate Speed in emulator?

风格不统一 提交于 2020-01-04 06:33:08
问题 I'm trying out a Windows Phone 7 Maps application which tracks the device. I'm displaying a textblock which updates the current speed using "e.Position.Location.Speed.ToString("0.00")" from the "GeoPositionChangedEventArgs e" argument passed to the PositionChanged event handler of "GeoCoordinateWatcher" object. While debugging the application in emulator, I used a set of previously recorded push pins and played the emulation. The longitude/lattitude positions change properly but the speed is

How to get the line number from a Stack Trace?

谁说胖子不能爱 提交于 2020-01-04 06:31:13
问题 I am trying to get the line number from a stack trace in my WP7 app. I have set debug info to full and am running the app in the Debug configuration, but there are no line numbers in stack traces. How can I fix this? I am aware of BugSense, but do not want to use it. 回答1: Don't think this is even possible, as line number refers to the number of the line inside code-file , which has lost any relation with the binary after compilation. That's why we use PDB files. They are "databases" for

Windows Phone 7 - Playing streaming video

爷,独闯天下 提交于 2020-01-04 06:13:10
问题 On WP7 platform (using C# and Silverlight) I try to play an online stream into a MediaElement... Here is the C# code: (...) WebClient wc = new WebClient(); wc.OpenReadCompleted += (s, e) => { try { mediaElement.SetSource(e.Result); } catch (Exception we) { System.Diagnostics.Debug.WriteLine(we.Message); } }; wc.OpenReadAsync(new Uri(url, UriKind.Absolute)); (...) Here is the XAML source code: <MediaElement Height="316" HorizontalAlignment="Left" Margin="6,6,0,0" Name="mediaElement"

Error when sending an Linq-to-Sql object to the server using WCF

拥有回忆 提交于 2020-01-04 06:10:36
问题 I am trying to develop a system that has 2 tiers: a mobile client and a server that uses LINQ to SQL to store information in the database. I want to create a WCF server that stores a task in the server, so it will receive a Task from the client and will use LINQ to SQL to store it. To do this service, I created the dbml file, so I can use the datacontext. This is my service method: public Task SaveTask(string token, Task task) { TrackingDataContext dataConext = new TrackingDataContext(); /

“App.Current.myProperty” does not work, but “((app)Application.Current).myProperty” does

流过昼夜 提交于 2020-01-04 06:05:54
问题 I have my own public property in App object. But it doesn't work while I trying to access it via App.Current.myProperty . it work only via ((app)Application.Current).myProperty . I see a lot samples where people use App.Current to access own properties. Did I missed something? Override Current property? 回答1: Yes, you should add your own Current property into your App class. That's because it by default Application.Current returns Application class instance, not your derived class. 来源: https:/

A ListBoxItem that fills its parent

╄→гoц情女王★ 提交于 2020-01-04 05:51:11
问题 I'm developing a Windows Phone app. I have the following XAML: <!--ContentPanel --> <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <ListBox x:Name="SinglesGameList" Margin="0"> <ListBoxItem Margin="10,10,10,5" Height="67" HorizontalAlignment="Center" VerticalAlignment="Center" Width="444"> <TextBlock Text="XXX"/> </ListBoxItem> </ListBox> </Grid> Instead of setting ListBoxItem Width="444" I'm wondering it there is another way to set it that fills its parent. Any advice? 回答1: Can

An error is occur when we use navigation to move other page

≡放荡痞女 提交于 2020-01-04 05:08:35
问题 using System; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation; namespace WindowsPhoneApplication7 { public partial class Listbox : UserControl { public Listbox() { InitializeComponent(); } private void listbox(object sender, MouseEventArgs e) { this.NavigationService.Navigate(new Uri("/home.xaml", UriKind.Relative)); } } } An error is occur ....... does not contain a definition for 'NavigationService' and no extension method 'NavigationService' accepting a

Phonegap minimal platform versions supported

纵然是瞬间 提交于 2020-01-04 04:56:19
问题 I have a big project going on my company where i have to develop to IOS, Android, symbian, Windows Phone and blackberry, after hearing and researching about Phonegap i'm really considering using it however i would like to know if there are and which are the existing requirements / limitations regarding developing with Phonegap for these platforms. Is there somekind of mark of from which "generation" of mobile device Phonegap is optimal for these platforms ? Is there an optimal release of said