Silverlight Form Submission using the Enter Key
Sounds ridiculously simple but still I need to look it up over and over again.
So here it is, documented once and forever: How to catch the Enter key (to trigger a search form submission for example).
XAML:
<TextBox x:Name="txtInputField" KeyUp="txtInputField_KeyUp" />Code-behind (C#):
private void txtInputField_KeyUp(object sender, KeyEventArgs e) { if ((e.Key == Key.Enter) && (txtInputField.Text.Length > 3)) // feel free to remove the length limit { // submit form or whatever you want to do this.SubmitForm(); } }
Note: I've added a clause so that the form is only submitted when the user has typed a minimum of 3 characters which makes sense when hitting a service for example. Feel free to remove that.
Highlights of Week 48/2010
- What is an Experimental Typography? Trends and Examples (by Aimee Sway) - beautiful typographic examples.
- Human Behavior Theories That Can be Applied to Web Design (by Alexander Dawson) - what did you say about zombie's?
- What Every Web Developer Should Know About Front-End Performance (by Joel Sutherland) - don't let optimization slip under the table - it's to be taken seriously - start here...
- Access Ability (by the association of registered graphic designers of ontario) - A Practical Handbook on Accessible Graphic Design.
- 24 Ways (by Drew McLellan and Brian Suda) - Holiday season is here and 24 ways gives you 24 articles written by industry leaders. Enjoy.
- Silverlight 5 Plans Revealed (by Tim Heuer) - exciting new features ahead (beta in spring, release probably in Q3 2011) - XAML databinding debugging
- 15+ Free Holiday & Winter Vectors: Winterize (by Chris McConnell) - right in time, 17 vector graphics for the xmas season.
- The Digital Marketer's Master Library (by Mitch Joel) - marketing is part of our daily job/life and this list is incredible - so check it out.
- Australian DDA moves ahead (by Shrirang Prakash Sahasrabudhe) - Australia is now officially WCAG 2.0 for accessibility conformance.
Web GIS: Principles and Applications [Paperback]

Web GIS
I'm happy to introduce a new book which was co-authored by my colleague Pinde Fu: "Web GIS: Principles and Applications".
I'm really excited about this, not only because good GIS resources are scarce but also because he used screenshots of applications that I have designed over the past years, e.g. geodata.gov, GeoPortal Toolkit, Loma Linda Medical Center Response System, HydroViewer.
How much better can it get when your design ends up in a book?
Audience
While the content of the book is targeted at readers at all skill levels I can see it as a great teaching source as well as invaluable resource for managers and aspiring GIS developers to understand the principles of web applications.
Content
The content of the book is focused on the conceptual level (you won't find code samples) by trying to be systematic and as comprehensive as possible which I believe was done superbly. Nevertheless the authors do cover important new developments like geospatial Web services (REST), geobrowsers, cloud computing, geoportals, mashups, mobile GIS, Gov 2.0, geotagging, ArcGIS APIs for JavaScript, Flex, and Silverlight.
Table of Contents
- GIS in the Web Era
- Technical Basics
- Geospatial Web Services
- Geospatial Mashups
- Mobile GIS
- Geoportals
- NSDI in the Web 2.0 Era
- Web GIS Applications in E-Business
- Web GIS Applications in E-Government
- Hot Topics and New Frontiers
ArcGIS Silverlight App: World Bank Data Mapper
The World Bank Data Mapper is the latest mapping application published by the Esri Applications Prototype Lab (thanks Richie).
The app is built using Esri's ArcGIS API for Microsoft Silverlight and the recently published (free) web API of the World Bank that provides access to up to 50 years of economic, financial and health data.
Besides mastering some technical challenges (missing cross-domain access file, amount of web requests) the map viewer looks sharp and straight forward without the usual template-related overkill of functionality - great job visualizing all this economic data. Let's see which other - maybe analytical? - mapping tools will follow...
Oh, of course, have a look at the working app and download the full source if you are interested to see how the pros did it.
HTML5 and the Future of Adobe Flash [and Silverlight]
Really interesting research note by Gartner.
Key findings:
- HTML5 will become the mainstream of the Web during the next decade.
- HTML5 is a potential threat to the continued adoption of plug-in based RIA approaches (including Flash/Silverlight).
Recommendations:
- Enterprises should try avoid becoming dependent on any one browser or client-side technology.
- Enterprise developers should “design for standards” and not browsers or runtimes.
- Developers should favor the lightest-weight technology that will meet their requirements.
- Architects should consider hybrid approaches […]
- Before purchasing or committing to a new UI technology or platform, enterprises should first invest in a user-centered design process based on objective data about user behavior.
Complete Analysis: http://www.adobe.com/enterprise/pdfs/html5_flash.pdf
On a personal note I especially like the following part (btw: brilliantly written):

The average enterprise will continue to make ineffective use of any and all available UI technologies.


