As playing around a bit with the WP7 functionality, I wanted to create a small sample, which loads XAML Elements dynamically into the Page. No magic here. The XAML fragment to be loaded has been extracted to a file called XamlFragment.xaml. I set in the Properties window of VS 2010 the Build Action to Content and deleted the value for the Custom Tool. The idea was to package the file withe the XAP file and deploy it, so the SL App could read the file directly. What I totally forgot about was the fact, that SL Apps have only access to the Isolated Storage. But the Isolated Storage in fact is a subfolder of the Apps folder, where the XAP files get deployed. So how to access the file? After searching a bit around I found out, that XNA has the same issue on accessing files like textures etc., which are packed within the XAP. Therefore the Assembly Microsoft.Xna.Framework contains the static class TitleContainer. Executing “TitleContainer.OpenStream(‘XamlFragment.xaml’)” returned an object of type stream, which could be accessed by my StreamReader. (Please keep in mind that this stream is readonly) More info on the TitleContainer class can be found here.
Es ist ja mittlerweile ein offenes Geheimnis, dass Patrick Getzmann (MVP für Device Application Development), Simon Hackfort und ich an einem Entwicklerbuch (in Deutsch) zu Windows Phone 7 arbeiten. Wer der Publisher ist und welche Inhalte es in diesem Buch geben soll, werden noch nicht verraten. Das Veröffentlichungsdatum steht noch nicht 100%-ig fest, da hier mehrere Faktoren einen Einfluss darauf haben. Es soll jedoch noch dieses Jahr sein. Wir für unseren Teil haben bereits eine Agenda an Themen festgelegt, welche das Buch behandeln soll. Doch wir sind an der Stelle noch ein wenig flexibel. Somit stellt sich die Frage: Was würden Sie sich als Inhalt für so ein Buch wünschen? Es könnte sein, dass wir noch ein wenig Zeit haben werden auf die Wünsche einzugehen, geben aber keine Garantie, dass wir diese auch berücksichtigen könne. Hinterlassen Sie somit ein Kommentar in diese Blog und wir werden schauen, was noch möglich ist im Buch unterzubringen… P.S.: Vielen Dank an Alex Januschewsky (MVP für Windows Mobile) von http://mobilitynews.net/ für das WP7-Metro Logo, welches er uns zur Verfügung gestellt hat.
Da nun bereits die TechTalk Reihe von Microsoft zum Thema Windows Phone 7 Entwicklung durch ist, freue ich mich umso mehr selbst einen Vortrag zu dem Thema bei der netug Niederrhein halten zu dürfen. Ich freue mich sehr darauf aus dem Nähkästchen der aktuellen CTP erzählen zu können und ein paar nette Samples zeigen zu dürfen. Datum: Mittwoch, 14. Juli 2010 Zeit: 18:30 - 21:30 Ort: AUTOonline GmbH Informationssysteme Straße: Hammfelddamm 6 Stadt/Ort: Neuss, Germany Veranstalter: http://www.netug-niederrhein.de/ Ich würde mich freuen, euch vor Ort begrüssen zu dürfen.
Recently I’ve been asked to do a review of a new published book on Data-Driven .NET Compact Framework 3.5 development. It is called “.NET Compact Fraework 3.5 Data Driven Applications” by Edmund Tan, which has been released in April 2010. The book is a pretty good book for developers, who want to start developing .NET Compact Framework Applications with the most recent version. It doesn't refer to Windows Phone 7 development, which is good, as for business applications the .NET Compact Framework 3.5 technology will be still valid for a longer period of time. The book itself is structured in 13 chapters, and contains a complete lifecycle of 3 applications from design down to deployment. Therefore it uses a pretty good story around the applications, which are developed here by sample. It gives an insight in thick, thin and smart clients, as well as in architecture with the MVC Pattern. Working with databases (Oracle and SQL CE) is as well described as the creation and usage of WebServices. Even the topics 'Auto Update' and working with Bluetooth (among other interfaces) are described as well. Not to forget the usage of Sync Services, the book describes the topics Authentication and Encryption as well. Chapter 7 is all about Best Practices for mobile applications. These topics for beginners are very useful. Unfortunatelly the book has some drawbacks. Visual Studio 2008 for example is described as a requirement. Unfortunatelly the author doesn't describe, why Visual Studio 2010 can't be used in this scenario. (Visual Studio 2010 doesn’t support any Windows Mobile development. It is meant to be used for Windows Phone 7 development and later) As well it isn't obvious to the reader, why 2 different database engines get used (Oracle and SQL CE). On the other hand these databse engines are valuable information to the reader, as he get's described how to work with those different platforms. The described Dashboard application uses a pull mechanism, where it is requesting new data every minute. This isn't a good practice, as in this sample it isn't necessary as well as it is draining the battery. In general battery usage isn't mentioned at all. The Bluetooth sample just uses a Bluetooth SerialPort. This means, that the user has to manage Bluetooth connectivity by himself. This isn't a real life scenario. By the usage of the 32feet Library, this would have had additional value to the reader and the user. The described Pluginsystem lacks of security. Showing the basic steps is absolutly legal, but unfortunatelly not a real world scenario. Datasets as the BusinessObject intermediate isn't a good choice in this book, as the memory usage is increased. A side not of using Reflection that it is affecting the applications performance an memory isn't mentioned as well. Creating a full search scenario is good. Unfortunatelly the coding here creates a security hole for SQLInjection, which isn't mentioned anywhere. Using regular expressions for the search scenario is great, but the author doesn't tell the reader anything about Regular Expressions at all. While the complete book uses C# code, it isn't obvious, while Chapter 4 suddenly introduces a VB.NET sample. The salesforce sample describes the usage of Bluetooth and IrDA as interfaces for exchanging data. This would make it necessary, to have both sales persons to be at the same spot. This isn't a real life scenario as well. All in all the book is a good entry point for .NET Compact Framework development, but lacks in the depth of the provided information and background. Nevertheless, as it lacks in a few mentioned details, this book shall be worth a read for beginners, as the story around the applications gives a good template on how to start with the overall application lifecycle. If you are interested, you can check out the details (including a free chapter download) here.
You know these fridays: Bored on friday nights and you come on the great idea to play a drrinking game with some friends, like probably “Mexican” (find a description for the game here). You have all the beverage in place, but it tends to happen, that you don’t have any dices around. Good when you have your Windows Mobile with you: LieberLieber released virtual dices for this game for free over here. Go and grab it. P.S.: No warranties are given about headaches next morning. 
Am 28.05.2010 findet die dotnet Cologne 2010 in Köln statt. Die Veranstaltung selbst war einfach nur super. Es hat richtig Spaß gemacht dort den Vortrag zu “Silverlight für Windows Phone 7” halten zu dürfen. Nicht nur, dass der Raum fast überfüllt war, waren die Diskussionen zwischen den Teilnehmern sehr erfrischend. Leider führte dies jedoch unter anderem auch dazu, dass ich den Stoff leider nicht komplett zeigen konnte. Aus diesem Grund gibt es an dieser Stelle die Slides und Samples zum Download. Bitte beachtet, dass in den Samples eine Textdatei enthalten ist, welche weitere Informationen bietet. Weitere Informationen zur dotnet Cologne findet Ihr hier. PeNo_SL für WP7.zip (557,18 KB)
Windows Phone 7 ist nun auch schon seit einigen Tagen bekannt. Wer jedoch einmal in “Kürze” einen etwas umfassenderen Überblick für Entwickler haben mag, sollte sich folgenden Onlineartikel von mir auf mobile360.de einmal zu Gemüte führen. Inhalte sind neben einem kurzen Überblick der Geräte- und Betriebssystemfunktionen auch das Anwendungsmodell, sowie die Plattformarchitektur. Auch das Thema Metro wird hier kurz angerissen. Happy reading.
Bereits nächste Woche, am 28.05.2010, findet die dotnet Cologne 2010, wie der Name schon vermuten lässt, in Köln statt. Auch ich werde dieses Mal mit von der Partie sein. Thema ist dieses Mal die Entwicklung für das Windows Phone 7. Der Vortrag hierzu findet um 16:15 Uhr statt . Weitere Informationen zur dotnet Cologne findet Ihr hier.
Jetzt, wo jeder aktuell über Windows Phone 7 Series spricht ist Windows Mobile ein wenig in den Hintergrund gerückt. Man darf jedoch nicht vergessen, dass Windows Mobile bzw. Windows Phone Classic einen noch einige Zeit parallel zu Windows Phone 7 Series begleiten wird. Nicht nur, dass neue Geräte mit dem “alten” Betriebssystem erscheinen werden – auch viele Businessanwendungen laufen derzeit noch unter Windows Phone Classic und müssen gewartet oder erweitert werden. Hierbei will man seinem Kunden auch ein Erlebnis bieten – graue Schaltflächen auf weißem Hintergrund sind out. Doch wie? Eine Möglichkeit ist die Touch Controls Suite 2.0. Dieses Produkt bietet einigen interessante Steuerelemente. Hierzu gehört beispielsweise der GlassDialog, welcher einen halbtransparenten Dialog darstellt, wie man ihn oft in Webanwendungen sieht. Auch die TouchPictureBox bietet direkt Funktionalität, um in Bilder Zoomen zu können, als auch fingerbasierendes Scrollen. Dies sind aber nur einige Beispiele. Viele weitere Steuerelemente unterstützen von Haus aus Alpha Transparenz und sehen darüber hinaus wesentlich besser aus. Eine weitere Perle dieser Suite ist, dass Anwendungen, welche generell mit den Steuerelementen ausgestattet werden ebenfalls auf dem Desktop (unter Beachtung bestimmter Spielregeln) ausgeführt werden können. Alle weiteren Infos und ein Video findet man auf der Website: http://www.mirabyte.com/de/produkte/windows-mobile/touch-controls-suite/information.html Eine offizielle Presse-Mitteilung gibt es auch bei OpenPR: http://www.openpr.de/news/411604/Touch-Controls-Suite-2-0-Stylus-freie-fingerfreundliche-Anwendungen-auf-der-Windows-Mobile-Plattform.html
Wer nicht gerade hinter dem Mond lebt, wird wahrscheinlich durch die Presse oder diverse Onlinemedien erfahren, dass auf der MIX Konferenz in Las Vegas gestern die Entwicklungstools zu Windows Phone 7 als CTP vorgestellt wurden. [Update] Die Keynote kann man mittlerweile auch On Demand hier sehen. [/Update]
Anstatt jetzt einen weiteren “Ich-Auch” Post zu schreiben, hier ein paar darüber hinausgehende Informationen: - MobilityNews berichtet umfassend über den Inhalt der gestrigen Keynote. Auf jeden Fall lesen, falls man die Keynote nicht gesehen hat.
- Ruslan Trifonov gibt in seinem Blog einen eher technischen Kurzüberblick über Tools und Co.
- Anand Iyver beschreibt den generellen Prozess der Entwicklung in seinem Blog. LESEN!
- Frank Prengel beschreibt in seinem Blog, wo man die Tools kostenlos erhalten kann. Diejenigen, die schneller sein wollen, hier der direkte Link zum Download. Bitte dabei auch die Release Notes beachten!
- Shawn Hargreaves berichtet, dass Charles Petzold gerade dabei ist, ein englisches Buch zum Thema Windows Phone 7 Entwicklung zu schreiben. Die ersten 6 Kapitel als Entwurf gibt es kostenlos hier. Das Buch selbst erscheint wohl im Oktober.
Charles, eine bekannte Größe aus der Community, schreibt bereits Bücher seit 1988 und weiß, wovon er redet. Als, auf jeden Fall lesen!!! - Gibt es immer noch jemanden, der den deutschen Windows Phone Blog von Microsoft noch nicht kennt? Dann wird es schnell Zeit einmal reinzuschauen, da hier alle relevanten Informationen ASAP, auch zu WP7 zur Verfügung gestellt werden.
- Alle relevanten Informationen rund um die Entwicklung inklusive Tools und weitergehender Dokumentation zu WP7 findet man im auf dieser dedizierten Entwicklerseite der Windows Phone Site. Dabei möchte ich euch die Developer Guides sehr ans Herz legen. Darin enthalten sind viele Informationen, welche Gedanken man bei der Entwicklung von WP7 Anwendungen beachten sollte. Auch Tipps und Tricks, wie beispielsweise, dass klickbare UI Elemente in Silverlight mindestens 9mm auseinander sein sollten findet man dort. Also auch: LESEN!!!
- Das Trainig Kit zur WP7 Entwicklung ist hier zu finden.
Fast unbeachtet neben diesen großen Ankündigungen ist das Silverlight für Nokia S60 Geräte fast untergegangen. Informationen, Links und weitergehende Informationen hierzu findet man hier. Wer mich nun direkt fragt, wie meine bisherigen Erfahrungen mit der CTP sind, dem muss ich leider sagen, dass ich mangels Zeit noch nicht großartig dazu gekommen bin, mir die CTP anzuschauen. Ein paar Tipps habe ich jedoch schon: - Die CTP sollte man nach Möglichkeit in einer VM installieren. Windows 7 bietet hierfür ja alle geeigneten Tools (fast) von Hause aus. Vorteil ist, dass man somit seine Wirkmaschine nicht beeinflusst. Gerade in der Vergangenheit hat sich gezeigt, dass CTPs schon mal den PC strubbelig machen, so dass ein Upgrade oder eine Deinstallation selten sauber von statten gehen.
Angst braucht man keine haben, dass der Emulator langsam läuft. Dieser Emulator ist von Grund auf neu programmiert und schnell, da er die aktuellen VM Technologien nutzt und unterstützt. Selbst in der VM ist die VM somit schnell.  - Wer sich wundert, dass die Installationsdatei nur 3,2 Megabyte besitzt, wird sich wundern. Doch diese Installationsdatei ist nur ein Bootstrapper, welcher die Installationsdateien (knapp 310 MB!!!) selbstständig herunterlädt. Diese bestehen aus:
- Visual Studio 2010 Express for Windows Phone CTP
- Windows Phone Emulator CTP
- Silverlight for Windows Phone CTP
- XNA 4.0 Game Studio CTP
- Wer bereits in dieser VM ein Visual Studio 2010 RC installiert hat, darf sich freuen: Die Installation erkennt dies und integriert die Templates direkt in diese Version.
- Wer bereits den Blend 4 RC installiert hat, darf sich ebenfalls freuen, da auch hier die Templates installiert werden.
- Die Tools zu installieren, nur um sich mal den Emulator anzuschauen um zu erfahren, wie das Gerät später funktionieren wird, wird enttäuscht sein: Lediglich der IE ist als Software auf dem Emulator enthalten. Keine andere App, keine weiteren Tiles sind dort zu finden. Hierfür kann man sich also den Aufwand sparen.
Somit wünsche ich ein schönes Entwickeln. Ich hoffe, dass ich euch mehr Informationen als “Ich-auch” an die Hand geben konnte. Mehr kommt bestimmt – Stay tuned!
|