Geeks With Blogs
Peter Tweed Exploring and explaining the mysteries of .NET Silverlight There are 28 entries for the tag Silverlight
Silverlight MEF – Download On Demand
Take the Slalom Challenge at www.slalomchallenge.com! A common challenge with building complex applications in Silverlight is the initial download size of the xap file. MEF enables us to build composable applications that allows us to build complex composite applications. Wouldn’t it be great if we had a mechanism to spilt out components into different Silverlight applications in separate xap files and download the separate xap file only if needed? MEF gives us the ability to do this. This post will ......

Posted On Saturday, May 15, 2010 7:25 PM

Composing Silverlight Applications With MEF
Take the Slalom Challenge at www.slalomchallenge.com! Anyone who has written an application with complexity enough to warrant multiple controls on multiple pages/forms should understand the benefit of composite application development. That is defining your application architecture that can be separated into separate pieces each with it’s own distinct purpose that can then be “composed” together into the solution. Composition can be useful in any layer of the application, from the presentation layer, ......

Posted On Saturday, May 8, 2010 5:43 PM

Searching for context in Silverlight applications
A common behavior in business applications that have developed through the ages is for a user to be able to get information or execute commands in relation to some information/function displayed by right clicking the object in question and popping up a context menu that offers relevant options to choose. The Silverlight Toolkit April 2010 release introduced the context menu object. This can be added to other UI objects and display options for the user to choose. The menu items can be enabled or disabled ......

Posted On Wednesday, May 5, 2010 10:51 PM

Handling null values and missing object properties in Silverlight 4
Before Silverlight 4 to bind a data object to the UI and display a message associated with either a null value or if the binding path was wrong, you would need to write a Converter. In Silverlight 4 we find the addition of the markup extensions TargetNullValue and FallbackValue that allows us to display a value when a null value is found in the bound to property and display a value when the property being bound to is not found. This post will show you how to use both markup extensions. Steps: 1. ......

Posted On Monday, April 26, 2010 3:35 PM

Formatting made easy - Silverlight 4
One of the simplest tasks in business apps is displaying different types of data to be read in the format that the user expects them. In Silverlight versions until Silverlight 4 this has meant using a Converter to format data during binding. This involves writing code for the formatting of the data to bind, instead of simply defining the formatting to use for the data in question where you bind the data to the control. In Silverlight 4 we find the addition of the StringFormat markup extension that ......

Posted On Sunday, April 25, 2010 11:15 PM

Slalom Consulting San Francisco Custom Dev Challenge is live!
The Slalom Consulting San Francisco Custom Dev Challenge is live at www.slalomchallenge.com!!!!! Slalom Consulting employs world-class technical consultants who take on ground breaking projects. Please take the Slalom Custom Dev Challenge to see how you compare to the level of knowledge we look for in our technical consultants. The online quiz is focussed on General .NET at this time and will be growing to include other technical topics in the future. This application is written in C#, Silverlight ......

Posted On Monday, April 12, 2010 10:27 AM

SharePoint 2010 is great! Now what do I do?
So you have the power of SharePoint 2010 as a platform. What are you going to do now? How about build upon the power of the SharePoint product and implement solutions to business problems that are intuitive, easy to use, integrated, have a rich user experience and delivered over the web? Sounds good doesn’t it! Come to the April East Bay .NET User Group meeting and watch to me show you how easy it is to build Silverlight applications on top of SharePoint 2010 that can be quickly developed, delivered ......

Posted On Saturday, April 3, 2010 4:36 PM

Silverlight Goes Mobile!
The most exciting announcements from Mix 2010 last week for me were the release of the Windows Phone 7 Series SDK and the news that the platform utilizes Silverlight for the application development technology. From the press and exposure that the platform is being given and the experience that is promised it looks like the Windows Phone 7 Series could eventually compete with the iPhone. For me this is exciting as Silverlight can now be used to develop RIA apps, easily deployed desktop apps and mobile ......

Posted On Friday, March 26, 2010 8:16 PM

Printing in Silverlight 4 Beta - FINALLY!!!!!
A common and key requirement in business applications is the ability for the user to print the information they are using in the business application. FINALLY – Silverlight 4 Beta delivers this capability. This blog will show you how to first of all print in Silverlight 4 Beta and then how to print in a useful way! The code for this blog can be found here and is built with Silverlight 4 Beta and Visual Studio 2010 Beta. Steps: 1. Create a Silverlight application project with an ASP.NET web project ......

Posted On Thursday, December 3, 2009 9:40 PM

Going Modal In Silverlight
As business applications get built there is usually a need to implement a modal popup to prompt the user for input that is needed before the application can continue. In earlier versions of Silverlight the developer had to roll their own version. In Silverlight 3 the ChildWindow class is used to provide the base functionality needed in a modal popup. This blog will show you how easy the ChildWindow class is to use to implement a simple modal popup function in your application. The finished code for ......

Posted On Monday, November 23, 2009 10:29 PM

Silverlight – Easy Data Validation
It’s impossible to have a typical forms over data business application without handling validation in the UI. Silverlight 3 has excellent simple to use support for implementing validation in your code. This post will show a simple scenario to implement data validation. The code for this post can be found here. Steps: 1. Create a Silverlight application. 2. Add a class called Person and add the following code to the Person class: private string firstName; private string lastName; private string email; ......

Posted On Monday, October 12, 2009 4:08 PM

Silverlight - Opening and saving files
Many business applications need the ability to open and save files from and to the user’s local computers. With internet based applications the issues surrounding this are based on security and the rights the application receives to affect the user’s computer. Silverlight has the open and save file dialogs which enable the opening and saving of files to the user’s computer, while restricting the need for the application developer to need to know anything about the client environment. This post will ......

Posted On Friday, October 9, 2009 9:33 PM

RIA Services with Silverlight for East Bay .NET User Group FUNdamentals
I was asked to present on RIA Services with Silverlight for the FUNdamentals session of the East Bay .NET User Group last week. Even though I only had 30 minutes to present on the topic, I decided to show the full development of a CRUD application. With RIA Services this is a straight forward thing to do and still allowed time to explain the concepts in use. The solution found here is the code that was built during the demonstration at the user group. It shows the use of Entity Framework to connect ......

Posted On Sunday, September 13, 2009 8:29 PM

Silverlight - Loading Control Libraries On Demand
As with any client delivered over the browser, one key part of user experience is enabling the user experience to start – i.e. not having the user wait 10 minutes until they can do anything. The flip side is that RIAs many times have large assemblies and content that needs to be downloaded for to put the Rich in RIA. Silverlight achieves this by allowing the developer to use a WebClient object to download a stream of whatever resource it has at a known Uri. In our situation we want to download a ......

Posted On Sunday, August 16, 2009 10:15 PM

Silverlight – Escaping the browser experience
Silverlight apps have the wonderful ability to be installed locally and run from the desktop. This allows Silverlight apps to be deployed very easily over the web and allow thick client like deployment and operability. Just with detached applications if you expect client server behavior – such as connecting to a network resource or service - you need to handle the situation when there is no network. Also if you are running the application outside of the browser then you need to ensure you either ......

Posted On Sunday, August 9, 2009 9:59 AM

HTML Bridge - Silverlight JavaScript Interop
When building RIAs there is sometimes both the need for complex rich interfaces and simpler standard html interfaces. This is more common when introducing the rich experience into an existing web application where it makes sense to maintain some of the existing functionality and introduce the power of Silverlight in targeted functions. In such a circumstance when we have business functionality in Silverlight and in ASP.NET/HTML pages - wouldn't it be great if we had the ability to interop between ......

Posted On Saturday, August 8, 2009 12:38 AM

Server calling the client - duplex WCF Services in Silverlight
A very useful feature in Silverlight is the ability to use duplex services, so that the server can send messages to the Silverlight client. This is really useful when the server should control the when the messages are sent and pushed to clients as opposed to the client having to manage the code to regularly poll a service to find out if the state it is interested in has changed. In this post I we will implement a simple duplex service. The service will allow a user to register to receive stock updates ......

Posted On Tuesday, July 28, 2009 10:15 PM

Inter Silverlight Application Communication in Silverlight 3
With any complex enterprise application delivered over the web it is typical there are very complex functions that truly need Rick Internet Application interactivity with the end user and other areas where a simple web page will suffice. Similarly it is reasonable to see situations where more than one RIA component will exist on the screen at the same time. It would be great if there were an easy way for these RIA components were decoupled yet able to send messages between each other. Silverlight ......

Posted On Sunday, July 26, 2009 11:18 AM

Navigation in Silverlight 3
OK so with the release of Silverlight3, I am in catch up mode on the updated functionality. My first exploration is into the navigation functionality that allows Silverlight 3 apps to take advantage of the Back and Forward buttons in the browser to navigate browsing history of the Silverlight app as well as URL mapping among other things. In this post I am covering how to add navigation to an existing application. Steps: 1. Create a new Silverlight application 2. Add a reference to the System.Windows.Controls.Nav... ......

Posted On Friday, July 24, 2009 11:54 PM

SL3 IS OUT!!!!!
As per Thomas Huber  3 is released!  See Thomas's blog for links to download SL3 toolkit, SL3 SDK and Blend with Sketchflow.

Posted On Thursday, July 9, 2009 3:34 PM

MVVM via attached behaviors in Silverlight
I am a keen believer when building applications in having a clean logical architecture with separation of concerns as much as possible – taking into account the goals of the project and the environment in which the application will be maintained. As such, when it makes sense I believe in use of MVC, MVP, MVVM etc type patterns to enable efficient development and maintenance of applications. I can testify to the worth of adopting these styles to improve the quality of products developed from my experience ......

Posted On Tuesday, July 7, 2009 6:58 PM

Taking advantage of data binding in Silverlight
When building applications we usually want to adopt the write once user everywhere or DRY (Don’t Repeat Yourself) goals for simpler maintenance, validation, configuration,etc etc. So for business applications the situation is usually develop a control, that can be re-used and that can have different data bound to it for the situation in which it is used. Silverlight has a fantastic mechanism – the Silverlight Property System - that manages data binding among other things. This means that the late ......

Posted On Sunday, July 5, 2009 12:10 PM

A simple Silverlight CRUD application – part 4: doing the D in CRUD
This is the final post in a four part series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. The steps in this post build upon those completed in part 3. The goal of this series is to show those of you who are relatively new to Silverlight how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app is built on Visual Studio 2008 SP1, SQL Server 2008, Silverlight 2.0 and the Silverlight ......

Posted On Friday, July 3, 2009 9:23 PM

A simple Silverlight CRUD application – part 3: updating the U in CRUd
This is the third post in a series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. The steps in this post build upon those completed in part 2. The goal of this series is to show those of you who are relatively new to Silverlight how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app is built on Visual Studio 2008 SP1, SQL Server 2008, Silverlight 2.0 and the Silverlight Toolkit using ......

Posted On Friday, July 3, 2009 12:16 AM

A simple Silverlight CRUD application – part 2: creating the C in CRud
This is the second post in a series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. The steps in this post build upon those completed in part 1. The goal of this series is to show those of you who are relatively new to Silverlight how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app is built on Visual Studio 2008 SP1, SQL Server 2008, Silverlight 2.0 and the Silverlight Toolkit ......

Posted On Friday, July 3, 2009 12:00 AM

A simple Silverlight CRUD application – Part 1: putting the R in cRud
This is the first post in a series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. This post is beginners stuff - there’s nothing advanced here. Most readers with some experience of Silverlight will learn nothing from this post, but I want to start at the beginning so those of you who are relatively new to Silverlight can see how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app ......

Posted On Wednesday, July 1, 2009 7:29 PM

Building Silverlight Business Apps - presentations to Bay .NET User Groups
In January and March 2009 I presented to the East Bay .NET and San Francisco Bay .NET user groups respectively on how to build business applications in Silverlight. The theme of the presentations was to show how developing line of business applications in Silverlight is extremely similar to other technologies like Win Forms, WPF or ASP.NET. I demoed how to build a simple CRUD application in Silverlight hitting a SQL Server database over WCF. The building of the application during the presentation ......

Posted On Wednesday, July 1, 2009 6:51 PM

Building Business Apps In Silverlight
Last year I developed a demo CRM sales application in Silverlight with Ward Bell - VP Product Management at IdeaBlade - so that we could show it off by the time of PDC 2008. We wanted to show the capability of Silverlight (being developed on 2.0 beta - converted to 2.0 RTM by the start of PDC) to build advanced context sensitive business apps in Silverlight, given that most Silverlight demos being touted around were purely rich media or graphics related. We were successful in developing the prototype ......

Posted On Tuesday, June 30, 2009 5:04 PM

Copyright © PeterTweed | Powered by: GeeksWithBlogs.net | Join free