A good post from Marker about configuring a SSL connection for WCF REST services:
Windows Phone 7 – 3 Steps to configure WCF Rest with SSL – Marker - Full Service Digital Agency
At this blog I am trying to keep up with best practices and latest .NET technologies.
A good post from Marker about configuring a SSL connection for WCF REST services:
Windows Phone 7 – 3 Steps to configure WCF Rest with SSL – Marker - Full Service Digital Agency
If you want to give your users the privilege that they are at the same scroll position in a listbox at a Windows Phone 7 application after thombstoning you can use the following code snipplet (usage of the page state):
1: protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
2: {
3: base.OnNavigatedFrom(e);
4:
5: // Remember scroll offset
6: try
7: {
8: ScrollViewer viewer = ((VisualTreeHelper.GetChild(listBox, 0) as FrameworkElement).FindName("ScrollViewer") as ScrollViewer);
9: State["scrollOffset"] = viewer.VerticalOffset;
10: }
11: catch { }
12: }
13:
14: protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
15: {
16: base.OnNavigatedTo(e);
17: object offset;
18:
19: // Return scroll offset
20: if (State.TryGetValue("scrollOffset", out offset))
21: listBox.Loaded += delegate
22: {
23: try
24: {
25: ScrollViewer viewer = ((VisualTreeHelper.GetChild(listBox, 0) as FrameworkElement).FindName("ScrollViewer") as ScrollViewer);
26: viewer.ScrollToVerticalOffset((double)offset);
27: }
28: catch { }
29: };
30: }
This week the final versions of the Windows Phone Developer Tools and Silverlight for Windows Phone Toolkit were released.
Some things are different at Silverlight Windows Phone 7 applications and so the hints of Jeff Wilcox (great guy, which I met at my current Windows Phone 7 project at German Telekom) will be helpful for the ugly starting phase of developing complex Windows phone 7 applications. Jeff is now at vacation and so his Microsoft fellow Tim Heuer published his hints here: Windows Phone 7 Developer Tips and Tricks
Other useful links are:
If you are using set CacheMode=”BitmapCache” for a image control on Windows Phone 7 you get currently a memory leak. So be cautioned !!!
in my current project our application memory increases more than 100 MB after we are leaving a page with serveral images on it.